This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Errors when compiling C++ using cross GCC
- From: Mark G <markg735 at gmail dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 20 Nov 2016 11:26:08 -0500
- Subject: Re: Errors when compiling C++ using cross GCC
- Authentication-results: sourceware.org; auth=none
- References: <CAEeOP_ZHGrZgJ1+_mj5M51fxe=EhMo16Nw2nVqzXX57cc9u0Tw@mail.gmail.com> <d1acdee7-f751-f3fd-7ef3-48aa02b5b204@redhat.com>
On Sun, Nov 20, 2016 at 5:03 AM, Andrew Haley <aph@redhat.com> 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