NetBSD-Users archive

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

Re: NetBSD 7.0 i386 mkdep fails



    Date:        Sun, 5 Jun 2016 12:18:14 +0530
    From:        Mayuresh <mayuresh%acm.org@localhost>
    Message-ID:  <20160605064814.GA15832%warunjikardental.com@localhost>

  | mkdep -f OsdSchedule.d --  -msoft-float -mno-mmx -mno-sse -mno-avx
  | -ffreestanding -fno-zero-initialized-in-bss  "-m64" -fstack-protector

That looks like the cause - do you have -m64 in COPTS (in the environment,
or in /etc/mk.conf or anywhere else) ?

The last time I compiled NetBSD 7 (7.0.1 actually) for i386, this is what
I got for one of my local kernels ...

#    create  VBOX32/OsdSchedule.d
CC=/usr/obj/7/tools/bin/i486--netbsdelf-gcc /usr/obj/7/tools/bin/nbmkdep -f OsdS
chedule.d --  -msoft-float -mno-mmx -mno-sse -mno-avx -ffreestanding -fno-zero-i
nitialized-in-bss  -O2 -fno-omit-frame-pointer -fstack-protector -Wstack-protect
or   --param ssp-buffer-size=1 [....]

(and then later)

#   compile  VBOX32/OsdSchedule.o
/usr/obj/7/tools/bin/i486--netbsdelf-gcc -msoft-float -mno-mmx -mno-sse -mno-avx
 -ffreestanding -fno-zero-initialized-in-bss -O2 -fno-omit-frame-pointer -fstack
-protector -Wstack-protector  [....]

For a native build the CC=... stuff isn't necessary, and nbmkdep is just mkdep
but the rest of it should be largely the same.

That -m64 in yours is where mine builds with -O2 - it seems very likely that
something in your local setup is what is causing the problem.

You might want to try

	env -i MAKECONF=/dev/null make depend

and see what happens - if it works that way, you know it is something
in either the environment, or /etc/mk.conf - you can try with just one of
the -i and MAKECONF= args to env to see which one.

kre



Home | Main Index | Thread Index | Old Index