NetBSD-Users archive

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

Re: NetBSD 7.0 i386 mkdep fails



On Sun, Jun 05, 2016 at 11:58:47AM +0530, Mayuresh wrote:
> On Sat, Jun 04, 2016 at 09:39:23PM +0000, coypu%SDF.ORG@localhost wrote:
> > Are you building i386 on amd64?
> 
> Sorry for a hasty previous reply. I am trying to build i386 on i386
> itself.

Further, following text snap should provide all the details:

# uname -a
NetBSD laptop 7.0 NetBSD 7.0 (GENERIC.201509250726Z) i386
# cd /usr/src/sys/arch/i386/conf/
# diff GENERIC MYKERNEL 
1201c1201
< ulpt* at uhub? port ? configuration ? interface ?
---
> # ulpt*       at uhub? port ? configuration ? interface ?
# config MYKERNEL 
Build directory is ../compile/MYKERNEL
Don't forget to run "make depend"

# cd ../compile/MYKERNEL/
# make depend
depending the kern library objects
depending the compat library objects
#    create  MYKERNEL/OsdSchedule.d
mkdep -f OsdSchedule.d --  -msoft-float -mno-mmx -mno-sse -mno-avx
-ffreestanding -fno-zero-initialized-in-bss  "-m64" -fstack-protector
-Wstack-protector   --param ssp-buffer-size=1  -fno-strict-aliasing
-fno-common     -std=gnu99   -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes
-Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare
-Di386 -I.  -I../../../../../common/include -I../../../../arch
-I../../../.. -nostdinc -DCHILD_MAX="1024"  -DOPEN_MAX="1024"
-DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99
-I../../../../lib/libkern/../../../common/lib/libc/quad
-I../../../../lib/libkern/../../../common/lib/libc/string
-I../../../../lib/libkern/../../../common/lib/libc/arch/i386/string
-D_FORTIFY_SOURCE=2 -I../../../../external/bsd/ipf
-I../../../../external/isc/atheros_hal/dist
-I../../../../external/isc/atheros_hal/ic
-I../../../../external/bsd/drm2/include
-I../../../../external/bsd/common/include
-I../../../../external/bsd/drm2/include
-I../../../../external/bsd/drm2/include/drm
-I../../../../external/bsd/drm2/dist
-I../../../../external/bsd/drm2/dist/include
-I../../../../external/bsd/drm2/dist/include/drm
-I../../../../external/bsd/drm2/dist/uapi
-I../../../../external/bsd/common/include -D__KERNEL__
-I../../../../../common/include -DCONFIG_AGP
-I../../../../external/bsd/drm2/dist/drm/i915
-I../../../../external/bsd/drm2/i915drm -DCONFIG_DRM_I915_FBDEV
-I../../../../external/bsd/drm2/dist/drm/radeon
-I../../../../external/bsd/drm2/include/radeon
-I../../../../external/bsd/drm2/radeon
-I../../../../external/bsd/acpica/dist/include
../../../../dev/acpi/acpica/OsdSchedule.c
cc1: sorry, unimplemented: 64-bit mode not compiled in
mkdep: compile failed.
*** Error code 1

Stop.
make: stopped in /usr/src/sys/arch/i386/compile/MYKERNEL

# which cc
/usr/bin/cc
# cc -v
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
Target: i486--netbsdelf
Configured with:
/usr/7/src/tools/gcc/../../external/gpl3/gcc/dist/configure
--target=i486--netbsdelf --enable-long-long --enable-threads
--with-bugurl=http://www.NetBSD.org/Misc/send-pr.html
--with-pkgversion='NetBSD nb2 20150115' --with-system-zlib
--enable-__cxa_atexit --enable-libstdcxx-threads --with-arch=i486
--with-tune=nocona --enable-libstdcxx-time=rt --enable-lto
--with-mpc-lib=/var/obj/mknative/i386/usr/7/src/external/lgpl3/mpc/lib/libmpc
--with-mpfr-lib=/var/obj/mknative/i386/usr/7/src/external/lgpl3/mpfr/lib/libmpfr
--with-gmp-lib=/var/obj/mknative/i386/usr/7/src/external/lgpl3/gmp/lib/libgmp
--with-mpc-include=/usr/7/src/external/lgpl3/mpc/dist/src
--with-mpfr-include=/usr/7/src/external/lgpl3/mpfr/dist/src
--with-gmp-include=/usr/7/src/external/lgpl3/gmp/lib/libgmp/arch/i386
--enable-tls --disable-multilib --disable-symvers --disable-libstdcxx-pch
--build=x86_64-unknown-netbsd6.0. --host=i486--netbsdelf
--with-sysroot=/var/obj/mknative/i386/usr/7/src/destdir.i386
Thread model: posix
gcc version 4.8.4 (nb2 20150115) 


Mayuresh.


Home | Main Index | Thread Index | Old Index