Hello,
Yesterday I upgraded my development machine and now I'm getting this error:
mason build
Skipping registry update since no dependency found in manifest file.
ld-elf.so.1: /usr/local/llvm15/lib/libLLVM-15.so: Unsupported relocation type 1044473 in non-PLT relocations
Error while getting Chapel version:
Failed to run 'chpl --version'
I decided to re-build chapel-1.33 from a cleanly unpacked tarball. I run:
source util/setchplenv.bash
export CHPL_COMM=gasnet
gmake
and get
Making the compiler...
cd llvm && gmake unset
Error: Please set the environment variable CHPL_LLVM to a supported value.
Supported values are:
1) 'none' to build with minimal LLVM support
2) 'bundled' to build with the LLVM packaged in the third-party directory
3) 'system' to use a pre-installed system-wide LLVM
Currently supported LLVM versions are: 15, 14, 13, 12, 11, 16
See: https://chapel-lang.org/docs/latest/usingchapel/chplenv.html#chpl-llvm
I set CHPL_LLVM:
export CHPL_LLVM=system
Now gmake fails like this:
Making the compiler...
Error: Could not find clang with the same version as CHPL_LLVM_CONFIG=llvm-config15. Please try setting CHPL_TARGET_CC.
/usr/home/rmason/Software/Chapel/chapel-1.33.0/make/Makefile.base:106: *** error running util/printchplenv -- please see error above. Stop.
I do export CHPL_TARGET_CC=/usr/local/bin/clang15
and theng make fails again
Making the compiler...
Error: Could not find clang++ with the same version as CHPL_LLVM_CONFIG=llvm-config15. Please try setting CHPL_TARGET_CXX.
After doing export CHPL_TARGET_CXX=/usr/local/bin/clang++15 gmake still fails:
Making the compiler...
Error: Missing or wrong version for clang at /usr/local/bin/clang15
/usr/home/rmason/Software/Chapel/chapel-1.33.0/make/Makefile.base:106: *** error running util/printchplenv -- please see error above. Stop.
What is the magic incantation to get chapel to build again?
Thanks for your help.
Roger