[Llvm-bgq-discuss] bgclang11 r206161-20140414 link error

Hal Finkel hfinkel at anl.gov
Fri Apr 25 06:04:29 CDT 2014


----- Original Message -----
> From: "Christophe Prud'homme" <christophe.prudhomme at feelpp.org>
> To: llvm-bgq-discuss at lists.alcf.anl.gov
> Sent: Friday, April 25, 2014 3:58:56 AM
> Subject: Re: [Llvm-bgq-discuss] bgclang11 r206161-20140414 link error
> 
> 
> 
> Hi
> 
> 
> I just subscribed to the list and have been reading the archive. It
> seems to me that the problem comes from the fact that I don't have
> access to /bgsys/drivers/toolchain/V1R2M1_base_4.7.2 on fermi at
> cineca, I am just a user. 

That is indeed the problem. Please let me know if that turns out to be impossible (or will take a long time) for any reason.

 -Hal

> I will ask the sysadmins of fermi to add
> this toolchain.
> 
> 
> Best regards
> C.
> 
> 
> 
> On Fri, Apr 25, 2014 at 10:25 AM, Christophe Prud'homme <
> christophe.prudhomme at feelpp.org > wrote:
> 
> 
> 
> Hello
> 
> 
> First thanks for bgclang!
> 
> 
> I need to use bgclang++ with c++11 enabled to compile our code. I get
> an error at link time for this simple code.
> 
> 
> 
> 
> --- t.cpp
> 
> 
> #include <iostream>
> 
> int main(int argc, char** argv )
> 
> 
> {
> 
> std::cout << "Hello\n";
> 
> return 0;
> 
> }
> 
> ----
> 
> 
> 
> bgclang++11 -o t t.cpp
> 
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib/libc++.a(exception.cpp.o):(.toc+0x0):
> undefined reference to `vtable for std::nested_exception'
> 
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> 
> 
> 
> 
> Am I missing something ?
> 
> 
> here is what I get adding -v
> 
> 
> 
> 
> clang version 3.5.0 (trunk)
> 
> Target: powerpc64-bgq-linux
> 
> Thread model: posix
> 
> Found candidate GCC installation:
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6
> 
> Selected GCC installation:
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6
> 
> Candidate multilib: .;@m64
> 
> Selected multilib: .;@m64
> 
> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/clang" -cc1
> -triple powerpc64-bgq-linux -S -disable-free -main-file-name t.cpp
> -static-define -mrelocation-model static -mdisable-fp-elim
> -ffp-contract=fast -no-integrated-as -mconstructor-aliases
> -target-cpu a2q -target-linker-version 2.20.51.0.2 -v -resource-dir
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0
> -D __bgclang__=1 -D "__bgclang_version__=\"r206161-20140414\"" -I
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/include
> -internal-isystem /usr/local/include -internal-isystem
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0/include
> -internal-externc-isystem /include -internal-externc-isystem
> /usr/include -std=gnu++11 -fdeprecated-macro
> -fno-dwarf-directory-asm -fdebug-compilation-dir /tmp -ferror-limit
> 19 -fmessage-length 143 -mstackrealign -fno-signed-char
> -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
> -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp
> -isystem
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/include
> -isystem
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libstdc++fixup/include
> -isystem
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6
> -isystem
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux
> -isystem
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/sys-include
> -mllvm -optimize-regalloc -mllvm -fast-isel=0 -o /tmp/t-bcbb9c.s -x
> c++ t.cpp
> 
> clang -cc1 version 3.5.0 based upon LLVM 3.5.0svn default target
> powerpc64-unknown-linux-gnu
> 
> ignoring nonexistent directory
> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libstdc++fixup/include"
> 
> ignoring nonexistent directory "/include"
> 
> #include "..." search starts here:
> 
> #include <...> search starts here:
> 
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/include
> 
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/include
> 
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6
> 
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/include/c++/4.4.6/powerpc64-bgq-linux
> 
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/sys-include
> 
> /usr/local/include
> 
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib/clang/3.5.0/include
> 
> /usr/include
> 
> End of search list.
> 
> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/binutils/bin/as" -a64
> -mppc64 -many -ma2q -o /tmp/t-1e5725.o /tmp/t-bcbb9c.s
> 
> "/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/binutils/bin/ld"
> --hash-style=gnu --no-add-needed --build-id -m elf64ppc -static -o t
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crt1.o
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crti.o
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/crtbeginT.o
> -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib
> -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/sleef/lib
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../lib64
> -L/lib/../lib64 -L/usr/lib/../lib64
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../../../powerpc64-bgq-linux/lib
> -L/bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/../../..
> -L/gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/bin/../lib -L/lib
> -L/usr/lib /tmp/t-1e5725.o --as-needed -lsleef --no-as-needed -lc++
> -lrt -lpthread -lstdc++ -lm --start-group -lgcc -lgcc_eh -ldl -lc
> -lnss_files -lnss_dns -lresolv -lm --end-group
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/lib/gcc/powerpc64-bgq-linux/4.4.6/crtend.o
> /bgsys/drivers/V1R2M1/ppc64/gnu-linux/powerpc64-bgq-linux/lib/crtn.o
> 
> /gpfs/work/LI03s_DDFD/bgclang/r206161-20140414/libc++/lib/libc++.a(exception.cpp.o):(.toc+0x0):
> undefined reference to `vtable for std::nested_exception'
> 
> 
> 
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> 
> 
> 
> 
> Thank you in advance for any feedback you may have
> 
> 
> Best regards
> C. --
> Christophe Prud'homme
> Feel++ Project Manager
> Professor in Applied Mathematics
> @ Université Joseph Fourier (Grenoble, France)
> @ Université de Strasbourg (France)
> 
> 
> 
> --
> Christophe Prud'homme
> Feel++ Project Manager
> Professor in Applied Mathematics
> @ Université Joseph Fourier (Grenoble, France)
> @ Université de Strasbourg (France)
> _______________________________________________
> llvm-bgq-discuss mailing list
> llvm-bgq-discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-bgq-discuss mailing list