pkgsrc-Bugs archive

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

pkg/38794: bootstrap fails on IRIX



>Number:         38794
>Category:       pkg
>Synopsis:       bootstrap fails on IRIX
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 30 10:35:00 +0000 2008
>Originator:     Stuart Shelton
>Release:        pkgsrc latest from CVS
>Organization:
>Environment:
IRIX 6.5.30; MIPSpro Compilers 7.4.4m
>Description:

Due to apparent bugs in the bootstrap process, attempting to upgrade bmake on 
my system left me without bmake installed - and I couldn't get a working binary 
from the left-over bmake build directory.

The only way I can see to recover the system is to re-bootstrap.

However, attempting to do so with:

PKGSRC_COMPILER=mipspro ./bootstrap --workdir /usr/bsd/var/tmp/bootstrap 
--prefix /usr/bsd/ --pkgdbdir /usr/bsd/var/db/pkg/ --pkgmandir man --sysconfdir 
/usr/bsd/etc/ --varbase /usr/bsd/var/ --preserve-path --unprivileged 

Results in:

===> bootstrap command: ./bootstrap --workdir /usr/bsd/var/tmp/bootstrap 
--prefix /usr/bsd/ --pkgdbdir /usr/bsd/var/db/pkg/ --pkgmandir man --sysconfdir 
/usr/bsd/etc/ --varbase /usr/bsd/var/ --preserve-path --unprivileged
===> bootstrap started: Fri May 30 11:16:58 BST 2008
Working directory is: /usr/bsd/var/tmp/bootstrap
===> running: /usr/bsd/bin/sed -e 's|@DEFAULT_INSTALL_MODE@|'0755'|' 
/usr/bsd/src/sysutils/install-sh/files/install-sh.in > 
/usr/bsd/var/tmp/bootstrap/bin/install-sh
===> running: /usr/bsd/bin/chmod +x /usr/bsd/var/tmp/bootstrap/bin/install-sh
===> building as unprivileged user netbsd/netbsd
===> Building libnbcompat
===> running: /usr/bsd/bin/sh /usr/bsd/var/tmp/bootstrap/bin/install-sh -d -o 
netbsd -g netbsd /usr/bsd/var/tmp/bootstrap/libnbcompat
===> running: (cd /usr/bsd/var/tmp/bootstrap/libnbcompat; /usr/bsd/bin/sh 
./configure  -C --prefix=/usr/bsd/ --mandir=/usr/bsd//man 
--sysconfdir=/usr/bsd/etc/ && make )

...

cc -I/usr/bsd/include -D__inline__=inline -I. -I.  -c99 -O2 -n32 -mips4 -r14000 
-float_const -use_readonly_const -TARG:isa=mips4:platform=ip35:processor=r14000 
-TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON 
-LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 
1174,1183,1185,1552,3970,3968 -DHAVE_CONFIG_H -c bits.c
cc -I. -I.  -c99 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const 
-TARG:isa=mips4:platform=ip35:processor=r14000 -TENV:zeroinit_in_bss=ON 
-OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON 
-LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 
1174,1183,1185,1552,3970,3968 
-Wl,-v,-s,-x,-n32,-mips4,-rdata_shared,-allow_jump_at_eop,-rpath,/usr/bsd/lib 
-o bits bits.o
./bits nbcompat/nbtypes.h
gawk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
cc -I/usr/bsd/include -D__inline__=inline -I. -I.  -c99 -O2 -n32 -mips4 -r14000 
-float_const -use_readonly_const -TARG:isa=mips4:platform=ip35:processor=r14000 
-TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON 
-LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 
1174,1183,1185,1552,3970,3968 -DHAVE_CONFIG_H -c glob.c
cc-1101 cc: ERROR File = /usr/bsd/include/nbcompat/getopt.h, Line = 52
  "option" has already been declared in the current scope.

  struct option {
         ^

cc-1143 cc: ERROR File = /usr/bsd/include/nbcompat/getopt.h, Line = 67
  Declaration is incompatible with "int getopt_long(int, char *const *, const
          char *, const struct option *, int *)" (declared at line 70 of
          "/usr/bsd/include/getopt.h").

  int getopt_long (int, char * const *, const char *,
      ^

2 errors detected in the compilation of "glob.c".
make: *** [glob.o] Error 2
===> exited with status 2
aborted.

This is a pretty serious problem - I'm left without the ability to build 
updates or re-run the bootstrap process :(
>How-To-Repeat:

I've tested the same command on two of my IRIX systems (I made the mistake of 
trying to update bmake on both at the same time... you live and learn), and 
both fail at the same point with the same issue.
>Fix:

So far as I'm aware, changes were made to libnbcompat to handle IRIX' non 
GNU-compliant <getopt.h> - but I'm absolutely convinced that since these went 
through I've successfully rebuilt both libnbcompat itself and packages which 
rely on it... so it seems odd that it fails now.



Home | Main Index | Thread Index | Old Index