On 08/20/15 11:07, Stuart Henderson wrote:
On 2015-08-20, [email protected] <[email protected]> wrote:
The error messages make it look like the code is wrong & won't
build.
Any suggestions?
Is there any chance you've tried building things without having done
'make obj' first? If so, you might have some files lying around under
/usr/src that shouldn't be there which may get in the way. There are
ways to clean things but simplest is probably to just wipe /usr/src
and try a clean checkout.
Thanks. I was able to apply the latest patches manually
per the instructions in each one, instead
of rebuilding all userspace, so that worry is gone.
But I still can't build, per the instructions, in case the
question still matters (ie, if I need to learn something
that upgrading to 5.8 later won't fix). I get a different
error now. Here's what I just did, and the error output
at the end:
umask --> 0077
cd /usr
mv src src-old
cd /usr && cvs -qd [email protected]:/cvs get
-rOPENBSD_5_7 -P src
echo $?
nice rm -rf /usr/obj/*
echo $?
cd /usr/src
nice make obj
[....]
/usr/src/gnu/usr.bin/cc/collect2/obj -> /usr/obj/gnu/usr.bin/cc/collect2
===> gnu/usr.bin/gcc
/usr/src/gnu/usr.bin/gcc/obj -> /usr/obj/gnu/usr.bin/gcc
===> gnu/usr.bin/cxxfilt
/usr/src/gnu/usr.bin/cxxfilt/obj -> /usr/obj/gnu/usr.bin/cxxfilt
===> gnu/usr.bin/cvs
/usr/src/gnu/usr.bin/cvs/obj -> /usr/obj/gnu/usr.bin/cvs
===> gnu/usr.bin/binutils
*** Parse error in /usr/src/gnu/usr.bin/binutils: Malformed conditional
(${BINUTILS_VERSION} == "binutils-2.17") (Makefile.bsd-wrapper:13)
*** Parse error: Need an operator in '"binutils-2.17"'
(Makefile.bsd-wrapper:13)
*** Error 1 in gnu/usr.bin (<bsd.subdir.mk>:48 'obj')
*** Error 1 in gnu (<bsd.subdir.mk>:48 'obj')
*** Error 1 in /usr/src (<bsd.subdir.mk>:48 'obj')
asusbsd Fri Aug 21 10:09:22:/usr/src#echo $?
1
(BTW, I have learned the hard way that umask 0077 for root is not
helpful when running pkg_add. So I have a script that sets the
umask back to the default, temporarily, before doing pkg_add.)