Summary: | dev-libs/openssl-3.0.9-r1: crossdev: mipsel-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-m64’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aaron D Borden <adborden> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | mips |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | MIPS | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
mipsel-unknown-linux-gnu-emerge --info build.log |
Created attachment 865167 [details]
emerge --info
Created attachment 865168 [details]
mipsel-unknown-linux-gnu-emerge --info
Created attachment 865169 [details]
build.log
I believe this is a regression. I have a MIPS system running openssl-1.1.1l compiled using the same method, so this was working at some point. > * Using configuration: (openssl knows best)
We seem to be lacking settings for mipsel in our openssl config files.
(In reply to Sam James from comment #5) > > * Using configuration: (openssl knows best) > > We seem to be lacking settings for mipsel in our openssl config files. Hm, no, we do have: $ grep -rsin mips gentoo.config-1.0.2:102: mips*el*) machine="generic32 -DL_ENDIAN";; gentoo.config-1.0.2:103: mips*) machine="generic32 -DB_ENDIAN";; gentoo.config-1.0.4:104: mips*el*:o32) machine="mips32 -DL_ENDIAN";; gentoo.config-1.0.4:105: mips*:o32) machine="mips32 -DB_ENDIAN";; gentoo.config-1.0.4:106: mips*el*:n32) machine="mips64 -DL_ENDIAN";; gentoo.config-1.0.4:107: mips*:n32) machine="mips64 -DB_ENDIAN";; gentoo.config-1.0.4:108: mips*el*:n64) machine="mips64 -DL_ENDIAN" system=linux64;; gentoo.config-1.0.4:109: mips*:n64) machine="mips64 -DB_ENDIAN" system=linux64;; but it's not matching them. Hey Sam, thanks for pointing out the gentoo.config script. I'm using profile `default/linux/mips/23.0/mipsel`, without a specific ABI. Afaik, this is valid, although I'm no expert. I believe this profile does not set an ABI and then gentoo.config fails to match the mips rules. If I set the profile `default/linux/mips/17.0/mipsel/o32` then openssl compiles correctly. |
openssl fails to cross-compile using mipsel-unknown-linux-gnu-gcc via crossdev with error: mipsel-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-m64’ Reproducible: Always Steps to Reproduce: 1. crossdev --gcc 10.4.1 --libc 2.36 --binutils 2.40-r5 -t mipsel-unknown-linux-gnu 2. mipsel-unknown-linux-gnu-emerge -v1 openssl Actual Results: openssl configuration detects target linux-x86_64 and fails to compile > Configuring OpenSSL version 3.0.9 for target linux-x86_64 Expected Results: openssl configuration detects linux-mips and compiles successfully.