Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues on Ubuntu 22.04 #588

Open
inferrna opened this issue Apr 10, 2023 · 0 comments
Open

Build issues on Ubuntu 22.04 #588

inferrna opened this issue Apr 10, 2023 · 0 comments

Comments

@inferrna
Copy link

  1. SBT wasn't installed by install-compiler-prereqs.sh, I had to install it manually
  2. Java 18 wasn't working, java 8 also wasn't working. Java 11 was enough in my case. Fixed by installing openjdk-11 and update-alternatives --config java
  3. System clang also wasn't working.
/usr/bin/ld: build/build.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang returned error code 1, aborting.
(panic)
Coordinator build failed.

I had to redefine the PATH variable export PATH=/home/user/LLVMForVale/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH to make it working.

  1. One does not simply use tmpfs
[100%] Built target backend
Compiling Coordinator...
Moving existing output directory build to /tmp/old_output_dir_42961017637920.
Rename failed! : Invalid cross-device link
Coordinator build failed.

After all, I successfully built it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant