develooper Front page | perl.perl5.porters | Postings from June 2001

GCC expertise needed

From:
H . Merijn Brand
Date:
June 29, 2001 07:45
Subject:
GCC expertise needed
Message ID:
20010629163959.9DC0.H.M.BRAND@hccnet.nl
Now that I installed gcc-3.0 on AIX 4.3 I get things like this:

        Making B (dynamic)
Writing Makefile for B
make[1]: Entering directory `/pro/3gl/CPAN/perl-5.7.1/ext/B'
make[1]: Leaving directory `/pro/3gl/CPAN/perl-5.7.1/ext/B'
make[1]: Entering directory `/pro/3gl/CPAN/perl-5.7.1/ext/B'
gcc -c  -maix32 -DDEBUGGING -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -Wall -fno-strict-aliasing -I/pro/local/include -D_LARGE_FILES -O   -DVERSION=\"a5\" -DXS_VERSION=\"a5\"  -I../..  B.c
Running Mkbootstrap for B ()
chmod 644 B.bs
rm -f ../../lib/auto/B/B.so
LD_RUN_PATH="" gcc  -bhalt:4 -Wl,-bM:SRE -Wl,-bI:../../perl.exp -Wl,-bE:B.exp -Wl,-bnoentry -lc -L/pro/local/lib B.o  -o ../../lib/auto/B/B.so
ld: 0706-005 Cannot find or open file: libgcc.a
        ld:open(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
        ld:open(): A file or directory in the path name does not exist.
make[1]: *** [../../lib/auto/B/B.so] Error 1
make[1]: Leaving directory `/pro/3gl/CPAN/perl-5.7.1/ext/B'
make: *** [lib/auto/B/B.so] Error 2

which - expanded - is like:

$ LD_RUN_PATH="" gcc -v  -bhalt:4 -Wl,-bM:SRE -Wl,-bI:../../perl.exp -Wl,-bE:B.exp -Wl,-bnoentry -lc -L/pro/local/lib B.o  -o ../../lib/auto/B/B.so
Using builtin specs.
Configured with: ../src/configure --enable-languages=gcc --prefix=/pro/local --with-local-prefix=/pro/local --without-gnu-as --without-gnu-ld --disable-shared --disable-nls
Thread model: single
gcc version 3.0
 ld -bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect -o ../../lib/auto/B/B.so /lib/crt0.o -L/pro/local/lib -bM:SRE -bI:../../perl.exp -bE:B.exp -bnoentry -lc B.o libgcc.a -lc libgcc.a
ld: 0706-005 Cannot find or open file: libgcc.a
        ld:open(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
        ld:open(): A file or directory in the path name does not exist.
$

gcc calls 'ld' with last argument 'libgcc.a' (not '-lgcc') which - of course -
cannot be found there.

What to change where to get this running? Other gcc build option?

-- 
H.Merijn Brand    Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.1 & 626 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
     WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About