Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277468 - crossdev fails for mipsel-unknown-linux-uclibc with "conflicting types for 'getline'"
Summary: crossdev fails for mipsel-unknown-linux-uclibc with "conflicting types for 'g...
Status: RESOLVED DUPLICATE of bug 277186
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-12 01:38 UTC by Nathan Caldwell
Modified: 2009-07-20 04:29 UTC (History)
0 users

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


Attachments
cross-info.log (cross-mipsel-unknown-linux-uclibc-info.log,11.48 KB, text/plain)
2009-07-12 01:44 UTC, Nathan Caldwell
Details
cross-uclibc-headers.log (cross-mipsel-unknown-linux-uclibc-uclibc-headers.log,7.72 KB, text/plain)
2009-07-12 01:45 UTC, Nathan Caldwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Caldwell 2009-07-12 01:38:15 UTC
crossdev fails to build a working toolchain for mipsel-linux-uclibc, because of conflicting types for getline while building uclibc-headers (or uclibc itself with --without-headers).

$ USE="-*" sudo crossdev mipsel-unknown-linux-uclibc
------------------------------------------------------------------------------------------------------------------------------------------------------------
* Host Portage ARCH:     amd64                                                                                                                              
* Target Portage ARCH:   mips                                                                                                                               
* Target System:         mipsel-unknown-linux-uclibc                                                                                                        
* Stage:                 4 (C/C++ compiler)                                                                                                                 

* binutils:              binutils-[latest]
* gcc:                   gcc-[latest]     
* headers:               linux-headers-[latest]
* libc:                  uclibc-[latest]       

* PORTDIR_OVERLAY:       /usr/local/portage
* PORT_LOGDIR:           /var/log/portage  
* PKGDIR:                /usr/portage/packages/cross/mipsel-unknown-linux-uclibc
* PORTAGE_TMPDIR:        /var/tmp/cross/mipsel-unknown-linux-uclibc             
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -
WARNING: One or more repositories have missing repo_name entries:                                                                                           

        /usr/local/overlays/chrome/profiles/repo_name
        /usr/local/portage/profiles/repo_name        

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.                  
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig...                                                                                   [ ok ]
* Log: /var/log/portage/cross-mipsel-unknown-linux-uclibc-binutils.log
* Emerging cross-binutils...                                                                                                                          [ ok ]
* Log: /var/log/portage/cross-mipsel-unknown-linux-uclibc-linux-headers-quick.log
* Emerging cross-linux-headers-quick...                                                                                                               [ ok ]
* Log: /var/log/portage/cross-mipsel-unknown-linux-uclibc-uclibc-headers.log
* Emerging cross-uclibc-headers...

* uclibc failed :(
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-mipsel-unknown-linux-uclibc-info.log
* /var/log/portage/cross-mipsel-unknown-linux-uclibc-uclibc-headers.log
Comment 1 Nathan Caldwell 2009-07-12 01:44:11 UTC
Created attachment 197603 [details]
cross-info.log
Comment 2 Nathan Caldwell 2009-07-12 01:45:52 UTC
Created attachment 197605 [details]
cross-uclibc-headers.log
Comment 3 Nathan Caldwell 2009-07-13 18:41:11 UTC
Oops, forgot.

$ emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r2 x86_64)
=================================================================                                         
System uname: Linux-2.6.30-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.0.1 
Timestamp of tree: Mon, 13 Jul 2009 14:30:02 +0000                                                        
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                 
ccache version 2.4 [enabled]                                                                              
app-shells/bash:     4.0_p24                                                                              
dev-java/java-config: 2.1.8-r1                                                                            
dev-lang/python:     2.6.2-r1                                                                             
dev-util/ccache:     2.4-r8                                                                               
dev-util/cmake:      2.6.4                                                                                
sys-apps/baselayout: 2.0.1                                                                                
sys-apps/openrc:     0.4.3-r3                                                                             
sys-apps/sandbox:    2.0                                                                                  
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, 1.11                                      
sys-devel/binutils:  2.19.1-r1                                                                            
sys-devel/gcc-config: 1.4.1                                                                               
sys-devel/libtool:   2.2.6a                                                                               
virtual/os-headers:  2.6.30
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms split-debug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j8"
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/portage /usr/local/overlays/shellbeach /usr/local/overlays/proaudio /usr/local/overlays/chrome"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr amrnb amrwb avahi bash-completion berkdb branding bzip2 cairo cli cracklib crypt dbus dirac dri dts dvb dvd dvdr dvdread emboss encode evo exif fam fbcondecor ffmpeg flac fortran gdbm gif gphoto2 gpm gstreamer gtk hal htmlhandbook iconv ieee1394 inotify ipod ipv6 isdnlog java jpeg kde kerberos kvm libass libnotify libv4l2 lirc live lzma lzo mad matroska midi mikmod mmap mmx mmxext mng mp3 mpeg mudflap multilib musicbrainz mythtv ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl phonon plasma png ppds pppd python qt3 qt3support qt4 quicktime rar readline redland reflection samba schroedinger sdl session spell spl sqlite sqlite3 srt sse sse2 sse3 sse4 ssl ssse3 startup-notification subversion svg sysfs tcpd theora threads thumbnail tiff truetype unicode usb v4l2 vnc vorbis webkit x264 xattr xcomposite xml xorg xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES="inputlirc" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Peter Levine 2009-07-15 07:11:36 UTC
I had this problem recently with armv4tl-softfloat-linux-uclibceabi.  All instances of 'getline' in the extra/scripts/unifdef.c file of uclibc have to be replaced with 'parseline'.
Comment 5 SpanKY gentoo-dev 2009-07-20 04:29:59 UTC

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