View previous topic :: View next topic |
Author |
Message |
asv Tux's lil' helper
Joined: 25 Jul 2003 Posts: 138 Location: State College, PA United States
|
Posted: Sat Jun 05, 2004 11:29 pm Post subject: dev-lang/perl-5.8.2-r1 compile failure Gentoo PPC64 G5 |
|
|
After wrestling to get libperl to compile, I know having this problem with perl itsself:
Code: |
LD_RUN_PATH="" gcc -L/usr/local/lib C.o -o ../../../lib/auto/B/C/C.so
/usr/lib/gcc-lib/powerpc64-unknown-linux-gnu/3.3.3/../../../../lib64/crt1.o(.data.rel.ro.local+0x8): undefined reference to `main'
C.o(.text+0x128): In function `.boot_B(void) const':
: undefined reference to `.Perl_croak'
C.o(.text+0x19c): In function `.boot_B(void) const':
: undefined reference to `.Perl_form'
C.o(.text+0x1a8): In function `.boot_B(void) const':
: undefined reference to `.Perl_get_sv'
C.o(.text+0x1d8): In function `.boot_B(void) const':
: undefined reference to `.Perl_form'
C.o(.text+0x1e4): In function `.boot_B(void) const':
: undefined reference to `.Perl_get_sv'
C.o(.text+0x1fc): In function `.boot_B(void) const':
: undefined reference to `.Perl_sv_2pv_flags'
C.o(.text+0x218): In function `.boot_B(void) const':
: undefined reference to `.Perl_sv_2pv_flags'
C.o(.text+0x28c): In function `.my_runops':
: undefined reference to `.Perl_get_hv'
C.o(.text+0x29c): In function `.my_runops':
: undefined reference to `.Perl_newSViv'
C.o(.text+0x308): In function `.my_runops':
: undefined reference to `.Perl_despatch_signals'
C.o(.text+0x32c): In function `.my_runops':
: undefined reference to `.Perl_newSViv'
C.o(.text+0x33c): In function `.my_runops':
: undefined reference to `.Perl_safesysmalloc'
C.o(.text+0x380): In function `.my_runops':
: undefined reference to `.Perl_sv_setiv'
C.o(.text+0x394): In function `.my_runops':
: undefined reference to `.Perl_sv_setref_iv'
C.o(.text+0x3ac): In function `.my_runops':
: undefined reference to `.Perl_hv_store_ent'
C.o(.text+0x3f0): In function `.my_runops':
: undefined reference to `.Perl_sv_free'
C.o(.toc+0x0): undefined reference to `PL_stack_sp'
C.o(.toc+0x8): undefined reference to `PL_stack_base'
C.o(.toc+0x10): undefined reference to `PL_markstack_ptr'
C.o(.toc+0x60): undefined reference to `PL_runops'
C.o(.toc+0x70): undefined reference to `PL_sv_yes'
C.o(.toc+0x80): undefined reference to `PL_sig_pending'
C.o(.toc+0x88): undefined reference to `PL_op'
C.o(.toc+0x98): undefined reference to `PL_tainted'
collect2: ld returned 1 exit status
make[2]: *** [../../../lib/auto/B/C/C.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/perl-5.8.2-r1/work/perl-5.8.2/ext/B/C'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/var/tmp/portage/perl-5.8.2-r1/work/perl-5.8.2/ext/B'
make: *** [lib/auto/B/B.so] Error 2
!!! ERROR: dev-lang/perl-5.8.2-r1 failed.
!!! Function src_compile, Line 188, Exitcode 2
!!! Unable to make
|
I've tried using more conservative compilier settings with no results. Any help will be GREATLY appreciated. I really want to get this beast working with gentoo.
Here is my emerge info
Code: | Portage 2.0.50-r7 (default-ppc64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20031210-r0, 2.6.6-r0-G5)
=================================================================
System uname:
Gentoo Base System version 1.4.15
Autoconf:
Automake:
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=power4 -mtune=power4 -mabi=altivec -maltivec -fno-strict-aliasing -pipe"
CHOST="powerpc64-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=power4 -mtune=power4 -mabi=altivec -maltivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi aim alsa altivec berkdb crypt cups dvd dvdr esd flac foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 imlib jpeg kde libwww mitshm motif mozilla nls oggvorbis opengl oss pam pdflib perl png ppc ppc64 python qt quicktime readline samba sdl slang spell ssl tcpd truetype usb xml xml2 xv xvid"
|
|
|
Back to top |
|
|
tgall_foo n00b
Joined: 24 Dec 2003 Posts: 7 Location: Mantorville Mn, Earth
|
Posted: Sat Jun 05, 2004 11:40 pm Post subject: fixing perl on ppc64 / G5 |
|
|
probably is actually in coreutils.
And there's a fix!
(I'll mention this here so folks in general know)
emerge sync
emerge coreutils
emerge perl
That'll fix it.
basically uname -a was segfaulting. With that fixed, perl will be fine. (and a few other things) |
|
Back to top |
|
|
asv Tux's lil' helper
Joined: 25 Jul 2003 Posts: 138 Location: State College, PA United States
|
Posted: Sun Jun 06, 2004 2:48 am Post subject: Re: fixing perl on ppc64 / G5 |
|
|
tgall_foo wrote: | probably is actually in coreutils.
And there's a fix!
(I'll mention this here so folks in general know)
emerge sync
emerge coreutils
emerge perl
That'll fix it.
basically uname -a was segfaulting. With that fixed, perl will be fine. (and a few other things) |
ok when i try to emerge coreutils it has perl as a dependcy:
Code: |
livecd etc # emerge -p coreutils
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] dev-lang/perl-5.8.2-r1
[ebuild N ] sys-devel/autoconf-2.58-r1
[ebuild N ] sys-devel/automake-1.8.3
[ebuild N ] sys-apps/help2man-1.29
[ebuild N ] sys-apps/coreutils-5.0.91-r4
|
I've tried doing just autoconf or coreutils with nodeps but both failed. |
|
Back to top |
|
|
JimH n00b
Joined: 05 Jun 2004 Posts: 2
|
Posted: Sun Jun 06, 2004 3:53 am Post subject: Post subject: Re: fixing perl on ppc64 / G5 |
|
|
Hello,
you are corrcet there is a circular thing with gentoo coreutils and perl.
I just grabbed some generic source tar ball from the web (no need for automake...).
Cann't remember where but www.gnu.org may have it.
Jim |
|
Back to top |
|
|
kare n00b
Joined: 06 Jun 2004 Posts: 26 Location: Friedberg, Germany
|
Posted: Sun Jun 06, 2004 10:11 am Post subject: Re: dev-lang/perl-5.8.2-r1 compile failure Gentoo PPC64 G5 |
|
|
Hi,
you can solve the problem adding
-Dlddlflags='-Wl,-shared'
to section "sh Configure" in
dev-lang/perl/perl-5.8.2-r1.ebuild. |
|
Back to top |
|
|
|