View previous topic :: View next topic |
Author |
Message |
leyvi Tux's lil' helper
Joined: 08 Sep 2023 Posts: 112
|
Posted: Tue Jan 14, 2025 3:50 pm Post subject: mitmproxy won't build |
|
|
Been trying to emerge net-proxy/mitmproxy, but net-proxy/mitmproxy-rs always fails with the "ld: file format not recognized" error, see the log here. Anyone know how I can fix this? I have a bunch of other packages that fail with the same error, so maybe whatever solves this will solve those, too.
Last edited by leyvi on Tue Jan 14, 2025 4:26 pm; edited 1 time in total |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1394 Location: Richmond Hill, Canada
|
Posted: Tue Jan 14, 2025 4:11 pm Post subject: |
|
|
You post build.log is for net-proxy/mitmproxy-rs. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2087
|
Posted: Tue Jan 14, 2025 4:12 pm Post subject: |
|
|
You can't use Rust LTO unless you build with Clang. |
|
Back to top |
|
|
leyvi Tux's lil' helper
Joined: 08 Sep 2023 Posts: 112
|
Posted: Tue Jan 14, 2025 4:26 pm Post subject: |
|
|
sam_, I'm not building it with LTO. pingtoo, yes, I'll correct that. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2087
|
Posted: Tue Jan 14, 2025 4:50 pm Post subject: |
|
|
The log has '-C linker-plugin-lto' (and later -C lto) but it might be being forced by the upstream project if you're not doing that. |
|
Back to top |
|
|
leyvi Tux's lil' helper
Joined: 08 Sep 2023 Posts: 112
|
Posted: Tue Jan 14, 2025 5:24 pm Post subject: |
|
|
OK, so should I try forcing clang to be the C compiler, just for this build? |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2087
|
Posted: Tue Jan 14, 2025 5:25 pm Post subject: |
|
|
Yes, please give it a go. But please file a bug at bugs.gentoo.org with the build.log and emerge --info. |
|
Back to top |
|
|
leyvi Tux's lil' helper
Joined: 08 Sep 2023 Posts: 112
|
Posted: Tue Jan 14, 2025 5:31 pm Post subject: |
|
|
I tried forcing clang, and there was a slightly different error message: "lto can only be run for executables, cdylibs and static library outputs". Pretty sure it's an upstream problem. |
|
Back to top |
|
|
|