Re: Errors when compiling C++ using cross GCC

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

 



On Sun, Nov 20, 2016 at 5:03 AM, Andrew Haley <aph@xxxxxxxxxx> wrote:

> You need to look at the output when compiling with "gcc -v".  There
> will be a reason in there.

Hmmm. I took a look and didn't see anything obvious. It should be
pulling libstdc++ from the install directory of GCC. I find it odd
it's reporting multiple definitions within the same SO.

Anything I missed that a second pair of eyes sees?

COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-march=armv6'
'-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu'
 /opt/cross/libexec/gcc/arm-linux-gnueabihf/6.2.0/collect2 -plugin
/opt/cross/libexec/gcc/arm-linux-gnueabihf/6.2.0/liblto_plugin.so
-plugin-opt=/opt/cross/libexec/gcc/arm-linux-gnueabihf/6.2.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccNy0cGH.res
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc --sysroot=/emb-root --eh-frame-hdr
-dynamic-linker /lib/ld-linux-armhf.so.3 -X -m armelf_linux_eabi
/emb-root/usr/lib/arm-linux-gnueabihf/crt1.o
/emb-root/usr/lib/arm-linux-gnueabihf/crti.o
/opt/cross/lib/gcc/arm-linux-gnueabihf/6.2.0/crtbegin.o
-L/opt/cross/lib/gcc/arm-linux-gnueabihf/6.2.0
-L/opt/cross/lib/gcc/arm-linux-gnueabihf/6.2.0/../../../../arm-linux-gnueabihf/lib
-L/emb-root/lib/arm-linux-gnueabihf -L/emb-root/lib
-L/emb-root/usr/lib/arm-linux-gnueabihf -L/emb-root/usr/lib
/tmp/ccN7X3kx.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/opt/cross/lib/gcc/arm-linux-gnueabihf/6.2.0/crtend.o
/emb-root/usr/lib/arm-linux-gnueabihf/crtn.o

Thanks,
Mark



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux