Open fivebanger opened 6 hours ago
It seems that my used gcc version is to old.
gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
I found some advice to use a newer version of gcc, so I did:
sudo apt remove gcc
sudo apt install gcc-10
Running cargo build leads now to error: linker
ccnot found
. The suggested solution to this issue was to run
sudo apt install build-essential
like also mentioned in the COMPILING.md here.
Now I end up with the original error (see first post). I can see that build-essentials has installed gcc-9 again.
I tried to just remove gcc-9, also does not work. The error on cargo build is now:
--- stderr
thread 'main' panicked at /home/martin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.21.1/builder/cc_builder.rs:258:9:
COMPILER: "cc"ARGS: ["-O3", "-ffunction-sections", "-fdata-sections", "-fPIC", "-m64", "-Wall", "-Wextra", "/home/martin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.21.1/aws-lc/tests/compiler_features_tests/memcmp_invalid_stripped_check.c", "-Wno-unused-parameter", "-o", "/home/martin/librespot/librespot-dev/librespot/target/release/build/aws-lc-sys-a9f24552134098bb/out/memcmp_invalid_stripped_check"]EXECUTED: falseERROR: OUTPUT: Failed to compile memcmp_invalid_stripped_check
What has fixed the issue for me:
sudo apt remove gcc-9
sudo apt install gcc-10
I missed cargo clean
before starting a new build which seems to be important. Otherwise build fails with error.
Maybe it's worth to mention a min. version for gcc in the COMPILING.md?
Maybe it's worth to mention a min. version for gcc in the COMPILING.md?
I don't think this is realistic. This new gcc requirement comes from a dependency. Downstream projects can't be expected to track this kind of thing. I think if you're building the latest code, you're likely going to need a reasonably recent version of common dev tools like gcc. Ubuntu 20.04 might still be "supported" by Canoncial, but it's two LTS releases behind now and contains software from 4.5 years ago. I think it's fair to say that building latest software isn't what old Ubuntu LTS releases are for.
I'm getting a build error on
cargo build --release
, running Linux Mint 20.3 (based on Ubuntu 20.04 LTS, still supported). What I did so far:Building result in following error:
I'm not facing any build issues for a version older than 3rd of Sept. Next update for me was 7th of Sept. Since 7th of Sept. I cannot build HEAD of dev anymore. Some commit between 3rd and 7th seems to cause this issue.
Any help welcome.