Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331589 - sys-devel/crossdev-20100620 cannot run C compiled programs
Summary: sys-devel/crossdev-20100620 cannot run C compiled programs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: ARM Linux
: High normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 331595 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-08 00:42 UTC by Juan P Daza P
Modified: 2010-08-14 04:51 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,3.33 KB, text/plain)
2010-08-08 01:41 UTC, Juan P Daza P
Details
xproto log (build.log,3.01 KB, text/plain)
2010-08-12 02:14 UTC, Juan P Daza P
Details
xproto config (config.log,16.62 KB, text/plain)
2010-08-13 00:35 UTC, Juan P Daza P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juan P Daza P 2010-08-08 00:42:48 UTC
Using sys-devel/crossdev-20100620, and using the just created armv7a-unknown-linux-gnueabi-emerge, always give:

configure: error: cannot run C compiled programs.

And does not compile the application.


Reproducible: Always

Steps to Reproduce:
1. Create a toolchain: crossdev -t armv7a-unknown-linux-gnueabi
2. Try to install any app: armv7a-unknown-linux-gnueabi -va nano


Actual Results:  
Throws an error and stops the process.

Expected Results:  
Compile correctly and put the app in $SYSROOT.

When doing the compilation explicitly giving the environment vars works fine:

CBUILD="x86_64-pc-linux-gnu" ROOT="$SYSROOT" PORTAGE_CONFIGROOT="$SYSROOT" emerge -av nano

It seems CBUILD var haven't the correct value and armv7a-unknown-linux-gnueabi-emerge is giving it the CHOST value.
Comment 1 Juan P Daza P 2010-08-08 01:41:32 UTC
Created attachment 241823 [details]
emerge --info
Comment 2 SpanKY gentoo-dev 2010-08-09 07:08:09 UTC
post an actual build log as an attachment as well as the config.log in question
Comment 3 SpanKY gentoo-dev 2010-08-09 23:33:20 UTC
*** Bug 331595 has been marked as a duplicate of this bug. ***
Comment 4 Juan P Daza P 2010-08-12 01:50:35 UTC
(In reply to comment #2)
> post an actual build log as an attachment as well as the config.log in question
> 

Hi,

I've only have the opportunity to test this today, and is working. Maybe the reboot of the virtual machine helps with something (the CBUILD var is set correctly as amrv7a-unknown-linux-gnueabi) and the dependencies are shown correctly.
Comment 5 Juan P Daza P 2010-08-12 02:14:21 UTC
Created attachment 242513 [details]
xproto log

The compilation still has problems, attached the log when emerging vim:

armv7a-unknown-linux-gnueabi-emerge -va vim
Comment 6 Juan P Daza P 2010-08-12 12:17:10 UTC
Information provided.  My mistake the CBUILD is wrong, should be x86_64.
Comment 7 SpanKY gentoo-dev 2010-08-12 12:51:47 UTC
please read what i asked for again.  you did not provide config.log.
Comment 8 Juan P Daza P 2010-08-13 00:35:53 UTC
Created attachment 242681 [details]
xproto config
Comment 9 Juan P Daza P 2010-08-13 00:37:50 UTC
The xproto config file from /var/tmp/portage/...
Comment 10 SpanKY gentoo-dev 2010-08-14 04:51:15 UTC
should be fixed now in crossdev-20100814; thanks

http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commitdiff;h=a31d21dc6895115a7f10af275b31e0bc6283b6b2