I'm not an expert but am trying to follow the instructions
to rebuild my 5.7 stable system with the latest patches,
using the commands below. I'm pretty sure this same
script has worked for me in the past.... It fails at the last
line with exit code 1. I've duplicated the problem more
than once, and the last time, CVS didn't seem to pull down
any new files (it did the day before) so I'm thinking I've got
the latest code to work with.
Any advice? Thanks in advance.
Here's the relevant portion of the script I use:
CVSROOT="[email protected]:/cvs"
STABLE_BRANCH='OPENBSD_5_7'
cd /usr/src
nice time cvs -q -d "$CVSROOT" up -r$STABLE_BRANCH -Pd
cd /usr/src/sys
nice time cvs -q -d "$CVSROOT" up -r$STABLE_BRANCH -Pd
cd /usr/xenocara
nice time cvs -q -d "$CVSROOT" up -r$STABLE_BRANCH -Pd
cd /usr/ports
nice time cvs -q -d "$CVSROOT" up -r$STABLE_BRANCH -Pd
# rebuild & install kernel:
cd /usr/src/sys/arch/$(machine)/conf/
nice config GENERIC.MP
cd ../compile/GENERIC.MP
nice make clean && nice make
echo 'When ready, <Enter> to install the new kernel:';read
nice make install
echo "NOW: manually reboot when ready; then do the stuff below as
needed; NOT DONE YET!"
exit
[...]
# rebuild userland & install it:
nice rm -rf /usr/obj/*
cd /usr/src
# [i also tried it with a 'make clean' here--same result]
nice make obj
cd /usr/src/etc && env DESTDIR=/ nice make distrib-dirs
cd /usr/src
nice make build
echo $?
Here is the output, which ends with the errors. Pls
pardon the line lengths, it's literal:
I/usr/src/gnu/usr.bin/binutils/ld -I../bfd
-I/usr/src/gnu/usr.bin/binutils/ld/../bfd
-I/usr/src/gnu/usr.bin/binutils/ld/../include
-I/usr/src/gnu/usr.bin/binutils/ld/../intl -I../intl -O2 -pipe
-DPIE_DEFAULT=1 -DLOCALEDIR="\"/usr/share/locale\"" -W -Wall -Wstrict-p
rototypes -Wmissing-prototypes -O2 -pipe -DPIE_DEFAULT=1 -c
eelf_i386_obsd.c
In file included from eelf_i386_obsd.c:31:
/usr/src/gnu/usr.bin/binutils/ld/../include/getopt.h:116: warning:
function declaration isn't a prototype
eelf_i386_obsd.c: In function 'gldelf_i386_obsd_open_dynamic_archive':
eelf_i386_obsd.c:889: warning: unused parameter 'arch'
LIB_PATH='' /bin/sh /usr/src/gnu/usr.bin/binutils/ld/genscripts.sh
/usr/src/gnu/usr.bin/binutils/ld /usr/lib "/usr"
x86_64-unknown-openbsd5.7 x86_64-unknown-openbsd5.7
amd64-unknown-openbsd5.7 "elf_x86_64_obsd" "/usr/local/lib /lib
/usr/lib" no elf_i386 "amd64-unknown-openbsd5.7"
cc -DHAVE_CONFIG_H -I. -I/usr/src/gnu/usr.bin/binutils/ld -I.
-D_GNU_SOURCE -I. -I/usr/src/gnu/usr.bin/binutils/ld -I../bfd
-I/usr/src/gnu/usr.bin/binutils/ld/../bfd
-I/usr/src/gnu/usr.bin/binutils/ld/../include
-I/usr/src/gnu/usr.bin/binutils/ld/../intl -I../intl -O2 -pipe
-DPIE_DEFAULT=1 -DLOCALEDIR="\"/usr/share/locale\"" -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -DPIE_DEFAULT=1 -c
eelf_i386.c
In file included from eelf_i386.c:31:
/usr/src/gnu/usr.bin/binutils/ld/../include/getopt.h:116: warning:
function declaration isn't a prototype
eelf_i386.c: In function 'gldelf_i386_open_dynamic_archive':
eelf_i386.c:889: warning: unused parameter 'arch'
/bin/sh ./libtool --mode=link cc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -O2 -pipe -DPIE_DEFAULT=1 -o ld-new ldgram.o
ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o
ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_x86_64_obsd.o
eelf_i386_obsd.o eelf_i386.o ../bfd/libbfd.la -liberty
mkdir .libs
cc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe
-DPIE_DEFAULT=1 -o ld-new ldgram.o ldlex.o lexsup.o ldlang.o mri.o
ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o
ldcref.o eelf_x86_64_obsd.o eelf_i386_obsd.o eelf_i386.o
../bfd/.libs/libbfd.a -liberty
ldlex.o(.text+0x42d): In function `lex_redirect':
: warning: strcpy() is almost always misused, please use strlcpy()
ldmain.o(.text+0x1f72): In function `main':
: warning: strcat() is almost always misused, please use strlcat()
ldlex.o(.text+0x91f): In function `lex_warn_invalid':
: warning: sprintf() is often misused, please use snprintf()
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
Making all in doc
Making all in po
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
cc -DHAVE_CONFIG_H -I. -I/usr/src/gnu/usr.bin/binutils/gas -I.
-D_GNU_SOURCE -I. -I/usr/src/gnu/usr.bin/binutils/gas -I../bfd
-I/usr/src/gnu/usr.bin/binutils/gas/config
-I/usr/src/gnu/usr.bin/binutils/gas/../include
-I/usr/src/gnu/usr.bin/binutils/gas/..
-I/usr/src/gnu/usr.bin/binutils/gas/../bfd
-I/usr/src/gnu/usr.bin/binutils/gas/../intl -I../intl
-DLOCALEDIR="\"/usr/share/locale\"" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -O2 -pipe -DPIE_DEFAULT=1 -c
/usr/src/gnu/usr.bin/binutils/gas/app.c
In file included from /usr/src/gnu/usr.bin/binutils/gas/as.h:94,
from /usr/src/gnu/usr.bin/binutils/gas/app.c:30:
/usr/src/gnu/usr.bin/binutils/gas/../include/getopt.h:116: warning:
function declaration isn't a prototype
In file included from /usr/src/gnu/usr.bin/binutils/gas/app.c:30:
/usr/src/gnu/usr.bin/binutils/gas/as.h:565: warning: function
declaration isn't a prototype
/usr/src/gnu/usr.bin/binutils/gas/as.h:566: warning: function
declaration isn't a prototype
/usr/src/gnu/usr.bin/binutils/gas/as.h:567: warning: function
declaration isn't a prototype
/usr/src/gnu/usr.bin/binutils/gas/as.h:568: warning: function
declaration isn't a prototype
/usr/src/gnu/usr.bin/binutils/gas/as.h:569: warning: function
declaration isn't a prototype
/usr/src/gnu/usr.bin/binutils/gas/as.h:570: warning: function
declaration isn't a prototype
In file included from ./targ-cpu.h:1,
from
/usr/src/gnu/usr.bin/binutils/gas/config/obj-elf.h:42,
from ./obj-format.h:1,
from
/usr/src/gnu/usr.bin/binutils/gas/config/te-obsd.h:24,
from ./targ-env.h:1,
from /usr/src/gnu/usr.bin/binutils/gas/as.h:641,
from /usr/src/gnu/usr.bin/binutils/gas/app.c:30:
/usr/src/gnu/usr.bin/binutils/gas/config/tc-i386.h:27:2: error: #error
So, do you know what you are doing?
In file included from /usr/src/gnu/usr.bin/binutils/gas/symbols.h:31,
from /usr/src/gnu/usr.bin/binutils/gas/as.h:657,
from /usr/src/gnu/usr.bin/binutils/gas/app.c:30:
/usr/src/gnu/usr.bin/binutils/gas/struc-symbol.h:48: error: expected
specifier-qualifier-list before 'obj_symbol_type'
In file included from /usr/src/gnu/usr.bin/binutils/gas/as.h:659,
from /usr/src/gnu/usr.bin/binutils/gas/app.c:30:
/usr/src/gnu/usr.bin/binutils/gas/tc.h:73: error: expected ')' before
'*' token
/usr/src/gnu/usr.bin/binutils/gas/tc.h:77: error: expected ')' before
'*' token
/usr/src/gnu/usr.bin/binutils/gas/tc.h:81: error: expected ')' before
'*' token
In file included from /usr/src/gnu/usr.bin/binutils/gas/as.h:660,
from /usr/src/gnu/usr.bin/binutils/gas/app.c:30:
/usr/src/gnu/usr.bin/binutils/gas/obj.h:33: error: expected ')' before
'*' token
/usr/src/gnu/usr.bin/binutils/gas/obj.h:34: error: expected declaration
specifiers or '...' before 'object_headers'
/usr/src/gnu/usr.bin/binutils/gas/obj.h:36: error: expected ')' before
'*' token
*** Error 1 in gnu/usr.bin/binutils/obj/gas (Makefile:2630 'app.o')
*** Error 1 in gnu/usr.bin/binutils/obj/gas (Makefile:2679 'all-recursive')
*** Error 1 in gnu/usr.bin/binutils/obj/gas (Makefile:2549 'all')
*** Error 1 in gnu/usr.bin/binutils/obj (Makefile:18916 'all-gas')
*** Error 1 in gnu/usr.bin/binutils (Makefile.bsd-wrapper:73 'all')
*** Error 1 in gnu/usr.bin (<bsd.subdir.mk>:48 'all')
*** Error 1 in gnu (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (<bsd.subdir.mk>:48 'all')
*** Error 1 in /usr/src (Makefile:82 'build')
1
Not sure what I'm doing wrong.
Thanks,
-Luke