View previous topic :: View next topic |
Author |
Message |
leyvi Tux's lil' helper
Joined: 08 Sep 2023 Posts: 130
|
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: 1408 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: 2096
|
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: 130
|
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: 2096
|
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: 130
|
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: 2096
|
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: 130
|
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 |
|
|
leyvi Tux's lil' helper
Joined: 08 Sep 2023 Posts: 130
|
Posted: Sun Jan 19, 2025 4:53 pm Post subject: |
|
|
I tried filling a bug report, they were impatient and wouldn't even let me finish describing my bug to them before they closed the report. Now what? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23020
|
Posted: Sun Jan 19, 2025 5:01 pm Post subject: |
|
|
How did they cut you off while you were writing the initial report? They shouldn't even know a report is coming until you finish writing the initial report. Could you link to where this was done, so we can see what was said? |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2096
|
Posted: Sun Jan 19, 2025 5:28 pm Post subject: |
|
|
Presumably you mean bug 948146 where you were not "cut off" at all and we're still waiting for you to come back with fixed configuration. |
|
Back to top |
|
|
|