Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257704 - crossdev-wrappers emerge-$CTARGET glibc brokes $CTARGET-gcc
Summary: crossdev-wrappers emerge-$CTARGET glibc brokes $CTARGET-gcc
Status: RESOLVED DUPLICATE of bug 257783
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-05 00:13 UTC by Maksim 'max_posedon' Melnikau
Modified: 2009-02-24 13:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim 'max_posedon' Melnikau 2009-02-05 00:13:14 UTC
After emerge-armv4tl-softfloat-linux-gnueabi glibc armv4tl-softfloat-linux-gnueabi-gcc lose ability to create executable files:

# cat /home/max_posedon/a.c
int main() { return 0; }

# armv4tl-softfloat-linux-gnueabi-gcc ~max_posedon/a.c
collect2: ld terminated with signal 8 [Floating point exception]

before emerge-ing glibc, a lot of packages was successfully crosscompiled

Reproducible: Always

Steps to Reproduce:
1. crossdev armv4tl-softfloat-linux-gnueabi
2. crossdev-wrapper --init
3. USE="nls" emerge --nodeps glibc
4. armv4tl-softfloat-linux-gnueabi-gcc unworked here

Actual Results:  
# armv4tl-softfloat-linux-gnueabi-gcc ~max_posedon/a.c
collect2: ld terminated with signal 8 [Floating point exception]


Expected Results:  
armv4tl-softfloat-linux-gnueabi-gcc shouldn't become broken.

# emerge-armv4tl-softfloat-linux-gnueabi --info
Portage 2.1.6.7 (embedded, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 i686)
=================================================================                   
System uname: Linux-2.6.28-gentoo-r1-i686-Genuine_Intel-R-_CPU_T2130_@_1.86GHz-with-glibc2.0
Timestamp of tree: Wed, 04 Feb 2009 17:30:17 +0000                                          
app-shells/bash:     3.2_p48                                                                
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                                    
dev-lang/python:     2.5.4-r2                                                               
dev-util/cmake:      2.6.2-r1                                                               
sys-apps/baselayout: 2.0.0                                                                  
sys-apps/openrc:     0.4.2                                                                  
sys-apps/sandbox:    1.3.2                                                                  
sys-devel/autoconf:  2.13, 2.63                                                             
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                              
sys-devel/binutils:  2.19                                                                   
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   9999
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="arm ~arm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/ -I/usr/armv4tl-softfloat-linux-gnueabi/include/"
CHOST="armv4tl-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/ -I/usr/armv4tl-softfloat-linux-gnueabi/include/"
DISTDIR="/home/data/gentoo/distfiles"
FEATURES="distlocks fixpackages nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-L/usr/armv4tl-softfloat-linux-gnueabi/usr/lib -L/usr/armv4tl-softfloat-linux-gnueabi/lib"
MAKEOPTS="-j2"
PKGDIR="/usr/armv4tl-softfloat-linux-gnueabi/packages/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/data/gentoo/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/data/gentoo/layman/openmoko/trunk/openmoko-target"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bindist elibc_glibc kdrive make-symlinks minimal multicall nls readline unicode zlib"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



# cat /usr/armv4tl-softfloat-linux-gnueabi/etc/make.conf 
CHOST=armv4tl-softfloat-linux-gnueabi                                  
CBUILD=i686-pc-linux-gnu                                               
ARCH=arm                                                               

HOSTCC=i686-pc-linux-gnu-gcc
E_MACHINE=EM_ARM            

ROOT=/usr/${CHOST}/

ACCEPT_KEYWORDS="arm ~arm"

USE="${ARCH} zlib bindist make-symlinks minimal \
        input_devices_keyboard input_devices_evdev \
        video_cards_fbdev video_cards_dummy"        

USE="$USE -doc -acl nls unicode elibc_glibc readline"

#MARCH_TUNE="-march=armv4t -mtune=arm9tdmi"     #arm-softfloat-linux-uclibc
#MARCH_TUNE="-march=armv5t -mtune=xscale"       #armv5teb-softfloat-linux-gnueabi
MARCH_TUNE="-march=armv4t -mtune=arm920t"       #armv4tl-softfloat-linux-gnueabi

CFLAGS="-Os -pipe ${MARCH_TUNE} -fomit-frame-pointer -I${ROOT}usr/include/ -I${ROOT}include/"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-L${ROOT}usr/lib -L${ROOT}lib"

FEATURES="-collision-protect sandbox -buildpkg noman noinfo nodoc"
# Be sure we dont overwrite pkgs from another repo..
PKGDIR=${ROOT}packages/
#PORTAGE_TMPDIR=${ROOT}tmp/
PORTAGE_TMPDIR=/home/data/gentoo/tmp
DISTDIR=/home/data/gentoo/distfiles

MAKEOPTS="-j3"
CLEAN_DELAY=0
EPAUSE_IGNORE=1
EBEEP_IGNORE=1
PORTAGE_WORKDIR_MODE=2775
PORTAGE_ECLASS_WARNING_ENABLE=0


VIDEO_CARDS="fbdev dummy"
INPUT_DEVICES="evdev keyboard mouse touchscreen"
USE_EXPAND="video_cards input_devices"

PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/"
#PORTDIR_OVERLAY="/usr/portage/local/"
UCLIBC_CPU_DEFAULT="GENERIC_ARM"
MAKEOPTS=-j2
PORTDIR_OVERLAY="/home/data/gentoo/layman/openmoko/trunk/openmoko-target"
Comment 1 Maksim 'max_posedon' Melnikau 2009-02-05 00:16:35 UTC
# pwd
/var/db/pkg/cross-armv4tl-softfloat-linux-gnueabi
# ls
binutils-2.19  gcc-4.3.3  glibc-2.9_p20081201-r1  linux-headers-2.6.28-r1
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2009-02-24 11:47:37 UTC
bug 257783 has more info
Comment 3 Maksim 'max_posedon' Melnikau 2009-02-24 13:07:17 UTC

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