[Llvm-bgq-discuss] total view with clang bgq

Thomas Heller thom.heller at gmail.com
Tue May 6 01:08:43 CDT 2014


On 05/05/2014 11:14 PM, Biddiscombe, John A. wrote:
> Hal,
>
> Yup. Disabling pch fixed the problem. Thanks.
>
> Boost and hpx are compiled after I made some tweaks to the bgq specific
> bits. (I’ve got one error on launch which I can’t seem to fix, but I don’t
> think this is clang related unless there’s some name mangling that is
> causing the trouble).
>
> JB
>
> symbol lookup error:
> /gpfs/bbp.cscs.ch/home/biddisco/apps/clang/hpx/lib/hpx/libhpxd.so.0:
> undefined symbol:
> _ZNK5boost15program_options29value_semantic_codecvt_helperIcE5parseERNS_3an
> yERKNSt3__16vectorINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorI
> cEEEENSA_ISC_EEEEb

Just a thought, did you compile both boost and HPX in C++11 mode?

>
>
>
> On 05/05/14 13:13, "Hal Finkel" <hfinkel at anl.gov> wrote:
>
>> ----- Original Message -----
>>> From: "John A. Biddiscombe" <biddisco at cscs.ch>
>>> To: "Hal Finkel" <hfinkel at anl.gov>
>>> Cc: llvm-bgq-discuss at lists.alcf.anl.gov
>>> Sent: Monday, May 5, 2014 6:08:01 AM
>>> Subject: RE: [Llvm-bgq-discuss] total view with clang bgq
>>>
>>> NB. Thought : Is it possible my clang is picking up the wrong c++
>>> libs (bad LD_LIBRARY_PATH during compilation?)
>>
>> That's possible. You're seeing an internal compiler error. I'm not sure
>> you're doing anything wrong except being unlucky, but I do see that pth
>> is enabled, and I've run into problems with pth (pre-compiled headers)
>> before. Boost always turns them on my default, but I'd trying disabling
>> them in the build config and trying again.
>>
>> -Hal
>>
>>>
>>> JB
>>>
>>>> -----Original Message-----
>>>> From: Hal Finkel [mailto:hfinkel at anl.gov]
>>>> Sent: 05 May 2014 13:02
>>>> To: Biddiscombe, John A.
>>>> Cc: llvm-bgq-discuss at lists.alcf.anl.gov
>>>> Subject: Re: [Llvm-bgq-discuss] total view with clang bgq
>>>>
>>>> ----- Original Message -----
>>>>> From: "John A. Biddiscombe" <biddisco at cscs.ch>
>>>>> To: "Hal Finkel" <hfinkel at anl.gov>
>>>>> Cc: llvm-bgq-discuss at lists.alcf.anl.gov
>>>>> Sent: Monday, May 5, 2014 5:36:47 AM
>>>>> Subject: RE: [Llvm-bgq-discuss] total view with clang bgq
>>>>>
>>>>> Hal
>>>>>
>>>>> I had some success building simplish projects, but now I'm back
>>>>> to
>>>>> some bigger stuff.
>>>>> I have setup the r206161-20140414 release (up until now I was
>>>>> using
>>>>> r205936-20140409).
>>>>>
>>>>> When compiling boost as follows
>>>>> ./bootstrap.sh --with-toolset=clang
>>>>>   --prefix=/gpfs/bbp.cscs.ch/home/biddisco/apps/clang/boost_1_55_0
>>>>>
>>>>> ./b2 toolset=clang cxxflags="-mcpu=a2
>>>>>
>>> -I/bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-linux/include/
>>>>> c++/4.7.2/
>>>>>
>>> -I/bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-linux/include/
>>>>> c++/4.7.2/powerpc64-bgq-linux
>>>>> -std=gnu++11 -DBOOST_NO_FENV_H"
>>>>> --prefix=/gpfs/bbp.cscs.ch/home/biddisco/apps/clang/boost_1_55_0
>>>>> --layout=versioned architecture=power threading=multi link=shared
>>>>> variant=debug -j12 install
>>>>>
>>>>> I get a lot of these ...(see below).
>>>>> My suspicion is that the bgclang scripts pass additional params
>>>>> to
>>>>> clang which get around this (because otherwise you'd have got
>>>>> these
>>>>> errors too no doubt).  Are there any things I should be looking
>>>>> for in
>>>>> bgclang that are not passed to clang using my command line?
>>>>
>>>> I've not seen this error before. Try building without pth support
>>>> enabled.
>>>>
>>>> I'm also working on a rebase, so there should be a new version to
>>>> test soon.
>>>>
>>>>   -Hal
>>>>
>>>>>
>>>>> thanks
>>>>>
>>>>> JB
>>>>>
>>>>>    "clang++" -c -x c++ -mcpu=a2
>>>>>    -I/bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-
>>>> linux/include/c++/4.7.2/
>>>>>    -I/bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-
>>>> linux/include/c++/4.7.2/powerpc64-bgq-linux
>>>>>    -std=gnu++11 -DBOOST_NO_FENV_H -O0 -g -Winvalid-pch -fno-inline
>>>>>    -Wall -g -pthread -fPIC -mcpu=a2
>>>>>    -I/bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-
>>>> linux/include/c++/4.7.2/
>>>>>    -I/bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-
>>>> linux/include/c++/4.7.2/powerpc64-bgq-linux
>>>>>    -std=gnu++11 -DBOOST_NO_FENV_H -Winvalid-pch -
>>>> DBOOST_ALL_NO_LIB=1
>>>>>    -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -I"."
>>>>>    -I"libs/math/src/tr1" -Xclang -include-pth -Xclang
>>>>>    "bin.v2/libs/math/build/clang-linux-3.5.0/debug/architecture-
>>>> power/threading-multi/../src/tr1/pch.hpp.pth"
>>>>>    -o
>>>>>    "bin.v2/libs/math/build/clang-linux-3.5.0/debug/architecture-
>>>> power/threading-multi/comp_ellint_3.o"
>>>>>    "libs/math/build/../src/tr1/comp_ellint_3.cpp"
>>>>>
>>>>> ...failed clang-linux.compile.c++.with-pch
>>>>> bin.v2/libs/math/build/clang-linux-3.5.0/debug/architecture-
>>>> power/threading-multi/comp_ellint_3.o...
>>>>> clang-linux.compile.c++.with-pch
>>>>>
>>> bin.v2/libs/math/build/clang-linux-3.5.0/debug/architecture-power/thre
>>>>> ading-multi/assoc_laguerre.o
>>>>> clang:
>>>>> /gpfs/vesta-
>>>>
>>> home/hfinkel/rpmbuild/BUILD/llvm/tools/clang/lib/Basic/SourceManager.cp
>>>> p:2113:
>>>>> bool
>>>>>
>>> clang::SourceManager::isBeforeInTranslationUnit(clang::SourceLocation,
>>>>> clang::SourceLocation) const: Assertion `LIsBuiltins &&
>>>>> RIsBuiltins &&
>>>>> "Non-built-in locations must be rooted in the main file"' failed.
>>>>> 0  libLLVM-3.5.0svn.so 0x00000fff853a1058
>>>>> llvm::sys::PrintStackTrace(_IO_FILE*) + 4280956016
>>>>> 1  libLLVM-3.5.0svn.so 0x00000fff853a12f4
>>>>> 2  libLLVM-3.5.0svn.so 0x00000fff853a1770
>>>>> 3                      0x00000fff86160448 __kernel_sigtramp_rt64
>>>>> + 0
>>>>> 4  libc.so.6           0x00000080a0be6ea8 abort + 4293479768
>>>>> 5  libc.so.6           0x00000080a0bdb92c
>>>>> 6  libc.so.6           0x00000080a0bdba44 __assert_fail +
>>>>> 4293437396
>>>>> 7  clang               0x0000000011543118
>>>>>
>>> clang::SourceManager::isBeforeInTranslationUnit(clang::SourceLocation,
>>>>> clang::SourceLocation) const + 4290617904
>>>>> 8  clang               0x00000000113f5f70
>>>>> clang::RawCommentList::addComment(clang::RawComment const&,
>>>>> llvm::BumpPtrAllocatorImpl<llvm::MallocSlabAllocator, 4096ul,
>>>>> 4096ul>&) + 4289293880
>>>>> 9  clang               0x000000001073f3a8
>>>>> clang::Sema::ActOnComment(clang::SourceRange) + 4276277792
>>>>> 10 clang               0x000000001067f594
>>>>> 11 clang               0x0000000011500920
>>>>> clang::Preprocessor::HandleComment(clang::Token&,
>>>>> clang::SourceRange) + 4290354144
>>>>> 12 clang               0x00000000114a8e8c
>>>>> clang::Lexer::SkipLineComment(clang::Token&, char const*, bool&)
>>>>> +
>>>>> 4290004852
>>>>> 13 clang               0x00000000114ac158
>>>>> clang::Lexer::LexTokenInternal(clang::Token&, bool) + 4290017544
>>>>> 14 clang               0x00000000114aa084
>>>>> clang::Lexer::Lex(clang::Token&) + 4290009356
>>>>> 15 clang               0x00000000114ff99c
>>>>> clang::Preprocessor::Lex(clang::Token&) + 4290350340
>>>>> 16 clang               0x000000001067504c
>>>>> 17 clang               0x00000000106a1fa8
>>>>>
>>> clang::Parser::ParseInnerNamespace(std::__1::vector<clang::SourceLocat
>>>>> ion, std::__1::allocator<clang::SourceLocation> >&,
>>>>> std::__1::vector<clang::IdentifierInfo*,
>>>>> std::__1::allocator<clang::IdentifierInfo*> >&,
>>>>> std::__1::vector<clang::SourceLocation,
>>>>> std::__1::allocator<clang::SourceLocation> >&, unsigned int,
>>>>> clang::SourceLocation&, clang::ParsedAttributes&,
>>>>> clang::BalancedDelimiterTracker&) + 4275650184
>>>>> 18 clang               0x00000000106a11fc
>>>>> clang::Parser::ParseNamespace(unsigned int,
>>>>> clang::SourceLocation&,
>>>>> clang::SourceLocation) + 4275646732
>>>>> 19 clang               0x0000000010689d18
>>>>> clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*,
>>>>> 32u>&, unsigned int, clang::SourceLocation&,
>>>>> clang::Parser::ParsedAttributesWithRange&) + 4275552448
>>>>> 20 clang               0x000000001067792c
>>>>>
>>> clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttribute
>>>>> sWithRange&,
>>>>> clang::ParsingDeclSpec*) + 4275479708
>>>>> 21 clang               0x0000000010677160
>>>>>
>>> clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>
>>>>> &)
>>>>> + 4275477736
>>>>> 22 clang               0x00000000106725e4
>>>>> clang::ParseAST(clang::Sema&, bool, bool) + 4275459060
>>>>> 23 clang               0x00000000101e3260
>>>>> clang::ASTFrontendAction::ExecuteAction() + 4270804464
>>>>> 24 clang               0x000000001040a490
>>>>> clang::CodeGenAction::ExecuteAction() + 4272996328
>>>>> 25 clang               0x00000000101e28b4
>>>>> clang::FrontendAction::Execute() + 4270802060
>>>>> 26 clang               0x00000000101addd4
>>>>> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) +
>>>>> 4270589116
>>>>> 27 clang               0x000000001018a9b0
>>>>> clang::ExecuteCompilerInvocation(clang::CompilerInstance*) +
>>>>> 4270451632
>>>>> 28 clang               0x000000001017f314 cc1_main(char const**,
>>>>> char
>>>>> const**, char const*, void*) + 4270405844
>>>>> 29 clang               0x0000000010187cc4 main + 4270440492
>>>>> 30 libc.so.6           0x00000080a0bcbcf8
>>>>> 31 libc.so.6           0x00000080a0bcbef0 __libc_start_main +
>>>>> 4293374496
>>>>> Stack dump:
>>>>> 0.	Program arguments:
>>>>> /gpfs/bbp.cscs.ch/home/biddisco/apps/clang/bgclang/r206161-
>>>> 20140414/bi
>>>>> n/clang
>>>>> -cc1 -triple powerpc64-unknown-linux-gnu -S -disable-free
>>>>> -main-file-name assoc_laguerre.cpp -mrelocation-model pic
>>>>> -pic-level
>>>>> 2 -mdisable-fp-elim -fmath-errno -no-integrated-as
>>>>> -mconstructor-aliases -target-cpu a2 -target-linker-version
>>>>> 2.20.51.0.2 -g -coverage-file /tmp/assoc_laguerre-131f32.s
>>>>> -resource-dir
>>>>> /gpfs/bbp.cscs.ch/home/biddisco/apps/clang/bgclang/r206161-
>>>> 20140414/bi
>>>>> n/../lib/clang/3.5.0 -D BOOST_NO_FENV_H -D BOOST_NO_FENV_H -D
>>>>> BOOST_ALL_NO_LIB=1 -D BOOST_BUILD_PCH_ENABLED -D
>>>>> BOOST_MATH_TR1_DYN_LINK=1 -I
>>>>>
>>> /bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-linux/include/c+
>>>>> +/4.7.2/
>>>>> -I
>>>>>
>>> /bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-linux/include/c+
>>>>> +/4.7.2/powerpc64-bgq-linux
>>>>> -I
>>>>>
>>> /bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-linux/include/c+
>>>>> +/4.7.2/
>>>>> -I
>>>>>
>>> /bgsys/drivers/ppcfloor/gnu-linux-4.7.2/powerpc64-bgq-linux/include/c+
>>>>> +/4.7.2/powerpc64-bgq-linux -I . -I libs/math/src/tr1
>>>>> -internal-isystem
>>>>> /usr/lib/gcc/ppc64-redhat-linux/4.4.7/../../../../include/c++/4.4.7
>>>>> -internal-isystem
>>>>>
>>> /usr/lib/gcc/ppc64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/pp
>>>>> c64-redhat-linux
>>>>> -internal-isystem
>>>>>
>>> /usr/lib/gcc/ppc64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ba
>>>>> ckward
>>>>> -internal-isystem
>>>>>
>>> /usr/lib/gcc/ppc64-redhat-linux/4.4.7/../../../../include/ppc64-redhat
>>>>> -linux/c++/4.4.7 -internal-isystem /usr/local/include
>>>>> -internal-isystem
>>>>> /gpfs/bbp.cscs.ch/home/biddisco/apps/clang/bgclang/r206161-
>>>> 20140414/bi
>>>>> n/../lib/clang/3.5.0/include -internal-externc-isystem /include
>>>>> -internal-externc-isystem /usr/include -O0 -Winvalid-pch -Wall
>>>>> -Winvalid-pch -std=gnu++11 -fdeprecated-macro
>>>>> -fno-dwarf-directory-asm
>>>>> -fdebug-compilation-dir
>>>>> /gpfs/bbp.cscs.ch/home/biddisco/bgas/clang/build/boost_1_55_0
>>>>> -ferror-limit 19 -fmessage-length 0 -pthread -mstackrealign
>>>>> -fno-signed-char -fno-inline -fobjc-runtime=gcc -fcxx-exceptions
>>>>> -fexceptions -fdiagnostics-show-option -vectorize-slp
>>>>> -include-pth
>>>>>
>>> bin.v2/libs/math/build/clang-linux-3.5.0/debug/architecture-power/thre
>>>>> ading-multi/../src/tr1/pch.hpp.pth
>>>>> -o /tmp/assoc_laguerre-131f32.s -x c++
>>>>> libs/math/build/../src/tr1/assoc_laguerre.cpp
>>>>> 1.	<unknown> parser at unknown location
>>>>> 2.	./boost/math/special_functions/hankel.hpp:12:1: parsing
>>>> namespace
>>>>> 'boost'
>>>>> clang: error: unable to execute command: Aborted (core dumped)
>>>>> clang: error: clang frontend command failed due to signal (use -v
>>>>> to
>>>>> see invocation) clang version 3.5.0 (trunk)
>>>>> Target: powerpc64-unknown-linux-gnu
>>>>> Thread model: posix
>>>>> clang: note: diagnostic msg: PLEASE submit a bug report to
>>>>> http://llvm.org/bugs/ and include the crash backtrace,
>>>>> preprocessed
>>>>> source, and associated run script.
>>>>> clang: note: diagnostic msg:
>>>>> ********************
>>>>>
>>>>> PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
>>>>> Preprocessed source(s) and associated run script(s) are located
>>>>> at:
>>>>> clang: note: diagnostic msg: /tmp/assoc_laguerre-ba076b.cpp
>>>>> clang: note: diagnostic msg: /tmp/assoc_laguerre-ba076b.sh
>>>>> clang: note: diagnostic msg:
>>>>>
>>>>> ********************
>>>>>
>>>>
>>>> --
>>>> Hal Finkel
>>>> Assistant Computational Scientist
>>>> Leadership Computing Facility
>>>> Argonne National Laboratory
>>>
>>
>> --
>> Hal Finkel
>> Assistant Computational Scientist
>> Leadership Computing Facility
>> Argonne National Laboratory
>
> _______________________________________________
> llvm-bgq-discuss mailing list
> llvm-bgq-discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
>


-- 
Thomas Heller
Friedrich-Alexander-Universität Erlangen-Nürnberg
Department Informatik - Lehrstuhl Rechnerarchitektur
Martensstr. 3
91058 Erlangen
Tel.: 09131/85-27018
Fax:  09131/85-27912
Email: thomas.heller at cs.fau.de


More information about the llvm-bgq-discuss mailing list