NIXPKGS-60: g++ 4.2.0 cannot create dynamically linked executables
$ ./result/bin/g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.0/configure –prefix=/nix/store/wdgr3pbib1naq5bvmj2g06dfs7mc80fr-gcc-4.2.0 –disable-multilib –disable-libstdcxx-pch –with-system-zlib –enable-languages=c,c++ –with-arch=i686
Thread model: posix
gcc version 4.2.0$ ./result/bin/g++ ./foo.cc
/nix/store/5fkmks53l5f1n17q278f7raw0vs9qj8m-binutils-2.17/bin/ld: a.out: hidden symbol `__dso_handle in /nix/store/wdgr3pbib1naq5bvmj2g06dfs7mc80fr-gcc-4.2.0/lib/gcc/i686-pc-linux-gnu/4.2.0/crtbegin.o is referenced by DSO
/nix/store/5fkmks53l5f1n17q278f7raw0vs9qj8m-binutils-2.17/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit statusWith -static it does work.
Submitted on 21 May 2007 at 23:50
Log in to post comments