【问题标题】:Fail to compile erlang r14b03erlang r14b03 编译失败
【发布时间】:2013-09-26 19:17:50
【问题描述】:

我在 Mac OS Lion 上构建 erlang (r14b03) 时遇到问题。我在尝试在 Crunchbang Linux 上安装 erlang 时遇到了同样的问题(完全相同的跟踪)——我完全糊涂了。这是我得到的错误:

...
make[5]: Nothing to be done for `all'.
make -f i386-apple-darwin11.3.0/Makefile TYPE=opt
llvm-gcc-4.2 -c -O3  -m64 -O0 -I/Users/john/.kerl/builds/r14b03/otp_src_R14B03/erts/i386-apple-darwin11.3.0  -no-cpp-precomp  -D_XOPEN_SOURCE -DHAVE_CONFIG_H  -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -DERLANG_INTEGRATION  -o /Users/john/.kerl/builds/r14b03/otp_src_R14B03/erts/emulator/pcre/obj/i386-apple-darwin11.3.0/opt/pcre_exec.o pcre_exec.c
pcre_exec.c: In function ‘match’:
pcre_exec_loop_break_cases.inc:44: error: label ‘L_LOOP_COUNT_47’ used but not defined
pcre_exec_loop_break_cases.inc:43: error: label ‘L_LOOP_COUNT_46’ used but not defined
...
pcre_exec_loop_break_cases.inc:3: error: label ‘L_LOOP_COUNT_6’ used but not defined
pcre_exec_loop_break_cases.inc:2: error: label ‘L_LOOP_COUNT_5’ used but not defined
pcre_exec_loop_break_cases.inc:1: error: label ‘L_LOOP_COUNT_4’ used but not defined
make[5]: *** [/Users/john/.kerl/builds/r14b03/otp_src_R14B03/erts/emulator/pcre/obj/i386-apple-darwin11.3.0/opt/pcre_exec.o] Error 1
make[4]: *** [opt] Error 2
make[3]: *** [pcre] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2

我正在使用 kerl(尽管我也尝试过不使用它),以及以下 .kerlrc:

CFLAGS=-O0
KERL_CONFIGURE_OPTIONS="--enable-hipe --enable-smp-support --enable-threads --enable-kernel-poll  --enable-darwin-64bit"

有什么想法吗?

【问题讨论】:

    标签: build erlang


    【解决方案1】:

    请参阅how to add env variables for building Erlang in kerl - 在 .kerlrc 中使用 shell 导出命令会有所帮助。

    【讨论】:

    • 这个答案取代了之前的答案。
    【解决方案2】:

    【讨论】:

      猜你喜欢
      • 2023-03-14
      • 2011-11-09
      • 2021-11-26
      • 2021-10-07
      • 2021-06-14
      • 2021-01-29
      • 2018-11-06
      • 1970-01-01
      • 2013-02-01
      相关资源
      最近更新 更多