Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17068 - lftp falis compiling stage in a ibook g3 ppc
Summary: lftp falis compiling stage in a ibook g3 ppc
Status: VERIFIED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Graham Forest
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-08 00:08 UTC by Miguel Sousa Filipe
Modified: 2006-02-04 06:03 UTC (History)
0 users

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 Miguel Sousa Filipe 2003-03-08 00:08:50 UTC
Segmentation fault during some compile.
copy paste of the last lines come next>


gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include     -O2 -pipe -mcpu=750
-mpowerpc-gfxopt -mmultiple -mstring -Wall -c `test -f 'lftp_rl.c' || echo
'./'`lftp_rl.c
/bin/sh ../libtool --silent --mode=link g++  -O2 -pipe -mcpu=750
-mpowerpc-gfxopt -mmultiple -mstring -Wall -Wwrite-strings -Woverloaded-virtual
-fno-exceptions -fno-rtti -fno-implement-inlines -Winline  -s -o lftp
-export-dynamic -L/usr/lib lftp.o complete.o lftp_rl.o libjobs.a libtasks.a
libnetwork.la proto-ftp.la proto-http.la proto-file.la proto-fish.la
cmd-mirror.la cmd-sleep.la -lreadline ../lib/liblib.a -lssl -lcrypto  -lutil
-lcurses -lresolv -ldl
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make[1]: *** [lftp] Error 1
make[1]: Leaving directory `/var/tmp/portage/lftp-2.6.4/work/lftp-2.6.4/src'
make: *** [all-recursive] Error 1

!!! ERROR: net-ftp/lftp-2.6.4 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! compile problem

Reproducible: Always
Steps to Reproduce:
1.emerge lftp
2.
3.
Actual Results:  
failed to emerge lftp

Expected Results:  
a clean install of lftp :D

[72p] newton : ~ $ emerge info
Portage 2.0.47-r8 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-ben7 ppc 
GENTOO_MIRRORS="ftp://ftp.co.it.pt/pub/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="oss xv libwww jpeg nls mitshm gif imlib png truetype gdbm berkdb slang
readline gpm tcpd perl python qt motif X gtk2 xft dvd ppc ipv6 java threads ssl
opengl mozilla sdl pam oggvorbis -gtk -gnome -esd -kde -alsa"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring"
CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring"
ACCEPT_KEYWORDS="ppc ~ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache"
Comment 1 Mark Guertin 2003-03-08 00:36:28 UTC
same CFLAGS updates for this plase, these are very very old gcc-2.95.3 ones :)
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2003-03-08 01:52:49 UTC
Same here with "newer" CFLAGS (-O3 -pipe -mcpu=750).
Comment 3 Miguel Sousa Filipe 2003-03-19 12:06:02 UTC
Keeps segfaulting on compile!


g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include     -O2 -pipe -mcpu=750 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -c -o lftp.o `test -f 'lftp.cc' || echo './'`lftp.cc
source='complete.cc' object='complete.o' libtool=no \
depfile='.deps/complete.Po' tmpdepfile='.deps/complete.TPo' \
depmode=gcc /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include     -O2 -pipe -mcpu=750 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -c -o complete.o `test -f 'complete.cc' || echo './'`complete.cc
source='lftp_rl.c' object='lftp_rl.o' libtool=no \
depfile='.deps/lftp_rl.Po' tmpdepfile='.deps/lftp_rl.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include     -O2 -pipe -mcpu=750 -Wall -c `test -f 'lftp_rl.c' || echo './'`lftp_rl.c
/bin/sh ../libtool --silent --mode=link g++  -O2 -pipe -mcpu=750 -mstring -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline  -s -o lftp -export-dynamic -L/usr/lib lftp.o complete.o lftp_rl.o libjobs.a libtasks.a libnetwork.la proto-ftp.la proto-http.la proto-file.la proto-fish.la cmd-mirror.la cmd-sleep.la -lreadline ../lib/liblib.a -lssl -lcrypto  -lutil -lcurses -lresolv -ldl  
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make[1]: *** [lftp] Error 1
make[1]: Leaving directory `/var/tmp/portage/lftp-2.6.4/work/lftp-2.6.4/src'
make: *** [all-recursive] Error 1

!!! ERROR: net-ftp/lftp-2.6.4 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! compile problem


keeps failing with modern settings:

[61p] newton : /proc $ emerge info
Portage 2.0.47-r10 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-ppc-r3 ppc 
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="oss xv libwww jpeg nls mitshm gif png truetype gdbm berkdb slang readline tcltk gpm tcpd perl python imlib qt motif X gtk2 dvd ppc ipv6 java threads ssl opengl mozilla sdl pam oggvorbis gtk -gnome -esd -kde -alsa"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=750"
CXXFLAGS="-O2 -pipe -mcpu=750"
ACCEPT_KEYWORDS="ppc ~ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache"

I think its time to redirect the bug to the lftp ppl, this is probably due to some bug in lftp code.
After all, lftp is my favority ftp client, and I want it working in ppc! =)
Comment 4 Luca Barbato gentoo-dev 2003-03-21 21:32:58 UTC
Could you please try -O2 instead of -O3 please?
Comment 5 Miguel Sousa Filipe 2003-03-21 23:02:06 UTC
please read more carefully ;-)
I DID try with -O2 instead of -O3. see my post right above yours.
Comment 6 Graham Forest 2003-03-22 01:31:13 UTC
I'm working on this, I'm almost sure it's a problem with a compiler flag, I've gotten it to compile sucessfully by hand doing everything the ebuild does but that,a nd I've broken it by hand, too. I think I've compiled it somewhere around 30 or 40 times. Please be patient, or even better, gimme a hand and poke around. ^_^

Graham
Comment 7 Stephan van Maris 2003-03-26 17:21:18 UTC
I've tried emerging lftp-2.6.4 on my Powerbook G4 (rev-III, 667mhz) with the 
following CFLAGS/CXXFLAGS: 
 
"-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char 
-mpowerpc-gpopt" 
 
"-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char" 
 
and  
 
"-O1" 
 
to no avail. I also disabled the following USE-flags one-by-one: 
 
nls 
ssl 
 
but it keeps failing on the same point as the original poster submitted. 
Comment 8 Graham Forest 2003-03-27 01:35:50 UTC
This seems to be a bug in binutils, it's fixed in the latest version, which I don't think is even ~ppc yet. I'm not sure how to proceed yet, I'll have to ask around to see when that version of binutils will be in. This will be closed soon.
Comment 9 Graham Forest 2003-04-11 20:31:52 UTC
I've -ppc'd this, as binutils .20 isn't likely to work on ppc for a while to come.
Comment 10 Lars Weiler (RETIRED) gentoo-dev 2004-02-15 15:21:40 UTC
10 months later and lftp-2.6.10 is stable and works :-)  I close this bug.