Re: dhcpcd build failure

2016-10-17 Thread Tom Ivar Helbekkmo
Tom Ivar Helbekkmo  writes:

> Martin Husemann  writes:
>
>> I would completely remove $OBJDIR/external/bsd/dhcpcd [...]

It turns out that's not the only one that needs to go.  It's being
separately built for a number of ramdisks, as well, and the same problem
occurs there.  So, before a "-u" build after the change:

find /usr/obj -type d -name dhcpcd | xargs rm -rf

-tih
-- 
Elections cannot be allowed to change anything.  --Dr. Wolfgang Schäuble


Re: dhcpcd build failure

2016-10-16 Thread Martin Husemann
On Sun, Oct 16, 2016 at 07:45:38PM +0200, Tom Ivar Helbekkmo wrote:
> The file in question has, by this time, been created in the obj
> directory, as it should.

There must be an old .d or .depend file in your obj dir or something
eroneously generated in the source directory.

I would completely remove $OBJDIR/external/bsd/dhcpcd and do a

cvs up -dPA -I \!

in src/external/bsd/dhcpcd, checking for any ? marks in the output.

Martin


dhcpcd build failure

2016-10-16 Thread Tom Ivar Helbekkmo
/usr/src/UPDATING says:

20161009:
a new version of dhcpcd has been imported with slightly changed
build infrastructure. When doing a build.sh -u this requires
pruning the external/bsd/dhcpcd objdir.

However, even with this pruning, the build fails:

--- dhcpcd-embedded.d ---
#create  dhcpcd/dhcpcd-embedded.d
CC=/usr/tools/bin/x86_64--netbsd-gcc /usr/tools/bin/nbmkdep -f 
dhcpcd-embedded.d.tmp  --   -std=gnu99--sysroot=/usr/arena/amd64 
-DHAVE_CONFIG_H -D_OPENBSD_SOURCE -DSMALL -DINET -DINET6 -DDHCP6 
-I/usr/src/external/bsd/dhcpcd/dist 
-I/usr/src/distrib/amd64/ramdisks/ramdisk/obj.amd64/dhcpcd  -D_FORTIFY_SOURCE=2 
/usr/src/external/bsd/dhcpcd/dist/dhcpcd-embedded.c &&  mv 
dhcpcd-embedded.d.tmp dhcpcd-embedded.d
x86_64--netbsd-gcc: error: /usr/src/external/bsd/dhcpcd/dist/dhcpcd-embedded.c: 
No such file or directory
x86_64--netbsd-gcc: fatal error: no input files
compilation terminated.
nbmkdep: compile failed.
*** [dhcpcd-embedded.d] Error code 1

The file in question has, by this time, been created in the obj
directory, as it should.

-tih
-- 
Elections cannot be allowed to change anything.  --Dr. Wolfgang Schäuble