ValeLang / Vale

Compiler for the Vale programming language - http://vale.dev/
https://vale.dev/
Apache License 2.0
1.74k stars 53 forks source link

Build issues on Ubuntu 22.04 #588

Open inferrna opened 1 year ago

inferrna commented 1 year ago
  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.

  4. 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.