NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
question; how to build individual userland programs on NetBSD 7-RC3 ?
Hello
I have been away from BSD for a while, I've played around with installing different flavors as a guest under KVM. I downloaded both the source and binary (amd64) copies of 7.0-RC3 and installed it in a virtual machine.
I tried compiling programs under /usr/src (after unpacking the source files, of course) for the sake of kicking the tires, but didn't have a lot of luck. Trying to compile /usr/src/usr.bin/tr resulted in this:
===
beasty# cd ~
beasty# pwd
/root
beasty# cd /usr/src/usr.bin/tr
beasty# make
# compile tr/str.o
/usr/src/tooldir.NetBSD-7.0_RC3-amd64/bin/x86_64--netbsd-gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/ -c str.c
sh: /usr/src/tooldir.NetBSD-7.0_RC3-amd64/bin/x86_64--netbsd-gcc: not found
*** Error code 127
Stop.
make: stopped in /usr/src/usr.bin/tr
beasty# make tr
# compile tr/str.o
/usr/src/tooldir.NetBSD-7.0_RC3-amd64/bin/x86_64--netbsd-gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/ -c str.c
sh: /usr/src/tooldir.NetBSD-7.0_RC3-amd64/bin/x86_64--netbsd-gcc: not found
*** Error code 127
Stop.
make: stopped in /usr/src/usr.bin/tr
beasty# uname -a
NetBSD beasty 7.0_RC3 NetBSD 7.0_RC3 (GENERIC.201508110747Z) amd64
beasty# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
Target: x86_64--netbsd
Configured with: /usr/7/src/tools/gcc/../../external/gpl3/gcc/dist/configure --target=x86_64--netbsd --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-tune=nocona --enable-libstdcxx-time=rt --enable-lto --with-mpc-lib=/var/obj/mknative/amd64-x86_64/usr/7/src/external/lgpl3/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/amd64-x86_64/usr/7/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative/amd64-x86_64/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/x86_64 --enable-tls --disable-multilib --disable-symvers --disable-libstdcxx-pch --build=x86_64-unknown-netbsd6.0. --host=x86_64--netbsd
--with-sysroot=/var/obj/mknative/amd64-x86_64/usr/7/src/destdir.amd64
Thread model: posix
gcc version 4.8.4 (nb2 20150115)
====
It looks like what is going on, is that the compile tries to find a tools directory and bombs because it's neither running under /usr/src/build.sh nor being pointed to a tools directory created by /usr/src/build.sh.
Can someone explain to me what the process is to build userland tools individually?
Thanks in advance!
Home |
Main Index |
Thread Index |
Old Index