Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ARM] error: C compiler cannot create executables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1475
Location: /uk/sheffield

PostPosted: Wed Jul 02, 2008 4:42 pm    Post subject: [ARM] error: C compiler cannot create executables Reply with quote

Hi,

I just updated to uclibc-0.9.29 from uclibc-0.9.28-r4 and now whenever I try to emerge anything I get...

Code:

error: C compiler cannot create executables


I've done nothing to touch the /etc/make.profile or /etc/make.conf settings, it seems to be that uclibc is screwed.

Is there anyway of recovering my system without doing a fresh install (I don't currently have a cross-compiler environment set up).

There is a thread in the mailing list (here) but it looks like that was resolved due to strange CFLAGS, none of which I have set (see below).

Code:

# emerge --info
Portage 2.2_rc1 (uclibc/arm, gcc-3.4.6, uclibc-0.9.29-r0, 2.6.21.7 armv5teb)
=================================================================
System uname: Linux-2.6.21.7-armv5teb-XScale-IXP42x_Family_rev_2_-v5b-with-libc0
Timestamp of tree: Wed, 02 Jul 2008 09:03:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r6, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10.1
sys-devel/binutils:  2.16-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="arm ~arm"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="arm"
AUTOCLEAN="yes"
CBUILD="armeb-softfloat-linux-uclibc"
CFLAGS="-march=armv5t -Os"
CHOST="armeb-softfloat-linux-uclibc"
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-march=armv5t -Os"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="uclibc"
EMERGE_DEFAULT_OPTS="--verbose --alphabetical"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig ccache distlocks nodoc noinfo noman parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GENTOO_MIRRORS="http://gentoo.virginmedia.com http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
GRP_STAGE23_USE="ncurses readline zlib uclibc"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/gcc-data/armeb-softfloat-linux-uclibc/3.4.6/info"
INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS=""
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36:"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/armeb-softfloat-linux-uclibc/3.4.6/man:/usr/lib/php5/man/"
PAGER="/usr/bin/less"
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_LIBC="uClibc"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/sunrise /usr/portage/local/layman/perl-experimental /usr/local/portage"
PWD="/mnt/ref"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/armeb-softfloat-linux-uclibc/gcc-bin/3.4.6"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="2"
SSH_AGENT_PID="3502"
SSH_AUTH_SOCK="/tmp/ssh-ynsUEu3501/agent.3501"
SSH_CLIENT="192.168.1.100 34072 22"
SSH_CONNECTION="192.168.1.100 34072 192.168.1.103 22"
SSH_TTY="/dev/pts/0"
STAGE1_USE="uclibc"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="rxvt"
UCLIBC_CPU="ARM_XSCALE"
UCLIBC_CPU_DEFAULT="GENERIC_ARM"
USE="arm bash-completion cli cracklib crypt dri midi mp3 mudflap ncurses ogg openmp pcre perl python readline reflection session spl ssl tcpd uclibc xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="dummy fbdev v4l"
_="/usr/bin/emerge"


This is a Gentoo system on an NSLU2 (or Slug) installed on an external HD.

Thanks in advance,

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth


Last edited by slackline on Sat Jul 05, 2008 10:23 am; edited 1 time in total
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1475
Location: /uk/sheffield

PostPosted: Thu Jul 03, 2008 10:19 am    Post subject: Reply with quote

This also seems to have destroyed ssh access to the machine :(

Fortunately I have an open connection so I can still do stuff, but I'm loathe to disconnect in case it screws everything :(

Theres ann FAQ on this here and it points to a long thread on this here that I'm working my way through, but most of it seems to be to do with x86 archs and the general problem is one of CFLAGS not being read correctly.

Unfortunately since I'm at work I can't try anything suggested, but will do upon returning home this evening.

Any hints or tips on appropriate CFLAGS or why they're not being read properly would be appreciated in the meantime.

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1475
Location: /uk/sheffield

PostPosted: Sat Jul 05, 2008 10:21 am    Post subject: Reply with quote

Okay, had to reset the NSLU2 due to a power cut.

Seems to reboots fine and boot from Gentoo, network filesystems are exported and can be mounted by my desktop, unfortunately I can no longer ssh into the NSLU2 when its booted from the Gentoo system.

Hmm, what to do?

I booted from the OpenSlug OS I installed from flash without the USB HD attached and then chroot'd into the environment.

It appears that sshd now segfaults on execution hence why I couldn't ssh into the system when booting from the external gentoo HD.

I can't re-emerge things either as I'm still getting the "C compiler cannot create executables"

I'm loathe to re-install as it took quite a while to suss everything out.

Thoughts on a postcard to this address please.

Cheers

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1475
Location: /uk/sheffield

PostPosted: Sat Jul 05, 2008 10:41 am    Post subject: Reply with quote

okay, I think I've sussed the cause of this.

I tried bumping uclibc to 0.9.29 by copying the last ebuild uclibc-0.9.28-r7 to a local overlay. Now under eix I have two slots, but the bumped 0.9.29 is in a different slot to the others...

Code:

# eix -e sys-libs/uclibc
[I] sys-libs/uclibc
     Available versions: 
        (i686-pc-linux-uclibc)  0.9.27-r1 0.9.28.3 0.9.28.3-r3 (~)0.9.28.3-r6 (~)0.9.28.3-r7
        (arm-pc-linux-uclibc)   (~)0.9.29[1]
        {build debug hardened iconv ipv6 minimal nls pregen savedconfig uclibc-compat userlocales wordexp}
     Installed versions:  0.9.29(arm-pc-linux-uclibc)[1](15:18:36 07/02/08)(uclibc-compat -build -debug -hardened -iconv -ipv6 -minimal -nls -pregen -savedconfig -userlocales -wordexp)
     Homepage:            http://www.uclibc.org/
     Description:         C library for developing embedded Linux systems

[1] "Personal overlay" /usr/local/portage



The question is, how do I get back to a working system?

If I were to grab a stage3 tarball which files and libraries would I need to extract and copy over?

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum