Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 701176

Summary: crossdev armv7-unknown-linux-gnueabihf/glibc emerge fails with ARM instructions for Thumb-only processor
Product: Gentoo Linux Reporter: Anthon <anton.alekseev.92>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal CC: crossdev
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: glibc.log.xz
info.log
glibc-config.logs.tar.xz

Description Anthon 2019-11-25 23:19:40 UTC
Created attachment 597534 [details]
glibc.log.xz

crossdev could not emerge glibc for armv7-unknown-linux-gnueabihf toolchain because of a build error "Error: attempt to use an ARM instruction on a Thumb-only processor". I've tried to compile both stable and unstable versions

crossdev -t armv7-unknown-linux-gnueabihf --ex-gdb

crossdev --stable -t armv7-unknown-linux-gnueabihf --ex-gdb
Comment 1 Anthon 2019-11-25 23:20:40 UTC
Created attachment 597536 [details]
info.log
Comment 2 Anthon 2019-11-25 23:21:26 UTC
Created attachment 597538 [details]
glibc-config.logs.tar.xz
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-11-26 00:04:06 UTC
Which CPU you are targeting? Looking at gcc's CPU definitions:
  https://github.com/gcc-mirror/gcc/blob/master/gcc/config/arm/arm-cpus.in#L245

- armv7-unknown-linux-gnueabihf is a thumb-only ISA (thumb2)
- armv7a-unknown-linux-gnueabihf is both a thumb (thumb2) and non-thumb (notm) ISAs

If you plan to run linux you probably need 'armv7a-unknown-linux-gnueabihf'.
Comment 4 Anthon 2019-11-26 00:17:24 UTC
(In reply to Sergei Trofimovich from comment #3)
> Which CPU you are targeting? Looking at gcc's CPU definitions:
>  
> https://github.com/gcc-mirror/gcc/blob/master/gcc/config/arm/arm-cpus.in#L245
> 
> - armv7-unknown-linux-gnueabihf is a thumb-only ISA (thumb2)
> - armv7a-unknown-linux-gnueabihf is both a thumb (thumb2) and non-thumb
> (notm) ISAs
> 
> If you plan to run linux you probably need 'armv7a-unknown-linux-gnueabihf'.

Exactly! I didn't notice I missed the 'a' letter, it's just a typo, damn it. It's the only my fault, thank you! How can I discard the bug?