Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517902 - sys-libs/uclibc: drop CONFIG_MIPS_ISA_* options
Summary: sys-libs/uclibc: drop CONFIG_MIPS_ISA_* options
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-23 21:58 UTC by ytrezq
Modified: 2022-01-02 10:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ytrezq 2014-07-23 21:58:48 UTC
When I run crossdev for mips32, I end up with the following problem while compiling µClibc:

 * Done with patching

 * Runtime Prefix: /
 * Devel Prefix:   /usr
 * Kernel Prefix:  /usr/mips32-uclibc-linux/usr/include
 * CBUILD:         x86_64-pc-linux-gnu
 * CHOST:          x86_64-pc-linux-gnu
 * CTARGET:        mips32-linux-uclibc
 * CPU:            MIPS_ISA_3
 * ENDIAN:         BIG

 * Checking existence of //etc/portage/savedconfig/cross-mips32-uclibc-linux/uclibc-0.9.33.2-r11 ...
 * found //etc/portage/savedconfig/cross-mips32-uclibc-linux/uclibc-0.9.33.2-r11

and the build fails...


It does even if I export the correct value with UCLIBC_CPU

This because there is a bad pattern inside most µClibc ebuilds:

    export CBUILD=${CBUILD:-${CHOST}}
    export CTARGET=${CTARGET:-${CHOST}}

so CTARGET isn't mips32, and... 

check_cpu_opts() {
	case ${CTARGET} in
	# Need to handle $ABI here w/mips.
	mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
	sh[2345]*)   export UCLIBC_CPU="SH${CTARGET:2:1}";;
	i[3456]86*)  export UCLIBC_CPU="${CTARGET:1:1}86";;
	# XXX: Should figure out how to handle sparc.
	esac
}
use the first number in mips32 which is 3 and mips III is a 64-bits platform.
Comment 1 Anthony Basile gentoo-dev 2014-07-25 12:27:13 UTC
This bug will not get looked more quickly by changing the severity level.
Comment 2 ytrezq 2014-07-25 18:55:52 UTC
(In reply to Anthony Basile from comment #1)
> This bug will not get looked more quickly by changing the severity level.

Ok sorry, but this issue is blocking as can't compile for my system and some proprietary binaries (which control closed source in-kernel drivers) are already linked at µClibc. So I need µClibc and I can't use musl.
Comment 3 SpanKY gentoo-dev 2014-10-18 23:03:08 UTC
the plan is to kill these options off entirely.  the only thing they do is add compiler flags like -mips1.
Comment 4 ytrezq 2014-12-21 11:11:16 UTC
(In reply to SpanKY from comment #3)
> the plan is to kill these options off entirely.  the only thing they do is
> add compiler flags like -mips1.

Ok but why you don't mark the bug as confirmed then?
Comment 5 Matt Turner gentoo-dev 2015-05-15 22:37:01 UTC
(In reply to lcellier from comment #4)
> (In reply to SpanKY from comment #3)
> > the plan is to kill these options off entirely.  the only thing they do is
> > add compiler flags like -mips1.
> 
> Ok but why you don't mark the bug as confirmed then?

Because no one cares about CONFIRMED vs UNCONFIRMED. And stop adding useless keywords.
Comment 6 David Seifert gentoo-dev 2022-01-02 10:25:42 UTC
uclibc support in Gentoo has been removed.