Skip to contentSkip to conversation

libc and ARM_INSTRUCTION_SET

DISCUSSION Andrea Adami 3 participants 3 messages Dec 22, 2008

lore
Share & tools
lore
#0 lore raw

Hi,
I'm testing uclibcgnueabi on c7x0.

Two doubts:

1) arm / thumb

Now armv5te machine defaults to "thumb" and uclibc fails do_compile:
http://tinderbox.openembedded.net/public/logs/2601805.txt

My solution offhand is to set ARM_INSTRUCTION_SET = "arm" in uclibc.inc but perhaps someone can sort out a proper patch.

I checked how the settings are for glibc and well, the same string is in:
glibc.inc and (why?) in glibc-2.5.bb and glibc-2.7.bb which are including glibc.inc...

2) is it actual and correct that uclibc and klibc are machine-specific?

#recent versions uclibc require real kernel headers PACKAGE_ARCH = "${MACHINE_ARCH}"

Well, for klibc I'd say yes, it's bound to the kernel but still...I ask.

Thanks in advance

Andrea

#1 lore raw
Quoted 5 lines · Andrea Adami

Hi,
I'm testing uclibcgnueabi on c7x0.

Two doubts:

Quoted 7 lines

1) arm / thumb

Now armv5te machine defaults to "thumb" and uclibc fails do_compile:
http://tinderbox.openembedded.net/public/logs/2601805.txt

My solution offhand is to set ARM_INSTRUCTION_SET = "arm" in uclibc.inc but perhaps someone can sort out a proper patch.

Having uclibc (and hence libm) in ARM mode would probably be a good thing.

Quoted 1 line

2) is it actual and correct that uclibc and klibc are machine-specific?

uclibc is machine specific since the defconfigs are machine specific, because at the time OE lacked fine grained architecture overrides.

regards,

Koen

#2 lore raw
In reply to Andrea Adami
Quoted 19 lines · Andrea Adami

Hi,
I'm testing uclibcgnueabi on c7x0.

Two doubts:

1) arm / thumb

Now armv5te machine defaults to "thumb" and uclibc fails do_compile:
http://tinderbox.openembedded.net/public/logs/2601805.txt

My solution offhand is to set ARM_INSTRUCTION_SET = "arm" in uclibc.inc but perhaps someone can sort out a proper patch.

I checked how the settings are for glibc and well, the same string is in:
glibc.inc and (why?) in glibc-2.5.bb and glibc-2.7.bb which are including glibc.inc...

2) is it actual and correct that uclibc and klibc are machine-specific?

Quoted 8 lines

#recent versions uclibc require real kernel headers PACKAGE_ARCH = "${MACHINE_ARCH}"

Well, for klibc I'd say yes, it's bound to the kernel but still...I ask.

Thanks in advance

Andrea

Philipp Blundel told me that this is probably fixed in the gcc-4.4 branch,
unfornatly I didnt test it yet my self, for now it would be okay to turn
off thumb.

Bye Henning