bugSavannah Static web pages of project:
savroot

bugbugs #51747: -->compile error (with gcc 4.4)



Submitted by:  None
Submitted on:  2009-06-12 16:55
 
Originator Email:  *tomspur@fedoraproject.orgBug / Feature:  * Bug report
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  Fixed
Privacy:  Public Assigned to: 
Open/Closed:  Closed Release:  *5.22.00
Discussion Lock:  Unlocked Operating System:  * GNU/Linux
Summary:  *compile error (with gcc 4.4)
* Mandatory Fields

(Jump to the original submission Jump to the original submission)

2009-11-08 15:33, comment #13:

The error below:

Compiling XrdNetDNS.cc
g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_ALL_SOURCE -D_REENTRANT -D_GNU_SOURCE -fPIC -rdynamic -Wall -Wno-deprecated -D__linux__ -O2 -DXrdDEBUG=0 -DHAS_GETHBYXR -DHAS_NAMEINFO -DHAS_PROTOR -I. -I.. XrdNetDNS.cc -o ../../obj/XrdNetDNS.o
XrdNetDNS.cc: In static member function ‘static int XrdNetDNS::Host2Dest(const char, sockaddr&, char*)’:
XrdNetDNS.cc:480: error: invalid conversion from ‘const char’ to ‘char
make[5]: *** [../../obj/XrdNetDNS.o] Errore 1
make[4]: *** [Linuxall] Errore 2
make[3]: *** [all] Errore 2
make[2]: *** [XrdNet] Errore 2
make[1]: *** [all] Errore 2
make[1]: uscita dalla directory «/home/marcodecathlon/root/net/xrootd/src/xrootd»
make: *** [net/xrootd/src/xrootd/lib/libXrdSec.so] Errore 2
make: *** In attesa di lavori non terminati...
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

is still present if we compile the 5.22/5.24 ROOt version, with a gcc 4.4 version updated on the Ubuntu Version
9.04 and even on the new 9.10 Karmic Koala

any idea?

Marco Triches <marcodecathlon>



2009-06-17 09:13, comment #12:
Gerardo Ganis <ganis>In charge of this item.



2009-06-16 21:32, comment #11:

I can confirm.
It can be build now with fedora.

@Ganis: I'm intending to build it for fedora, but it's possible to take the experimental trunk for testing now and after the release of the next version, this will (maybe) be the first version in fc...

Bug can be closed ;-)

Thomas Spura <spurath>



2009-06-16 17:35, comment #10:

Hi Gerri,

so the prototype of index() is (finally) changed on FC11, returning a "const char*" (as it always should have been). But this should not be gcc 4.4.0 dependent, shouldn't it?

Thanks for the prompt fix.

Cheers, Fons.

Fons Rademakers <rdm>
2009-06-16 16:07, comment #9:

Hi,

This should be now fixed in the trunk.
Is the fix needed in 5-22-00-patches?

Cheers, Gerri

Gerardo Ganis <ganis>In charge of this item.



2009-06-16 15:49, comment #8:

Hi,

I could reproduce it on Fedora 11 Beta . I am preparing the fix.

It depends on the way gcc4.4 is build/configured. I can confirm that with the installation available on afs I get only the warnings mentioned by Fons.

Cheers, Gerri

Gerardo Ganis <ganis>In charge of this item.



2009-06-16 15:42, comment #7:

Hi,

on SLC5/RHEL5 with gcc 4.4.0 p-O2 the trunk compiles without errors and only the following 6 warnings in the entire build:

XrdSectestServer.cc: In function 'int main(int, char**)':
XrdSectestServer.cc:117: warning: dereferencing pointer 'netaddr' does break strict-aliasing rules
XrdSectestServer.cc:116: warning: dereferencing pointer 'netaddr' does break strict-aliasing rules
XrdSectestServer.cc:115: warning: dereferencing pointer 'netaddr' does break strict-aliasing rules
XrdSectestServer.cc:90: note: initialized from here

and

