Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450670 - cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3 - Assembler messages: Error: unknown architecture `core2'
Summary: cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3 - Assembler messages: Erro...
Status: RESOLVED DUPLICATE of bug 448206
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-06 23:50 UTC by Henrique Dias
Modified: 2013-01-07 17:18 UTC (History)
0 users

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


Attachments
cross-armv6j-hardfloat-linux-gnueabi-info.log (cross-armv6j-hardfloat-linux-gnueabi-info.log,15.09 KB, text/plain)
2013-01-06 23:51 UTC, Henrique Dias
Details
cross-armv6j-hardfloat-linux-gnueabi-glibc.log (cross-armv6j-hardfloat-linux-gnueabi-glibc.log,10.38 KB, text/plain)
2013-01-06 23:52 UTC, Henrique Dias
Details
emerge-info.txt (emerge-info.txt,4.35 KB, text/plain)
2013-01-06 23:53 UTC, Henrique Dias
Details
/var/tmp/portage/cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3/work/build-default-armv6j-hardfloat-linux-gnueabi-nptl/config.log (config.log,12.50 KB, text/plain)
2013-01-07 01:13 UTC, Henrique Dias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrique Dias 2013-01-06 23:50:52 UTC
I want to set up a compile tool chain for my Raspberry pi. But,when I run:

# crossdev -S -v -t armv6j-hardfloat-linux-gnueabi

it failed with message: failed to configure glibc

Reproducible: Always

Steps to Reproduce:
1. emerge sys-devel/crossdev
2. crossdev -S -v -t armv6j-hardfloat-linux-gnueabi
3.
Actual Results:  
Failed to configure glibc
Comment 1 Henrique Dias 2013-01-06 23:51:52 UTC
Created attachment 334688 [details]
cross-armv6j-hardfloat-linux-gnueabi-info.log
Comment 2 Henrique Dias 2013-01-06 23:52:30 UTC
Created attachment 334692 [details]
cross-armv6j-hardfloat-linux-gnueabi-glibc.log
Comment 3 Henrique Dias 2013-01-06 23:53:06 UTC
Created attachment 334694 [details]
emerge-info.txt
Comment 4 Henrique Dias 2013-01-07 01:13:00 UTC
Created attachment 334696 [details]
/var/tmp/portage/cross-armv6j-hardfloat-linux-gnueabi/glibc-2.15-r3/work/build-default-armv6j-hardfloat-linux-gnueabi-nptl/config.log

In the config.log file a find this error:
...
/usr/bin/uname -p = Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
/bin/uname -X     = unknown
...
configure:2760: $? = 1
configure:2765: checking for suffix of object files
configure:2787: armv6j-hardfloat-linux-gnueabi-gcc  -c -march=core2 -pipe -O2 -fno-strict-aliasing -U_FORTIFY_SOURCE -U_FORTIFY_SOURCE -U_FORTIFY_SOURCE conftest.c >&5
Assembler messages:
Error: unknown architecture `core2'

Error: unrecognized option -march=core2
conftest.c:1:0: error: bad value (core2) for -march= switch
configure:2791: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Library"
...
Comment 5 Chris Reffett (RETIRED) gentoo-dev Security 2013-01-07 01:28:39 UTC
Try removing the partially built toolchain (crossdev -C armv6j-hardfloat-linux-gnueabi) and run this instead:
CFLAGS="-O2 -pipe" CXXFLAGS="${CFLAGS} crossdev -S -v -t armv6j-hardfloat-linux-gnueabi
From time to time, crossdev has trouble with -march options, so this will build it with minimal CFLAGS.
Comment 6 Henrique Dias 2013-01-07 10:02:43 UTC
(In reply to comment #5)
> Try removing the partially built toolchain (crossdev -C
> armv6j-hardfloat-linux-gnueabi) and run this instead:
> CFLAGS="-O2 -pipe" CXXFLAGS="${CFLAGS} crossdev -S -v -t
> armv6j-hardfloat-linux-gnueabi
> From time to time, crossdev has trouble with -march options, so this will
> build it with minimal CFLAGS.

Thanks Chris, Your solution works perfectly.

Many thanks for your help.
Comment 7 Chris Reffett (RETIRED) gentoo-dev Security 2013-01-07 15:08:19 UTC
No problem, glad I could help.
Comment 8 SpanKY gentoo-dev 2013-01-07 17:18:12 UTC

*** This bug has been marked as a duplicate of bug 448206 ***