[Bug libstdc++/31906] New: "-Xcompiler" is inserted after "-Xlinker" when building libstdc++

prj-bugzilla-gcc at multivac dot cwru dot edu gcc-bugzilla@gcc.gnu.org
Sat May 12 02:53:00 GMT 2007


My glibc is installed in an unusual place, so before building, I edited the
top-level Makefile.in to set:
LDFLAGS_FOR_TARGET = -Xlinker --dynamic-linker -Xlinker
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library/ld-linux.so.2
-L/nil -Xlinker -R -Xlinker
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library

The build makes it through the bootstrap, but when building libstdc++,
-Xcompile has somehow been inserted between -Xlinker and --dynamic-linker.  The
"make bootstrap" output ends with:

/bin/sh ../libtool --tag CXX --mode=link
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/./gcc/xgcc
-shared-libgcc
-B/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/./gcc
-nostdinc++
-L/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3/src
-L/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/i686-pc-linux-gnu/bin/
-B/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/i686-pc-linux-gnu/lib/
-isystem
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/i686-pc-linux-gnu/include
-isystem
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/i686-pc-linux-gnu/sys-include
-Wl,-O1 -Wl,-z,relro -Wl,--gc-sections  -fno-implicit-templates -Wall -Wextra
-Wwrite-strings -Wcast-qual  -fdiagnostics-show-location=once 
-ffunction-sections -fdata-sections   '-Xlinker' -Xcompiler '--dynamic-linker'
'-Xlinker'
'/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library/ld-linux.so.2'
'-L/nil' '-Xlinker' '-R' '-Xlinker'
'/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library'
-o libstdc++.la -rpath
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/lib
-version-info 6:9:0 -Wl,--version-script=libstdc++-symbols.ver -lm 
bitmap_allocator.lo pool_allocator.lo mt_allocator.lo codecvt.lo
compatibility.lo complex_io.lo ctype.lo debug.lo debug_list.lo functexcept.lo
globals_io.lo ios.lo ios_failure.lo ios_init.lo ios_locale.lo limits.lo list.lo
locale.lo locale_init.lo locale_facets.lo localename.lo stdexcept.lo
strstream.lo tree.lo allocator-inst.lo concept-inst.lo fstream-inst.lo
ext-inst.lo ios-inst.lo iostream-inst.lo istream-inst.lo istream.lo
locale-inst.lo misc-inst.lo ostream-inst.lo sstream-inst.lo streambuf-inst.lo
streambuf.lo string-inst.lo valarray-inst.lo wlocale-inst.lo wstring-inst.lo
atomicity.lo codecvt_members.lo collate_members.lo ctype_members.lo
messages_members.lo monetary_members.lo numeric_members.lo time_members.lo
basic_file.lo c++locale.lo  ../libmath/libmath.la
../libsupc++/libsupc++convenience.la -lm 

/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/./gcc/xgcc
-shared-libgcc
-B/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/./gcc
-nostdinc++
-L/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3/src
-L/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/i686-pc-linux-gnu/bin/
-B/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/i686-pc-linux-gnu/lib/
-isystem
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/i686-pc-linux-gnu/include
-isystem
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/prefix/i686-pc-linux-gnu/sys-include
-shared -nostdlib
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library/crti.o
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/./gcc/crtbeginS.o
 .libs/bitmap_allocator.o .libs/pool_allocator.o .libs/mt_allocator.o
.libs/codecvt.o .libs/compatibility.o .libs/complex_io.o .libs/ctype.o
.libs/debug.o .libs/debug_list.o .libs/functexcept.o .libs/globals_io.o
.libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o
.libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o
.libs/locale_facets.o .libs/localename.o .libs/stdexcept.o .libs/strstream.o
.libs/tree.o .libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o
.libs/ext-inst.o .libs/ios-inst.o .libs/iostream-inst.o .libs/istream-inst.o
.libs/istream.o .libs/locale-inst.o .libs/misc-inst.o .libs/ostream-inst.o
.libs/sstream-inst.o .libs/streambuf-inst.o .libs/streambuf.o
.libs/string-inst.o .libs/valarray-inst.o .libs/wlocale-inst.o
.libs/wstring-inst.o .libs/atomicity.o .libs/codecvt_members.o
.libs/collate_members.o .libs/ctype_members.o .libs/messages_members.o
.libs/monetary_members.o .libs/numeric_members.o .libs/time_members.o
.libs/basic_file.o .libs/c++locale.o -Wl,--whole-archive
../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a
-Wl,--no-whole-archive 
-L/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3/src
-L/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-L/nil -lm ../libmath/.libs/libmath.a -lm
../libsupc++/.libs/libsupc++convenience.a -lm
-L/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/./gcc
-L/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library
-lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s  
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/./gcc/crtendS.o
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library/crtn.o
 -Wl,-O1 -Wl,-z -Wl,relro -Wl,--gc-sections -Wl,-Xcompiler
-Wl,/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library/ld-linux.so.2
-Wl,-R
-Wl,/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/glibc/library
-Wl,--version-script=libstdc++-symbols.ver -Wl,-soname -Wl,libstdc++.so.6 -o
.libs/libstdc++.so.6.0.9
/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/conf/binutils/command/ld:
cannot open linker script file ompiler: No such file or directory
collect2: ld returned 1 exit status
make[4]: *** [libstdc++.la] Error 1
make[4]: Leaving directory
`/fs/pkgs/mount/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/fs/pkgs/mount/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/fs/pkgs/mount/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory
`/fs/pkgs/mount/package/host/code.dogmap.org/foreign/gcc-4.2.0-20070501+spf+0/compile/src/build'
make: *** [bootstrap] Error 2

This does not happen with previous versions of gcc.


-- 
           Summary: "-Xcompiler" is inserted after "-Xlinker" when building
                    libstdc++
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: prj-bugzilla-gcc at multivac dot cwru dot edu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31906



More information about the Gcc-bugs mailing list