[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1050429: GCC 13 stopped supporting a documented option (was Re: Bug#1050429: musl: unusable on mipsel, mips64el: mipsel-linux-gnu-gcc: unrecognised command-line option '-EL')



On Sat, Nov 25, 2023 at 10:30:39AM +0100, Bastian Blank wrote:
> Thank you for purposefully not mentioning that this only applies if you
> use the bothed(?) gcc spec override to build with musl instead of glibc.
> Can you show it is broken if using the standard toolchain as asked
> by the maintainer?

And of course, only musl-gcc is affected.

| % mips64el-linux-gnuabi64-gcc -specs /usr/lib/mips64el-linux-musl/musl-gcc.specs
| mips64el-linux-gnuabi64-gcc: error: unrecognized command-line option ‘-EL’
| mips64el-linux-gnuabi64-gcc: fatal error: no input files
| compilation terminated.

| % mips64el-linux-gnuabi64-gcc
| mips64el-linux-gnuabi64-gcc: fatal error: no input files
| compilation terminated.

Now, what is the problem?  Well, the spec removes the knowledge about
the -EL and -EB arguments by overriding *cc1.  So the fix is to re-add
those arguments:

| %rename cc1 old_cc1
| *cc1:
| %(cc1_cpu) -nostdinc -isystem /usr/include/mips64el-linux-musl -isystem include%s %(old_cc1)

Bastian

-- 
Our way is peace.
		-- Septimus, the Son Worshiper, "Bread and Circuses",
		   stardate 4040.7.


Reply to: