Hi Mike!
gcc: Configured with: /usr/local/src/gcc/gcc_3.1.x/configure --enable-languages=c,c++ Thread model: single gcc version 3.1 20020511 (prerelease) /home/axel> gcc -fno-merge-constants -xc /dev/null -S -o /dev/null && echo yes yes /home/axel> gcc -fno-merge-constantsXXX -xc /dev/null -S -o /dev/null && echo yes cc1: unrecognized option -fno-merge-constantsXXX' And by the way, I made a distclean to my X cvs checkout.. Added the following line to config/cf/host.def: #define ModuleLdFlags -fno-merge-constants And made a World and install. But then still the same errors appeared. I am pretty sure that I did everything right.. ?! I hope that helps (the part with gcc tests) Regards, Axel On Mon, 13 May 2002, Mike A. Harris wrote: > On Mon, 13 May 2002, Marc Aurele La France wrote: > > >> New versions of the gcc compiler have an optimization called > >> "string merging" which is enabled by default. The XFree86 module > >> loader chokes on the ELF sections that this optimization adds to > >> the ELF objects. > > > >> To work around this XFree86 module loader limitation, you need > >> to pass -fno-merge-constants to the linker when modules are > >> being built. This can be done from host.def with: > > > >> ModuleLdFlags -fno-merge-constants > > > >That should have a "#define " in front of it. > > Right, I assumed one would be familiar with host.def et al. when > adding it. > > > >> This was automatically detected in later 4.1.0 CVS, and also in > >> 4.2.0 CVS however it looks like someone removed the automatic > >> checks in head CVS. > > > >No, it wasn't removed. But, it's possible that > > > > gcc -fmerge-constants -xc /dev/null -S -o /dev/null > > > >... no longer generates a zero return (i.e. is no longer a valid test to > >determine whether or not the compiler has merge-constants support). > > Hmm, never thought of that. Could be failing I suppose. > > Just tested locally with: > > bash-2.05a$ gcc -fno-merge-constants -xc /dev/null -S -o /dev/null && echo yes > yes > bash-2.05a$ gcc3 -fno-merge-constants -xc /dev/null -S -o /dev/null && echo yes > yes > bash-2.05a$ gcc3 -fno-merge-constantsXXX -xc /dev/null -S -o /dev/null && echo yes > cc1: Unrecognized option `-fno-merge-constantsXXX' > bash-2.05a$ gcc -fno-merge-constantsXXX -xc /dev/null -S -o /dev/null && echo yes > cc1: Unrecognized option `-fno-merge-constantsXXX' > > Can someone who is having this failure, run the same test and > report what they get? _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
