Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 291870

Summary: sys-devel/gcc: static-only linux target fails at libgcc_s.so
Product: Gentoo Linux Reporter: Petric Frank <pfrank>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: binki
Priority: High    
Version: unspecified   
Hardware: MIPS   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gcc stage2 log file

Description Petric Frank 2009-11-04 16:08:01 UTC
Creating a cross development environment for MIPS/nommu using sys-devel/crossdev.

During configuration of uclibc for the target mips w/o mmu only static libs can be generated. It seems not being possible to create shared libs. The compile option -fdpic is not supported for (at least) mips/nommu target.
So only static libs can be created.
See bug item #291787

As a result gcc should also not try to create them.

But build process tries to create libgcc_s.so and fails. See attached log.

As test I hacked toolchain.eclass to jam in the configure option "--disable-shared". Now the gcc stage2 build went ok.


Reproducible: Always

Steps to Reproduce:
1.build static-only uclibc
2.crossdev - build stage2 gcc
3.failure

Actual Results:  
crossdev fails to build stage2 gcc when uclibc was built static-only

Expected Results:  
gcc statge2 completes successful

emerge --info:
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2,
2.6.30-gentoo-r4 i686)               
=================================================================               
System uname:
Linux-2.6.30-gentoo-r4-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-1.12.11.1 
Timestamp of tree: Tue, 03 Nov 2009 16:45:01 +0000                              
distcc 3.1 i686-pc-linux-gnu [disabled]                                         
app-shells/bash:     4.0_p28                                                    
dev-java/java-config: 1.3.7-r1, 2.1.9-r1                                        
dev-lang/python:     2.6.2-r1                                                   
dev-python/pycrypto: 2.0.1-r8                                                   
dev-util/cmake:      2.6.4-r3                                                   
sys-apps/baselayout: 1.12.11.1                                                  
sys-apps/sandbox:    1.6-r2                                                     
sys-devel/autoconf:  2.13, 2.63-r1                                              
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                  
sys-devel/binutils:  2.18-r3                                                    
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6a                                                     
virtual/os-headers:  2.6.28-r1                                                  
ACCEPT_KEYWORDS="x86"                                                           
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"                         
CHOST="i686-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"                        
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild
/etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/mips-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 arts berkdb bluetooth bzip2 cdr cgi cli
consolekit cracklib crypt cups cvs dbus dga dialup dri dv dvb dvd dvdr dvdread
encode exif ffmpeg firefox foomaticdb fortran ftp gdbm gif gimp gnome gphoto2
gpm gtk hal iconv ieee1394 imagemagick imap ipw3945 irda java jpeg kde
kdehiddenvisibility laptop lirc lm_sensors mad mikmod mmx mng modules mp2 mp3
mpeg mplayer mudflap mysql ncurses networkmanager nls nptl nptlonly nsplugin
odbc ogg opengl openmp openvpn pam pcmcia pcre pdf perl png postgres ppds pppd
python qt-webkit qt3support qt4 radeon readline reflection samba savedconfig
scanner sdl session slp spl sql sqlite3 sse sse2 ssl subversion svg sysfs tcpd
theora tiff truetype unicode usb v4l v4l2 vcd vdr vhosts vorbis webkit wifi
win32codecs wmf x264 x86 xine xinetd xml xorg xpm xulrunner xv xvid zlib"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m
maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" DVB_CARDS="usb-wt220u dibusb-usb1 dibusb-usb2" ELIBC="glibc"
INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en"
LIRC_DEVICES="all" NETBEANS_MODULES="apisupport harness ide java nb
websvccommon webcommon enterprise ergonomics php profiler" USERLAND="GNU"
VIDEO_CARDS="fbdev radeon v4l vesa xv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petric Frank 2009-11-04 16:16:47 UTC
Created attachment 209237 [details]
gcc stage2 log file

The log (stripped down becuse it was > 1.5 MB in size) of the crossdev gcc stage2 generation.
Comment 2 SpanKY gentoo-dev 2012-11-24 22:26:36 UTC
fixed for uClibc targets

http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.558&r2=1.559
Comment 3 ytrezq 2014-08-04 19:00:02 UTC
(In reply to SpanKY from comment #2)
> fixed for uClibc targets
> 
> http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.558&r2=1.559

I think this is a bad fix since many MIPS systems have less > 16Mb.
On those systems shared memory (even for some bytes) is important.
Comment 4 ytrezq 2014-08-04 19:02:24 UTC
(In reply to SpanKY from comment #2)
> fixed for uClibc targets
> 
> http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.558&r2=1.559

I think this is a bad fix since many MIPS systems have less > 16Mb.
On those systems shared memory (even for some bytes) is important.

See https://bugs.gentoo.org/show_bug.cgi?id=519042
Comment 5 SpanKY gentoo-dev 2014-08-12 07:48:48 UTC
(In reply to lcellier from comment #3)

your report has nothing to do with this bug.  stick to the bug you already filed.