Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 783105 - gnome-base/librsvg-2.50.4 does not respect CC
Summary: gnome-base/librsvg-2.50.4 does not respect CC
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2021-04-16 08:25 UTC by Michał Górny
Modified: 2021-04-17 18:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/gnome-base:librsvg-2.50.4:20210416-072047.log (gnome-base:librsvg-2.50.4:20210416-072047.log,45.84 KB, text/plain)
2021-04-16 08:25 UTC, Michał Górny
Details
e-info.txt (e-info.txt,10.19 KB, text/plain)
2021-04-16 08:25 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-04-16 08:25:31 UTC
Created attachment 700080 [details]
/var/log/portage/gnome-base:librsvg-2.50.4:20210416-072047.log

Seems that rust is hardcoding old CC/CXX somewhere, and not respecting the environment at librsvg build time.


error: linker `x86_64-pc-linux-gnu-gcc-10.2.0` not found
  |
  = note: No such file or directory (os error 2)

error: aborting due to previous error

error: could not compile `libm`

Caused by:
  process didn't exit successfully: `rustc --crate-name build_script_build --edition=2018 /tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4/vendor/libm/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=off --cfg 'feature="default"' -C metadata=5cf14f69d9d81a55 -C extra-filename=-5cf14f69d9d81a55 --out-dir /tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_32.x86/target/release/build/libm-5cf14f69d9d81a55 -L dependency=/tmp/portage/gnome-base/librsvg-2.50.4/work/librsvg-2.50.4-abi_x86_32.x86/target/release/deps --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-04-16 08:25:52 UTC
Created attachment 700083 [details]
e-info.txt
Comment 2 tt_1 2021-04-17 16:54:48 UTC
It seems that you have set up the old gcc-10.2.0 somewhere, for instance via /etc/portage/env ; and maybe forgotten about it? Because you don't have that version on your system anymore, and thus the newer gcc-10.3.0 is not recognized.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-04-17 18:55:22 UTC
No, I don't have 'set up the old gcc-10.2.0 somewhere'.  It's Rust or some stupid Rust package hardcoding old value of CC.