[Llvm-bgq-discuss] Questions about llvm-config and libc++

Sandipan Mohanty s.mohanty at fz-juelich.de
Wed Nov 16 04:36:40 CST 2016


Hi!

Q1:
 On the Jülich BGQ, llvm-config --cxxflags returns

-I/usr/local/bg_soft/clang/r266865-stable-2/r266865-stable/include -
I/dev/shm/bgclang-merging/stage2/libc++/include/c++/v1 -fPIC -fvisibility-
inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -
Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -
Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -ffunction-sections -
fdata-sections -O3 -fno-altivec   -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -
D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

This has references to /dev/shm locations, which probably don't continue to
exist after the build. Shouldn't llvm-config return flags based on the
installation location ?

Q2:
 Is libc++ also compiled for the front-end ? I did not find one on our system.
Compiling with "clang++ -stdlib=libc++ ..." simply leads to ld not being able
to find "-lc++". bgclang++ finds its version of libc++.

/Sandipan



------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------



More information about the llvm-bgq-discuss mailing list