GCC 2.95.2 fails to compile Perl 5.005_03

David J N Begley david@avarice.nepean.uws.edu.au
Thu Dec 9 19:59:00 GMT 1999


GCC Versions Tried:
- GCC 2.95.2 19991024 (release)
  - Compiled from "core-only" source ... FAIL
  - Binary from SunFreeware{1} ......... FAIL
- GCC 2.8.1
  - Binary from SunFreeware{2} ......... PASS

System Type:
- Sun Solaris 7, plus Recommended Patch Cluster (December 1, 1999)
- 64-bit Ultra Enterprise 2 SMP server

Compile:
- Normal Perl compile, "sh Configure" (no threading, no shared libperl, ...)
- Followed by "make", GCC 2.8.1 compiles everything fine (and passes all
  Perl's tests) but GCC 2.95.2 results in:

[...]
rm -f libperl.a
/usr/ccs/bin/ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o regcomp.o
 dump.o util.o mg.o byterun.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.
o pp_sys.o doop.o doio.o regexec.o taint.o deb.o universal.o globals.o perlio.o
gcc -B/usr/ccs/bin/  -s -o miniperl miniperlmain.o libperl.a -lsocket -lnsl -ldl
 -lm -lc -lcrypt
gcc: file path prefix `/usr/ccs/bin/' never used
./miniperl -w -Ilib -MExporter -e 0 || make minitest
./miniperl configpm tmp
Use of uninitialized value at configpm line 339, <GLOS> chunk 2.
Use of uninitialized value at configpm line 339, <GLOS> chunk 3.
Use of uninitialized value at configpm line 339, <GLOS> chunk 4.
[...]
Use of uninitialized value at configpm line 339, <GLOS> chunk 560.
Use of uninitialized value at configpm line 339, <GLOS> chunk 561.
Use of uninitialized value at configpm line 403.
configpm: tmp not valid at configpm line 403.
*** Error code 255
make: Fatal error: Command failed for target `lib/Config.pm'

- The only other warning produced (constantly) by 2.95.2 but not by 2.8.1:

  gcc: file path prefix `/usr/ccs/bin/' never used

{1} http://www.sunfreeware.com/programlistsparc7.html#gcc2952
{2} http://www.sunfreeware.com/programlistsparc7.html#gcc281

Cheers..


David J. N. Begley  <d.begley@nepean.uws.edu.au>
Network Analyst, Communications Unit, ITS
University of Western Sydney, Nepean
Australia



More information about the Gcc-bugs mailing list