gpt4 book ai didi

build - 无法在 cygwin 上构建 llvm

转载 作者:行者123 更新时间:2023-12-01 06:32:18 24 4
gpt4 key购买 nike

我目前正在尝试通过 Cygwin 在 Windows 上构建 llvm 3.3。

编译进行得很好,但在链接期间构建崩溃并出现此错误:

llvm[2]: ======= Finished Linking Release+Asserts Executable llvm-mc (without symbols)
make[2]: Leaving directory `/cygdrive/c/Users/Jupotter/Code/llvm-3.3.src/build/tools/llvm-mc'
llvm[2]: Compiling ExecutionDriver.cpp for Release+Asserts build
/cygdrive/c/Users/Jupotter/Code/llvm-3.3.src/build/Release+Asserts/lib/libLLVMMCJIT.a(SectionMemoryManager.o):SectionMemoryManager.cpp:(.text+0x3b): référence indéfinie vers « __register_frame »
/cygdrive/c/Users/Jupotter/Code/llvm-3.3.src/build/Release+Asserts/lib/libLLVMMCJIT.a(SectionMemoryManager.o):SectionMemoryManager.cpp:(.text+0x3b): relocalisation tronquée pour concorder avec la taille: R_X86_64_PC32 vers le symbole indéfini __register_frame
/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld: /cygdrive/c/Users/Jupotter/Code/llvm-3.3.src/build/Release+Asserts/lib/libLLVMMCJIT.a(SectionMemoryManager.o): mauvaise adresse de relocalisation 0x0 dans la section «.pdata»

用英语:
undefined reference to "__register_frame
relocation truncated to concord with size: R_X*^_^$_PC32 to undefined symbol __register_frame
wrong relocation address in 0x0 in section ".pdata"

我使用以下命令构建 llvm:
$ mkdir build
$ cd build
$ ../configure LDFLAGS=-Wl,--stack,16777216 --disable-jit --enable-targets=host-only
$ make -j4
LDFLAGS选项来自 llvm getting started guide适用于win64平台。我尝试禁用 jit,因为它似乎是 libLLVMCJIT 出现问题。

知道什么可能导致此构建失败吗?

最佳答案

我在 Cygwin(x86_64) 上编译 llvm 时遇到了同样的错误。但是我可以在 Cygwin(x86) 上成功编译它。

关于build - 无法在 cygwin 上构建 llvm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18855563/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com