Can't manage to build ldc, problem seems to be compiling ldc/runtime/profile-rt/profile-rt-38/GCDAProfiling.c

Andrew via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Jul 23 05:19:34 PDT 2016


Hi

While I have no problems on my laptop, running make fails to 
build ldc on my university's cluster. I'm trying with the latest 
master and llvm 3.8.0. The cmake command I'm using is:

cmake -L 
-DLLVM_CONFIG="/home/abrown/software/llvm/bin/llvm-config" 
-DLIBCONFIG_LIBRARY="/home/abrown/software/libs/lib/libconfig.a" 
-DLIBCONFIG_INCLUDE_DIR="/home/abrown/software/libs/include" 
-DCMAKE_INSTALL_PREFIX="/home/abrown/software/bin_files" ..

The lines with errors are copied below:

/home/abrown/software/ldc/runtime/profile-rt/profile-rt-38/GCDAProfiling.c:221:23: error: ‘MAP_FILE’ undeclared (first use in this function)
make[2]: *** 
[runtime/CMakeFiles/ldc-profile-rt.dir/profile-rt/profile-rt-38/GCDAProfiling.c.o] Error 1
make[1]: *** [runtime/CMakeFiles/ldc-profile-rt.dir/all] Error 2
make: *** [all] Error 2

Any help would be greatly appreciated, is there any other 
information I should share when asking these questions?

Thanks very much

Andrew




More information about the digitalmars-d-ldc mailing list