Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build break on amd64 and evbmips



On Wed, 11 Jul 2012, Paul Goyette wrote:

On amd64, starting with a clean $OBJDIR I get

#     build  libatf-c++/libatf-c++.so.0.0
rm -f libatf-c++.so.0.0
/build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-c++ -Wl,-x -shared -Wl,-soname,libatf-c++.so.0 -Wl,--warn-shared-textrel --sysroot=/build/netbsd-local/dest/amd64 -o libatf-c++.so.0.0 -Wl,-rpath-link,/build/netbsd-local/dest/amd64/lib -L=/lib -Wl,--whole-archive libatf-c++_pic.a -Wl,--no-whole-archive -L/build/netbsd-local/obj/amd64/external/bsd/atf/lib/libatf-c++/../libatf-c -latf-c /build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/bin/ld: cannot find -lstdc++ /build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/bin/ld: cannot find -lm
collect2: ld returned 1 exit status

If I enable "-t --verbose" on the link command, I get the following. I still don't see why we pass "-lm" to collect2 ...

#     build  libatf-c++/libatf-c++.so.0.0
rm -f libatf-c++.so.0.0
/build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-c++ -Wl,-x -shared -Wl,-soname,libatf-c++.so.0 -Wl,--warn-shared-textrel --sysroot=/build/netbsd-local/dest/amd64 -o libatf-c++.so.0.0 -Wl,-rpath-link,/build/netbsd-local/dest/amd64/lib -L=/lib -Wl,--whole-archive libatf-c++_pic.a -Wl,--no-whole-archive -t --verbose -L/build/netbsd-local/obj/amd64/external/bsd/atf/lib/libatf-c++/../libatf-c -latf-c Using built-in specs.
COLLECT_GCC=/build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-c++
COLLECT_LTO_WRAPPER=/build/netbsd-local/tools/x86_64/amd64/libexec/gcc/x86_64--netbsd/4.5.3/lto-wrapper
Target: x86_64--netbsd
Configured with: 
/build/netbsd-local/src/tools/gcc/../../external/gpl3/gcc/dist/configure 
--target=x86_64--netbsd --enable-long-long --enable-threads 
--with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD 
nb2 20111202' --with-system-zlib --enable-__cxa_atexit --with-tune=nocona 
--with-mpc=/build/netbsd-local/tools/x86_64/amd64 
--with-mpfr=/build/netbsd-local/tools/x86_64/amd64 
--with-gmp=/build/netbsd-local/tools/x86_64/amd64 --disable-nls 
--enable-multilib --program-transform-name=s,^,x86_64--netbsd-, 
--enable-languages='c c++ objc' --prefix=/build/netbsd-local/tools/x86_64/amd64
Thread model: posix
gcc version 4.5.3 (NetBSD nb2 20111202) COMPILER_PATH=/build/netbsd-local/tools/x86_64/amd64/libexec/gcc/x86_64--netbsd/4.5.3/:/build/netbsd-local/tools/x86_64/amd64/libexec/gcc/x86_64--netbsd/4.5.3/:/build/netbsd-local/tools/x86_64/amd64/libexec/gcc/x86_64--netbsd/:/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/:/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/:/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/bin/
LIBRARY_PATH=/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/:/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/lib/:/build/netbsd-local/dest/amd64/usr/lib/
COLLECT_GCC_OPTIONS='-shared' '-o' 'libatf-c++.so.0.0' '-L=/lib' '-t' '-v' 
'-L/build/netbsd-local/obj/amd64/external/bsd/atf/lib/libatf-c++/../libatf-c' 
'-shared-libgcc' '-mtune=nocona' '-march=x86-64'
/build/netbsd-local/tools/x86_64/amd64/libexec/gcc/x86_64--netbsd/4.5.3/collect2
 --sysroot=/build/netbsd-local/dest/amd64 --eh-frame-hdr -shared -o 
libatf-c++.so.0.0 -t /build/netbsd-local/dest/amd64/usr/lib/crti.o 
/build/netbsd-local/dest/amd64/usr/lib/crtbeginS.o -L=/lib 
-L/build/netbsd-local/obj/amd64/external/bsd/atf/lib/libatf-c++/../libatf-c 
-L/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3 
-L/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/lib
 -L/build/netbsd-local/dest/amd64/usr/lib -x -soname libatf-c++.so.0 
--warn-shared-textrel -rpath-link /build/netbsd-local/dest/amd64/lib 
--whole-archive libatf-c++_pic.a --no-whole-archive -latf-c -lstdc++ -lm 
--as-needed -lgcc_s --no-as-needed -lgcc -lc --as-needed -lgcc_s --no-as-needed 
-lgcc /build/netbsd-local/dest/amd64/usr/lib/crtendS.o 
/build/netbsd-local/dest/amd64/usr/lib/crtn.o
/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/bin/ld:
 mode elf_x86_64
/build/netbsd-local/dest/amd64/usr/lib/crti.o
/build/netbsd-local/dest/amd64/usr/lib/crtbeginS.o
(libatf-c++_pic.a)tests.pico
(libatf-c++_pic.a)parser.pico
(libatf-c++_pic.a)expand.pico
(libatf-c++_pic.a)config.pico
(libatf-c++_pic.a)check.pico
(libatf-c++_pic.a)build.pico
(libatf-c++_pic.a)application.pico
(libatf-c++_pic.a)ui.pico
(libatf-c++_pic.a)process.pico
(libatf-c++_pic.a)fs.pico
(libatf-c++_pic.a)env.pico
(libatf-c++_pic.a)text.pico
(libatf-c++_pic.a)exceptions.pico
-latf-c 
(/build/netbsd-local/obj/amd64/external/bsd/atf/lib/libatf-c++/../libatf-c/libatf-c.so)
-lgcc_s (/build/netbsd-local/dest/amd64/lib/libgcc_s.so)
-lc (/build/netbsd-local/dest/amd64/lib/libc.so)
-lgcc_s (/build/netbsd-local/dest/amd64/lib/libgcc_s.so)
/build/netbsd-local/dest/amd64/usr/lib/crtendS.o
/build/netbsd-local/dest/amd64/usr/lib/crtn.o/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/bin/ld:
 cannot find -lstdc++
/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/bin/ld:
 cannot find -lm
collect2: ld returned 1 exit status



-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index