clangupc / clang-upc

Clang UPC Front-End
https://clangupc.github.io/
Other
16 stars 5 forks source link

libupc build failure on MacOSX 10.7 #37

Closed PHHargrove closed 10 years ago

PHHargrove commented 10 years ago

Building on my MacBook Pro fails as shown below (make VERBOSE=1).

The /usr/bin/cc and c++ on this system are llvm-gcc. However, the failure occurs when compiling with the just-built clang. It looks to me like a configure probe for the addr2line utility is either missing or is ignored, because which addr2line tells me the command is not present.

[ 91%] Building C object tools/clang/runtime/libupc/CMakeFiles/upc.dir/smp/upc_backtrace.c.o
cd /Users/paul/upc2c/bld/tools/clang/runtime/libupc && /Users/paul/upc2c/bld/bin/clang  -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -DGUPCR_PTS_PACKED_REP=1 -DGUPCR_PTS_PHASE_SIZE=20 -DGUPCR_PTS_THREAD_SIZE=10 -DGUPCR_PTS_VADDR_FIRST=1 -DGUPCR_PTS_VADDR_SIZE=34 -DIN_TARGET_LIBS=1 -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -I/Users/paul/upc2c/bld/tools/clang/runtime/libupc -I/Users/paul/upc2c/src/llvm/tools/clang/runtime/libupc -I/Users/paul/upc2c/src/llvm/tools/clang/include -I/Users/paul/upc2c/bld/tools/clang/include -I/Users/paul/upc2c/bld/include -I/Users/paul/upc2c/src/llvm/include -I/Users/paul/upc2c/src/llvm/tools/clang/runtime/libupc/include -I/Users/paul/upc2c/src/llvm/tools/clang/runtime/libupc/collectives    -Wno-gnu -Wno-language-extension-token -fupc-pts=packed -fupc-packed-bits=20,10,34 -fupc-pts-vaddr-order=first -o CMakeFiles/upc.dir/smp/upc_backtrace.c.o   -c /Users/paul/upc2c/src/llvm/tools/clang/runtime/libupc/smp/upc_backtrace.c
/Users/paul/upc2c/src/llvm/tools/clang/runtime/libupc/smp/upc_backtrace.c:116:27: error: use of undeclared
      identifier 'GUPCR_BACKTRACE_ADDR2LINE'
          int cmd_size = strlen (GUPCR_BACKTRACE_ADDR2LINE) +
                                 ^
/Users/paul/upc2c/src/llvm/tools/clang/runtime/libupc/smp/upc_backtrace.c:123:44: error: use of undeclared
      identifier 'GUPCR_BACKTRACE_ADDR2LINE'
          sz = snprintf (cmd, cmd_size, CMD_TMPL, GUPCR_BACKTRACE_ADDR2LINE,
                                                  ^
/usr/include/secure/_stdio.h:58:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
2 errors generated.
make[2]: *** [tools/clang/runtime/libupc/CMakeFiles/upc.dir/smp/upc_backtrace.c.o] Error 1
make[1]: *** [tools/clang/runtime/libupc/CMakeFiles/upc.dir/all] Error 2
make: *** [all] Error 2