XrdSecProtocolpwd.cc: In member function 'virtual int XrdSecProtocolpwd::Authenticate(XrdSecCredentials, XrdSecParameters, XrdOucErrInfo)':
XrdSecProtocolpwd.cc:1196: warning: 'SessionSt.pwdStatus_t::ctype' may be used uninitialized in this function
XrdSecProtocolpwd.cc:1196: warning: 'SessionSt.pwdStatus_t::options' may be used uninitialized in this function
XrdSecProtocolpwd.cc:1196: warning: 'SessionSt.pwdStatus_t::action' may be used uninitialized in this function

So this must be related to something specific to FC11.

Cheers, Fons.

Fons Rademakers <rdm>
2009-06-16 15:09, comment #6:

Gerri,

Could you follow? I thought that you had fixed this problem with gcc4.4

Rene

Rene Brun <brun>



2009-06-16 13:48, comment #5:

I have to agree with the comment below...the trunk still did not compile. I get the same error as posted below in comment 4. Final error was...

/usr/bin/ld: cannot find -lXrdClient
collect2: ld returned 1 exit status
make: *** [lib/libNetx.so] Error 1
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

calem hoffman <calemr>



2009-06-16 10:27, comment #4:

I can confirm, trunk does not compile ;-)

Compiling XrdNetDNS.cc
g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_ALL_SOURCE -D_REENTRANT -D_GNU_SOURCE -fPIC -rdynamic -Wall -Wno-deprecated -D__linux__ -O2 -DXrdDEBUG=0 -DHAVE_FSTATAT -DHAVE_GETHBYXR -DHAVE_NAMEINFO -DHAVE_PROTOR -I. -I.. XrdNetDNS.cc -o ../../obj/XrdNetDNS.o
XrdNetDNS.cc: In static member function 'static int XrdNetDNS::Host2Dest(const char, sockaddr&, char*)':
XrdNetDNS.cc:480: error: invalid conversion from 'const char' to 'char'
make[5]: *** [../../obj/XrdNetDNS.o] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdNet] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tom/rpmbuild/BUILD/root/net/xrootd/src/xrootd'

      • Error condition reported by make (rc = 2): rm -f net/xrootd/src/xrootd/GNUmakefile exit 1

bin/rmkdepend -R -fnet/netx/src/TXNetFile.d -Y -w 1000 -- -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus -- net/netx/src/TXNetFile.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o net/netx/src/TXNetFile.o -c net/netx/src/TXNetFile.cxx
In file included from net/netx/src/TXNetFile.cxx:46:
include/Bytes.h: In function 'ULong_t host2net(ULong_t)':
include/Bytes.h:478: warning: dereferencing type-punned pointer will break strict-aliasing rules
include/Bytes.h: In function 'ULong64_t host2net(ULong64_t)':
include/Bytes.h:502: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from net/netx/src/TXNetFile.cxx:46:
include/Bytes.h: In function 'Double_t host2net(Double_t)':
include/Bytes.h:547: warning: dereferencing type-punned pointer will break strict-aliasing rules
bin/rmkdepend -R -fnet/netx/src/TXNetFileStager.d -Y -w 1000 -- -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus -- net/netx/src/TXNetFileStager.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o net/netx/src/TXNetFileStager.o -c net/netx/src/TXNetFileStager.cxx
bin/rmkdepend -R -fnet/netx/src/TXNetSystem.d -Y -w 1000 -- -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus -- net/netx/src/TXNetSystem.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o net/netx/src/TXNetSystem.o -c net/netx/src/TXNetSystem.cxx
Generating dictionary net/netx/src/G__Netx.cxx...
core/utils/src/rootcint_tmp -cint -f net/netx/src/G__Netx.cxx -c -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc net/netx/inc/TXNetFile.h net/netx/inc/TXNetFileStager.h net/netx/inc/TXNetSystem.h net/netx/inc/LinkDef.h
bin/rmkdepend -R -fnet/netx/src/G__Netx.d -Y -w 1000 -- \
-pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus -Icint/cint/lib/prec_stl \
-Icint/cint/stl -Icint/cint/inc -- net/netx/src/G__Netx.cxx
g++ -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -I. -Icint/cint/inc -o net/netx/src/G__Netx.o -c net/netx/src/G__Netx.cxx
g++ -shared -Wl,-soname,libNetx.so.5.23 -m64 -O2 -o lib/libNetx.so.5.23 net/netx/src/TXNetFile.o net/netx/src/TXNetFileStager.o net/netx/src/TXNetSystem.o net/netx/src/G__Netx.o -Llib -lNet -lRIO -lThread -Lnet/xrootd/src/xrootd/lib -lXrdOuc -lXrdSys -Llib -lXrdClient -Llib -lCore -lCint
/usr/bin/ld: cannot find -lXrdClient
collect2: ld returned 1 exit status
make: *** [lib/libNetx.so] Error 1
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

