NetBSD-Users archive

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

Re: a distribution build error .



Fixed!
cat /etc/mk.conf
COPTS+= -march=pentium-m -O3


mod to
COPTS+= -march=pentium-m
Do not need -O3.
It is ok.
thanks.


ä 2010å04æ10æ 13:16, Titan Bao åé:
pc:
Thinkpad T61,
T7300 cpu
1G mem.



cd /usr/src
cvs up -Pd
./build.sh -O ../obj -T ../tools -U -u distribution






# compile libpthread/pthread.o
/usr/src/../tools/bin/i386--netbsdelf-gcc -O2 -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 -std=gnu99 -Werror
-march=pentium-m -O3 -Wno-cast-qual -I/usr/src/lib/libpthread/arch/i386
-I/usr/src/lib/libpthread -I/usr/src/../obj/lib/libpthread -D_LIBC
-D__LIBPTHREAD_SOURCE__ -I/usr/src/sys -I/usr/src/lib/libpthread/../libc
-nostdinc -isystem /usr/src/../obj/destdir.i386/usr/include -c
-Wno-stack-protector /usr/src/lib/libpthread/pthread.c -o pthread.o
*cc1: warnings being treated as errors
/usr/src/lib/libpthread/pthread.c: In function 'pthread__init':
/usr/src/lib/libpthread/pthread.c:1190: warning: 't' may be used
uninitialized in this function*

*** Failed target: pthread.o
*** Failed command: /usr/src/../tools/bin/i386--netbsdelf-gcc -O2 -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 -std=gnu99 -Werror -march=pentium-m -O3
-Wno-cast-qual -I/usr/src/lib/libpthread/arch/i386
-I/usr/src/lib/libpthread -I/usr/src/../obj/lib/libpthread -D_LIBC
-D__LIBPTHREAD_SOURCE__ -I/usr/src/sys -I/usr/src/lib/libpthread/../libc
-nostdinc -isystem /usr/src/../obj/destdir.i386/usr/include -c
-Wno-stack-protector /usr/src/lib/libpthread/pthread.c -o pthread.o
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libpthread



Home | Main Index | Thread Index | Old Index