Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701176 - crossdev armv7-unknown-linux-gnueabihf/glibc emerge fails with ARM instructions for Thumb-only processor
Summary: crossdev armv7-unknown-linux-gnueabihf/glibc emerge fails with ARM instructio...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-25 23:19 UTC by Anthon
Modified: 2020-01-12 12:28 UTC (History)
1 user (show)

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


Attachments
glibc.log.xz (cross-armv7-unknown-linux-gnueabihf-glibc.log.xz,8.99 KB, application/x-xz)
2019-11-25 23:19 UTC, Anthon
Details
info.log (cross-armv7-unknown-linux-gnueabihf-info.log,17.12 KB, text/x-log)
2019-11-25 23:20 UTC, Anthon
Details
glibc-config.logs.tar.xz (glibc-config.logs.tar.xz,8.67 KB, application/x-xz)
2019-11-25 23:21 UTC, Anthon
Details

Note You need to log in before you can comment on or make changes to this bug.
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?