pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bzip 2 fails to build on IRIX 6.5




It's getting closer. The collect2 command line looks ok, but the ld
command line is broken. Have a look at what collect2 does with its
arguments and how these get passed down to ld. Running "collect2 --help"
reveals that it has a -debug option, which sounds good.

The output of 
 /opt/local/gcc-4.7.4/libexec/gcc/mips-sgi-irix6.5/4.7.4/collect2 -debug -shared -init __gcc_init -fini __gcc_fini -melf32bmipn32 -o .libs/libbz2.so.1.0 /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/irix-crti.o /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/crtbegin.o -L/build/archivers/bzip2/work/.buildlink/lib -L/opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4 -L/opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/../../../../lib32 -L/lib/../lib32 -L/usr/lib/../lib32 -L/opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/../../../../mips-sgi-irix6.5/lib -L/opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/../../.. .libs/blocksort.o .libs/bzlib.o .libs/compress.o .libs/crctable.o .libs/decompress.o .libs/huffman.o .libs/randtable.o -rpath /usr/pkg/lib -soname libbz2.so.1 -set_version sgi1.0 -update_registry .libs/so_locations -lgcc_s -lm -L/usr/lib32/mips3 -L/usr/lib32 -lgcc_s -lm /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/crtend.o /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/irix-crtn.o

is

<sgi1.0 -update_registry .libs/so_locations -lgcc_s -lm -L/usr/lib32/mips3 -L/usr/lib32 -lgcc_s -lm /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/crtend.o /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/irix-crtn.o                                             
Convert string '/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/etc:/usr/etc:/usr/bin/X11:/usr/gfx:/usr/java/bin:/usr/java/bin32:/usr/nekoware/bin:/usr/nekoware/sbin:/usr/nekoware/drqueue/bin:/usr/local/bin:/usr/demos/Inventor:/usr/local/blender-2.44-irix-6.5-mips:/lib:/usr/lib:/usr/lib32/cmplrs:/usr/local/games/quake2:/usr/local/games/Quake3:/usr/local/ChangeSysId:/usr/local/RealPlayer8:/usr/local/RealPlayer8:/usr/local/divx:/usr/local/ayam/bin:/usr/pegamento:/usr/adobe/Acrobat4.0/bin:/usr/freeware/bin:/usr/pkg/bin:/usr/pkg/sbin:/opt/local/gcc-8.2.0/bin:/usr/lightwave/Bin:/usr/explorer/bin:.' into prefixes, separator = ':'
  - add prefix: /usr/sbin/
  - add prefix: /usr/bsd/
  - add prefix: /sbin/
  - add prefix: /usr/bin/
  - add prefix: /bin/
  - add prefix: /etc/
  - add prefix: /usr/etc/
  - add prefix: /usr/bin/X11/
  - add prefix: /usr/gfx/
  - add prefix: /usr/java/bin/
  - add prefix: /usr/java/bin32/
  - add prefix: /usr/nekoware/bin/
  - add prefix: /usr/nekoware/sbin/
  - add prefix: /usr/nekoware/drqueue/bin/
  - add prefix: /usr/local/bin/
  - add prefix: /usr/demos/Inventor/
  - add prefix: /usr/local/blender-2.44-irix-6.5-mips/
  - add prefix: /lib/
  - add prefix: /usr/lib/
  - add prefix: /usr/lib32/cmplrs/
  - add prefix: /usr/local/games/quake2/
  - add prefix: /usr/local/games/Quake3/
  - add prefix: /usr/local/ChangeSysId/
  - add prefix: /usr/local/RealPlayer8/
  - add prefix: /usr/local/RealPlayer8/
  - add prefix: /usr/local/divx/
  - add prefix: /usr/local/ayam/bin/
  - add prefix: /usr/pegamento/
  - add prefix: /usr/adobe/Acrobat4.0/bin/
  - add prefix: /usr/freeware/bin/
  - add prefix: /usr/pkg/bin/
  - add prefix: /usr/pkg/sbin/
  - add prefix: /opt/local/gcc-8.2.0/bin/
  - add prefix: /usr/lightwave/Bin/
  - add prefix: /usr/explorer/bin/
  - add prefix: ./
Looking for 'real-ld'
  - failed: no entries in prefix list
Looking for 'collect-ld'
  - failed: no entries in prefix list
Looking for 'ld'
  - failed: no entries in prefix list
Looking for 'ld'
Looking for 'gnm'
  - failed: no entries in prefix list
Looking for 'gnm'
Looking for 'nm'
  - failed: no entries in prefix list
Looking for 'nm'
Looking for 'gstrip'
  - failed: no entries in prefix list
Looking for 'gstrip'
Looking for 'strip'
  - failed: no entries in prefix list
Looking for 'strip'
Looking for 'gcc'
  - failed: no entries in prefix list
Looking for 'gcc'
collect2 version 4.7.4
ld_file_name        = /opt/local/gcc-8.2.0/bin/ld
c_file_name         = /opt/local/gcc-8.2.0/bin/gcc
nm_file_name        = /usr/bin/nm
strip_file_name     = /usr/bin/strip
c_file              = /var/tmp/ccCYRGxz.c
o_file              = /var/tmp/ccSaHHWY.o

/opt/local/gcc-8.2.0/bin/ld -shared -init __gcc_init -fini __gcc_fini -melf32bmipn32 -o .libs/libbz2.so.1.0 /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/irix-crti.o /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/crtbegin.o -L/build/archivers/bzip2/work/.buildlink/lib -L/opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4 -L/opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/../../../../lib32 -L/lib/../lib32 -L/usr/lib/../lib32 -L/opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/../../../../mips-sgi-irix6.5/lib -L/opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/../../.. .libs/blocksort.o .libs/bzlib.o .libs/compress.o .libs/crctable.o .libs/decompress.o .libs/huffman.o .libs/randtable.o -rpath /usr/pkg/lib -soname libbz2.so.1 -set_version sgi1.0 -update_registry .libs/so_locations -lgcc_s -lm -L/usr/lib32/mips3 -L/usr/lib32 -lgcc_s -lm /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/crtend.o /opt/local/gcc-4.7.4/lib/gcc/mips-sgi-irix6.5/4.7.4/irix-crtn.o
/opt/local/gcc-8.2.0/bin/ld: sgi1.0: No such file: No such file or directory
collect2: error: ld returned 1 exit status
[Leaving /var/tmp/ccCYRGxz.c]
[Leaving /var/tmp/ccSaHHWY.o]
[Leaving /var/tmp/ccsH1nko.ld]
[Leaving /var/tmp/cckvuARM.le]

not sure that tells us anything new. If i remove -set_version sgi1.0 and -update_registry .libs/so_locations then the command completes.

Mark



Home | Main Index | Thread Index | Old Index