Date: Wed, 28 Dec 2011 17:15:44 +0100 From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: Dimitry Andric <dim@FreeBSD.org> Cc: Current FreeBSD <freebsd-current@freebsd.org>, Ports FreeBSD <freebsd-ports@FreeBSD.org> Subject: Re: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libstdc++.a: could not read symbols: Bad value Message-ID: <4EFB40B0.8020503@zedat.fu-berlin.de> In-Reply-To: <4EFB3C4F.2020108@FreeBSD.org> References: <4EFAF3FC.60002@zedat.fu-berlin.de> <4EFB3C4F.2020108@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1FD12ABD761C91083378292F Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Am 12/28/11 16:57, schrieb Dimitry Andric: > On 2011-12-28 11:48, O. Hartmann wrote: > ... >> /usr/local/bin/ld: >> /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libs= tdc++.a(functexcept.o): >> >> relocation R_X86_64_32 against `std::bad_exception::~bad_exception()' >> can not be used when making a shared object; recompile with -fPIC >> /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../libs= tdc++.a: >> >> could not read symbols: Bad value >> collect2: ld returned 1 exit status >=20 > What happens if you compile and link the following simple program with > g++46: >=20 > #include <iostream> >=20 > int main(void) > { > std::cout << "Hello World!" << std::endl; > return 0; > } >=20 > Does it fail with the same type of link error, e.g. linking to the > libstdc++.a instead libstdc++.so? It would be nice if you can add -v t= o > the command line, and paste the output here. >=20 > I suspect your g++46 port is busted, for some reason. It works fine: ohartmann@telesto: [~] g++46 -v -o muff muff.cpp Using built-in specs. COLLECT_GCC=3Dg++46 COLLECT_LTO_WRAPPER=3D/usr/local/libexec/gcc46/gcc/x86_64-portbld-freebsd= 9.0/4.6.3/lto-wrapper Target: x86_64-portbld-freebsd9.0 Configured with: ./../gcc-4.6-20111209/configure --disable-nls --enable-languages=3Dc,c++,objc,fortran --libdir=3D/usr/local/lib/gcc46 --libexecdir=3D/usr/local/libexec/gcc46 --program-suffix=3D46 --with-as=3D/usr/local/bin/as --with-gmp=3D/usr/local --with-gxx-include-dir=3D/usr/local/lib/gcc46/include/c++/ --with-ld=3D/usr/local/bin/ld --with-libiconv-prefix=3D/usr/local --with-pkgversion=3D'FreeBSD Ports Collection' --with-system-zlib --enable-languages=3Dc,c++,objc,fortran,java --prefix=3D/usr/local --mandir=3D/usr/local/man --infodir=3D/usr/local/info/gcc46 --build=3Dx86_64-portbld-freebsd9.0 Thread model: posix gcc version 4.6.3 20111209 (prerelease) (FreeBSD Ports Collection) COLLECT_GCC_OPTIONS=3D'-v' '-o' 'muff' '-shared-libgcc' '-mtune=3Dgeneric= ' '-march=3Dx86-64' /usr/local/libexec/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/cc1plus -quiet -v muff.cpp -quiet -dumpbase muff.cpp -mtune=3Dgeneric -march=3Dx86-64 -auxbase muff -version -o /var/tmp//ccu1eDPY.s GNU C++ (FreeBSD Ports Collection) version 4.6.3 20111209 (prerelease) (x86_64-portbld-freebsd9.0) compiled by GNU C version 4.6.3 20111209 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D1= 31072 ignoring nonexistent directory "/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../../../= x86_64-portbld-freebsd9.0/include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc46/include/c++/ /usr/local/lib/gcc46/include/c++//x86_64-portbld-freebsd9.0 /usr/local/lib/gcc46/include/c++//backward /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/include /usr/local/include /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/include-fixed /usr/include End of search list. GNU C++ (FreeBSD Ports Collection) version 4.6.3 20111209 (prerelease) (x86_64-portbld-freebsd9.0) compiled by GNU C version 4.6.3 20111209 (prerelease), GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D1= 31072 Compiler executable checksum: 1f5bea4d4b089362b811317a91015e20 COLLECT_GCC_OPTIONS=3D'-v' '-o' 'muff' '-shared-libgcc' '-mtune=3Dgeneric= ' '-march=3Dx86-64' /usr/local/bin/as -v -o /var/tmp//ccblbg7V.o /var/tmp//ccu1eDPY.s GNU assembler version 2.22 (x86_64-portbld-freebsd9.0) using BFD version (GNU Binutils) 2.22 COMPILER_PATH=3D/usr/local/libexec/gcc46/gcc/x86_64-portbld-freebsd9.0/4.= 6.3/:/usr/local/libexec/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/:/usr/l= ocal/libexec/gcc46/gcc/x86_64-portbld-freebsd9.0/:/usr/local/lib/gcc46/gc= c/x86_64-portbld-freebsd9.0/4.6.3/:/usr/local/lib/gcc46/gcc/x86_64-portbl= d-freebsd9.0/:/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/..= /../../../../x86_64-portbld-freebsd9.0/bin/ LIBRARY_PATH=3D/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/:= /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../../../x= 86_64-portbld-freebsd9.0/lib/:/usr/local/lib/gcc46/gcc/x86_64-portbld-fre= ebsd9.0/4.6.3/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS=3D'-v' '-o' 'muff' '-shared-libgcc' '-mtune=3Dgeneric= ' '-march=3Dx86-64' /usr/local/libexec/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/collect2 --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.so.1 -o muff /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/crtbegin.o -L/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3 -L/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../../../..= /x86_64-portbld-freebsd9.0/lib -L/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/../../.. /var/tmp//ccblbg7V.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/crtend.o /usr/lib/crtn.o GNU ld (GNU Binutils) 2.22 Supported emulations: elf_x86_64_fbsd elf_i386_fbsd elf_x86_64 elf_i386 elf_l1om elf_l1om_fbsd elf_k1om elf_k1om_fbsd ohartmann@telesto: [~] ./muff Hello World! ohartmann@telesto: [~] --------------enig1FD12ABD761C91083378292F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJO+0CwAAoJEOgBcD7A/5N8L60IAIzkpLgZz4zMkHE8L99QA9U3 pcEwMYduL04uT6rXtDXI/8eW3pVvZWTcr4DwUgFRdm6QLjFJOc2wrE3tB5PVz7GU H0vR4VwCl75fNNjvKdREuuTyvfyovlBC4Z79HvMS47jS4UtsQfwLbXn7M5Z12YpM W8jZA/ADYZ0TnzIHSxfaHOP6uuRrzM/tzoUTrp2oHqdE12cCsdTgVZswU2VK9qGU 4AE5X5AKe3HHirFkD6e6Vsw6A6Hxy0f9RFNp9k5sqDteA4Jasi2XqTRya/9YHgxO KHrvBhXu0XUJJ3utJ8anpUc1qBCMjBbDSNgfcPMQ9eXIYocxEVE5xGghjZ9BOHU= =c6Hp -----END PGP SIGNATURE----- --------------enig1FD12ABD761C91083378292F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EFB40B0.8020503>