[Openmp-dev] Build error of openmp runtime with revision 246976

Hahnfeld, Jonas via Openmp-dev openmp-dev at lists.llvm.org
Mon Sep 7 23:15:46 PDT 2015


Hi Yi-Hong,

the build system with Makefiles and Perl is currently broken, therefore 
deprecated and will be removed in short future (documentation is not yet 
updated...)
Please use CMake to build current versions of the OpenMP runtime. You can find 
documentation in runtime/Build_With_CMake.txt.

As it seems you are trying to build clang-omp (http://clang-omp.github.io/) 
you should consider trying the new LLVM 3.7.0 release which has OpenMP 3.1 
support mainlined.

Cheers,
Jonas

From: openmp-dev-bounces at cs.uiuc.edu [mailto:openmp-dev-bounces at cs.uiuc.edu] 
On Behalf Of Yi-Hong Lyu
Sent: Monday, September 07, 2015 11:00 PM
To: openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: [Openmp-dev] Build error of openmp runtime with revision 246976

Hello all,

I am using clang 3.5 to build openmp runtime with revision 246976. However I 
encounter the following error:

$ make compiler=clang
omp_root=.
omp_os=linux
arch=32e
compiler=clang
mic=no
mode=release
jobs=1
Created ./tmp directory
./tools/build.pl --arch=32e --mode=release lib inc common -- -j1
./tools/build.pl  --arch=32e --mode=release lib inc common -- -j1
.
.
.
----- 1/1 --- kmp_affinity.d -----
clang++ -I ./ -I ../../src/ -I ../../src/i18n/ -I ../../src/include/41/ -I 
../../src/thirdparty/ittnotify/ -D USE_DEBUGGER=1 -D USE_ITT_BUILD -D 
NDEBUG -D KMP_ARCH_STR="\"Intel(R) 64\"" -D _GNU_SOURCE -D _REENTRANT -D 
KMP_USE_ASSERT -D BUILD_I8 -D BUILD_TV -D KMP_LIBRARY_FILE=\"libomp.so\" -D 
KMP_VERSION_MAJOR=5 -D CACHE_LINE=64 -D KMP_ADJUST_BLOCKTIME=1 -D 
BUILD_PARALLEL_ORDERED -D KMP_ASM_INTRINS -D KMP_USE_INTERNODE_ALIGNMENT=0 -D 
KMP_USE_VERSION_SYMBOLS -D USE_LOAD_BALANCE -D USE_CBLKDATA -D 
KMP_DYNAMIC_LIB -D KMP_GOMP_COMPAT -D KMP_NESTED_HOT_TEAMS -D 
KMP_USE_ADAPTIVE_LOCKS=1 -D KMP_DEBUG_ADAPTIVE_LOCKS=0 -D 
KMP_STATS_ENABLED=0 -D OMP_50_ENABLED=0 -D OMP_41_ENABLED=1 -D 
OMP_40_ENABLED=1 -D USE_ITT_NOTIFY=1 -D INTEL_ITTNOTIFY_PREFIX=__kmp_itt_ -D 
KMP_TDATA_GTID  -c -fPIC -O2 -Wno-unused-value -Wno-switch -Wno-deprecated-register 
 -g -fno-exceptions -Wsign-compare  -M -MG ../../src/kmp_affinity.cpp > 
kmp_affinity.d
In file included from ../../src/kmp_affinity.cpp:16:
In file included from ../../src/kmp.h:78:
../../src/kmp_os.h:155:3: error: "Can't determine size_t printf format 
specifier."
# error "Can't determine size_t printf format specifier."
  ^
In file included from ../../src/kmp_affinity.cpp:16:
In file included from ../../src/kmp.h:98:
../../src/kmp_wrapper_malloc.h:111:6: error: Unknown or unsupported OS.
    #error Unknown or unsupported OS.
     ^
In file included from ../../src/kmp_affinity.cpp:20:
../../src/kmp_wrapper_getpid.h:35:6: error: Unknown or unsupported OS.
    #error Unknown or unsupported OS.
     ^
3 errors generated.
make[1]: *** Deleting file `kmp_affinity.d'
make[1]: *** No rule to make target `kmp_config.h', needed by 
`ittnotify_static.o'.  Stop.
make[1]: Leaving directory 
`/home/lyh/clang-omp/tmp-openmp/runtime/tmp/lin_32e-rtl_5_nor_dyn.rel.41.c0.s0...-mcwtw'
-------------------------------------------------------------------------------
Finished  : 2015-09-07 20:55:50 UTC
Elapsed   : 00:00:02
Result    : --- Failure ---
-------------------------------------------------------------------------------
build.pl: (i) --- Failure --- : lin_32e-rtl_5_nor_dyn.rel.41.c0.s0...-mcwtw
build.pl: (i) Successes       :   0 of   1
build.pl: (i) Failures        :   1 of   1
build.pl: (i) Time elapsed    :   00:00:02
build.pl: (i) Overall result  : --- Failure ---
make: *** [omp] Error 3

The same error occurs even I use clang 3.7 instead. I am wondering the reason 
of the error and how could I fix it?

PS. I didn't encounter such error with revision 238878.

Thanks for your reply,
Yi-Hong
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150908/0f3bc412/attachment.bin>


More information about the Openmp-dev mailing list