Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78466 - Some emerges require $CHOST have a - at the front
Summary: Some emerges require $CHOST have a - at the front
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 22:10 UTC by Mike Bissett
Modified: 2005-11-29 09:13 UTC (History)
0 users

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


Attachments
Build log of failed sys-apps/attr emerge (attr_emerge.log,17.57 KB, text/plain)
2005-01-18 14:13 UTC, Mike Bissett
Details
Build log of failed media-libs/jpeg (jpeg_emerge.log,27.17 KB, text/plain)
2005-01-18 14:15 UTC, Mike Bissett
Details
Output from gcc-config (gcc_config_out.txt,207 bytes, text/plain)
2005-01-18 14:53 UTC, Mike Bissett
Details
My env befor and after source /etc/profile (env_out.txt,1.61 KB, text/plain)
2005-01-18 15:19 UTC, Mike Bissett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Bissett 2005-01-17 22:10:14 UTC
I noticed this while trying to emerge samba, several of the dependencies fail to emerge with the following linker message: 

g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crti.o: No such file or directory
g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtbeginS.o: No such file or directory
g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtendS.o: No such file or directory
g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crtn.o: No such file or directory
gmake[1]: *** [libattr.la] Error 1
make: *** [default] Error 2

2 Example packages are sys-apps/attr and media-libs/jpeg

doing:
# CHOST="-i686-pc-linux-gnu" emerge <package>

makes it work.

P.S. i tried running fix_libtool_files.sh 3.3.4 and it made no difference.


Reproducible: Always
Steps to Reproduce:
1.emerge <package>
2.
3.

Actual Results:  
 

Expected Results:  
ebuilds compile.. 

This is a from a fesh install and emerge --sync. 
 
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r5 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r7 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo 
http://www.zentek-international.com/mirrors/gentoo/ 
http://mymirror.asiaosc.org/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" 
USE="acl apm arts avi berkdb bitmap-fonts crypt cups encode f77 font-server 
foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib innodb ipv6 jpeg kde 
kerberos ldap libclamav libg++ libwww mad mikmod mmx motif mpeg mysql ncurses 
nls oggvorbis opengl oss pam pdflib perl png python qt quicktime quotas 
readline samba sdl spell ssl svga tcpd tiff truetype truetype-fonts 
type1-fonts vhosts x86 xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2005-01-18 07:31:05 UTC
post a full log of the build
Comment 2 Mike Bissett 2005-01-18 14:13:35 UTC
Created attachment 48886 [details]
Build log of failed sys-apps/attr emerge

I get the same result on two different fresh installs
Comment 3 Mike Bissett 2005-01-18 14:15:58 UTC
Created attachment 48887 [details]
Build log of failed media-libs/jpeg

I get the same result on two fresh installs. (From 2004.3)
Comment 4 Mike Bissett 2005-01-18 14:17:50 UTC
Dont know if this helps but doing all ebuild steps apart from compile works.
And doing ./configure and make manually in the work dir works as well.
Comment 5 SpanKY gentoo-dev 2005-01-18 14:45:58 UTC
what does `gcc-config -l` and `gcc-config -c` show ?

what about `cat /etc/env.d/gcc/config`
Comment 6 Mike Bissett 2005-01-18 14:53:50 UTC
Created attachment 48893 [details]
Output from gcc-config

Outputs from gcc-config. Looks right to me..
Comment 7 SpanKY gentoo-dev 2005-01-18 14:58:14 UTC
and what does `env` look like ?

what about `source /etc/profile ; env` ?
Comment 8 SpanKY gentoo-dev 2005-01-18 14:59:05 UTC
err, nm

run fix_libtool_files.sh 3.3.4

*** This bug has been marked as a duplicate of 73435 ***
Comment 9 Mike Bissett 2005-01-18 15:19:29 UTC
Created attachment 48897 [details]
My env befor and after source /etc/profile

My env before and after source /etc/profile

which has already been done, these may be fresh installs but i aint a gentoo or
linux noob. Also as stated in my initial report running fix_libtool_files.sh
3.3.4 does not help
Comment 10 Mike Bissett 2005-01-18 15:20:29 UTC
Not a duplicate of  73435
Comment 11 SpanKY gentoo-dev 2005-01-18 15:24:41 UTC
what does `grep '3.3.4' /usr/lib/*.la` show ?
Comment 12 Mike Bissett 2005-01-18 15:29:25 UTC
Nothing... :(.. the only reference ive found to 3.3.4 on these boxes is in

/etc/make.profile/packages:>=sys-devel/gcc-3.3.4-r1

im not hooked up to an old profile am I .. hmm ?
Comment 13 Mike Bissett 2005-01-18 15:32:45 UTC
nope my profile is
/etc/make.profile -> /usr/portage/profiles/default-linux/x86/2004.3
Comment 14 SpanKY gentoo-dev 2005-01-18 15:50:07 UTC
your profile is fine
Comment 15 Mark Loeser (RETIRED) gentoo-dev 2005-11-29 09:13:12 UTC
Re-emerging libtool should fix this.