Anonymous



2009-06-16 07:09, comment #3:

Hi,

I am afraid that there is nothing to fix, we already did that for you :-) You can take the trunk (see http://root.cern.ch/drupal/content/...) or wait until the end of the month, when we publish v5.24 which will support GCC 4.4. Of course we would appreciate if you could confirm that the trunk works with GCC 4.4 also for your setup, to ensure that the release becomes a good one!

Cheers, Axel.

Axel Naumann <axel>



2009-06-15 16:55, comment #2:

I seem to have the same issue on fc 11 with gcc-4.4.0-4.i586. I have tried v22.0 with both ./configure and ./configure linux. I am very new to ROOT but I would like to help solve this!

calem hoffman <calemr>



2009-06-12 17:09, comment #1:

It looks like you started from an old version of ROOT (older than 5.22).
My suggestion would be to start fom the ROOT SVN trunk. This version compiles with gcc4.4.

Let me know

Rene

Rene Brun <brun>



2009-06-12 16:55, original submission:

I try to get root packaged for fedora, but after make redhat and rpmbuild -ba root.spec, I get this error...

g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_ALL_SOURCE -D_REENTRANT -D_GNU_SOURCE -fPIC -rdynamic -Wall -Wno-deprecated -D__linux__ -O2 -DXrdDEBUG=0 -DHAS_GETHBYXR -DHAS_NAMEINFO -DHAS_PROTOR -I. -I.. XrdNetDNS.cc -o ../../obj/XrdNetDNS.o
XrdNetDNS.cc: In static member function 'static int XrdNetDNS::Host2Dest(const char, sockaddr&, char*)':
XrdNetDNS.cc:480: error: invalid conversion from 'const char' to 'char'
make[5]: *** [../../obj/XrdNetDNS.o] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdNet] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tom/rpmbuild/BUILD/root/net/xrootd/src/xrootd'
make: *** [net/xrootd/src/xrootd/lib/libXrdSec.so] Error 2
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.wnezzY (%build)

Fehler beim Bauen des RPM:
Fehler-Status beim Beenden von /var/tmp/rpm-tmp.wnezzY (%build)

Anonymous



 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • Marco Triches <marcodecathlon> added by (marcodecathlon) (Posted a comment)
  • DeleteThomas Spura <spurath> added by spurath (Posted a comment)
  • Delete added by (Gerardo Ganis <ganis>) added by ganis (Posted a comment)
  • Fons Rademakers <rdm> added by (rdm) (Posted a comment)
  • Axel Naumann <axel> added by (axel) (Posted a comment)
  • calem hoffman <calemr> added by (calemr) (Posted a comment)
  • Rene Brun <brun> added by (brun) (Posted a comment)
  • tomspur@fedoraproject.org added by () added by None (Submitted the item)
  •  

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    2009-06-17 09:13ganisStatusReady for test=>Fixed
      Open/ClosedOpen=>Closed
      Closed on2009-06-17 09:13=>2009-06-17 09:13
    2009-06-16 16:07ganisStatusNeed Info=>Ready for test
    2009-06-16 15:09brunAssigned tobrun=>ganis
    2009-06-12 17:09brunStatusNone=>Need Info
      Assigned toNone=>brun
    Show feedback again

    Back to the top