[llvm-dev] Build Error from mlir-capi-ir-test
Vermeersch, Aaron via llvm-dev
llvm-dev at lists.llvm.org
Wed Jan 13 07:45:23 PST 2021
Hello,
I pulled from git again and re-did the installation. I didn't make it far enough into the installation to test the issue that I had as the installation failed with this:
[ 49%] Built target LLVMXCoreCodeGen
[ 49%] Built target LLVMXCoreDisassembler
[ 49%] Linking CXX shared library ../../lib/libLTO.so
/usr/bin/ld:/p/work1/avermeer/llvm-project/build/tools/lto/LTO.exports:3: syntax error in VERSION script
collect2: error: ld returned 1 exit status
make[3]: *** [lib/libLTO.so.12git] Error 1
make[2]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2
make[1]: *** [CMakeFiles/check-all.dir/rule] Error 2
make: *** [check-all] Error 2
Aaron Vermeersch
HPCMP PET Computational Scientist
M 517.648.9980
aaron.vermeersch at gdit.com
www.gdit.com<http://www.gdit.com>
[cid:image001.png at 01D664F5.C0E0A040]
________________________________
From: Mehdi AMINI <joker.eph at gmail.com>
Sent: Tuesday, January 12, 2021 4:34 PM
To: Vermeersch, Aaron <Aaron.Vermeersch at gdit.com>
Cc: llvm-dev at lists.llvm.org <llvm-dev at lists.llvm.org>
Subject: Re: [llvm-dev] Build Error from mlir-capi-ir-test
[External: Use caution with links & attachments]
Hi,
It seems like you were unlucky and checked out a buggy revision: this was a known bug a couple of days ago. Please git pull and try again, let us know if you have any issues!
Also MLIR folks communicate mainly here: https://llvm.discourse.group/c/mlir/31<https://urldefense.us/v2/url?u=https-3A__llvm.discourse.group_c_mlir_31&d=DwMFaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=_ZfOCgFouUhaMZw8Eekg6AE3jogUblRXCLkTpccaBEM&m=c9B0CmUi9msp4zzuInINlYkTjXu3mJiJO4E3WDHFfKo&s=EG3h7Vr3DXCi2dGxcvVJ_VNtGIlkHIsBzNcXlvSUW58&e=>
Best,
--
Mehdi
--
Mehdi
On Tue, Jan 12, 2021 at 1:29 PM Vermeersch, Aaron via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:
Hello,
I'm having an issue installing LLVM and Flang on a SGI and Cray machine and both are giving me the same error. This is using the latest version from GitHub that I just downloaded. I use the following for the cmake instruction:
cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=flang -DCMAKE_INSTALL_PREFIX=install_prefix -DCMAKE_CXX_COMPILER=pathway_to_g++ -DCMAKE_C_COMPILER=pathway_to_gcc ../llvm
The installation crashes with the following message:
Scanning dependencies of target mlir-capi-ir-test
[ 78%] Building C object tools/mlir/test/CAPI/CMakeFiles/mlir-capi-ir-test.dir/ir.c.o
[ 78%] Linking C executable ../../../../bin/mlir-capi-ir-test
CMakeFiles/mlir-capi-ir-test.dir/ir.c.o: In function `printAffineExpr':
/llvm-project/mlir/test/CAPI/ir.c:1272: undefined reference to `mlirAffineExprIsNull'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/mlir-capi-ir-test] Error 1
make[1]: *** [tools/mlir/test/CAPI/CMakeFiles/mlir-capi-ir-test.dir/all] Error 2
make: *** [all] Error 2
In a previous build, I was able to use:
cmake --build . --target check-mlir
Following the instructions here: https://github.com/tensorflow/mlir/issues/138<https://urldefense.us/v2/url?u=https-3A__github.com_tensorflow_mlir_issues_138&d=DwMFaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=_ZfOCgFouUhaMZw8Eekg6AE3jogUblRXCLkTpccaBEM&m=c9B0CmUi9msp4zzuInINlYkTjXu3mJiJO4E3WDHFfKo&s=NO9T5JyaOTnaEa4PSUpz0f7wABN1K5amrihKUtCj0GU&e=> to fix a similar issue but it hasn't been successful this time. Does anyone know what might be happening and how to fix the issue?
Aaron Vermeersch
HPC Computational Scientist
_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<https://urldefense.us/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=DwMFaQ&c=kBZcWdBOH-UDm7cX7sUnio9i4Dr7DDged-ltBm3Bq7Y&r=_ZfOCgFouUhaMZw8Eekg6AE3jogUblRXCLkTpccaBEM&m=c9B0CmUi9msp4zzuInINlYkTjXu3mJiJO4E3WDHFfKo&s=2MgABQ3_TMXi-RTQkl54TT5WhRzGFuHR9yNpXR6huxM&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210113/38250844/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-cid_image0.png
Type: image/png
Size: 7170 bytes
Desc: Outlook-cid_image0.png
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210113/38250844/attachment-0001.png>
More information about the llvm-dev
mailing list