Subject: Another problem with stack protector changes
To: None <current-users@netbsd.org>
From: David Coppa <dcoppa@gmail.com>
List: current-users
Date: 11/09/2006 14:24:21
------=_Part_49214_28845026.1163078661390
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello all,

I'm (cross)compiling -current for my Cobalt Qube2. The command used is:

./build.sh -m cobalt -T /usr/src/cobalt_tools -U -D /usr/qube distribution

Build process fails on the new libssp code:

dependall ===> lib/libssp
# compile libssp/fgets_chk.ln
CC=/usr/src/cobalt_tools/bin/mipsel--netbsd-gcc
/usr/src/cobalt_tools/bin/mipsel--netbsd-lint -chapbxzFS -d
/usr/qube/usr/include -I/usr/src
/lib/libssp/ssp -i /usr/src/lib/libssp/fgets_chk.c
# compile libssp/fgets_chk.o
/usr/src/cobalt_tools/bin/mipsel--netbsd-gcc -O2 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-tradit
ional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra
-Wno-unused-parameter -std=gnu99 -Werror -I/usr/src/lib/libssp/
ssp -nostdinc -isystem /usr/qube/usr/include -c
/usr/src/lib/libssp/fgets_chk.c -o fgets_chk.o
In file included from /usr/src/lib/libssp/fgets_chk.c:42:
/usr/src/lib/libssp/ssp/stdio.h:52: error: format string argument not a
string type

*** Failed target: fgets_chk.o
*** Failed command: /usr/src/cobalt_tools/bin/mipsel--netbsd-gcc -O2 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign
-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -Werror -I/usr
/src/lib/libssp/ssp -nostdinc -isystem /usr/qube/usr/include -c
/usr/src/lib/libssp/fgets_chk.c -o fgets_chk.o
*** Error code 1

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

The build machine is:
NetBSD cubo 3.1 NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC 2006
builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC
i386

Any hints?

Regards,
David Coppa

------=_Part_49214_28845026.1163078661390
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello all,<br><br>I'm (cross)compiling -current for my Cobalt Qube2. The command used is:<br><br>./build.sh -m cobalt -T /usr/src/cobalt_tools -U -D /usr/qube distribution<br><br>Build process fails on the new libssp code: 
<br><br>dependall ===&gt; lib/libssp<br>#   compile  libssp/fgets_chk.ln<br>CC=/usr/src/cobalt_tools/bin/mipsel--netbsd-gcc /usr/src/cobalt_tools/bin/mipsel--netbsd-lint -chapbxzFS -d /usr/qube/usr/include  -I/usr/src<br>
/lib/libssp/ssp    -i /usr/src/lib/libssp/fgets_chk.c<br>#   compile  libssp/fgets_chk.o<br>/usr/src/cobalt_tools/bin/mipsel--netbsd-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-tradit
<br>ional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99  -Werror    -I/usr/src/lib/libssp/<br>ssp   -nostdinc -isystem /usr/qube/usr/include -c    /usr/src/lib/libssp/fgets_chk.c -o fgets_chk.o
<br>In file included from /usr/src/lib/libssp/fgets_chk.c:42:<br>/usr/src/lib/libssp/ssp/stdio.h:52: error: format string argument not a string type<br><br>*** Failed target:  fgets_chk.o<br>*** Failed command: /usr/src/cobalt_tools/bin/mipsel--netbsd-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign
<br>-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -std=gnu99 -Werror -I/usr<br>/src/lib/libssp/ssp -nostdinc -isystem /usr/qube/usr/include -c /usr/src/lib/libssp/fgets_chk.c -o fgets_chk.o
<br>*** Error code 1<br><br>Stop.<br>nbmake: stopped in /usr/src/lib/libssp<br><br>The build machine is:<br>NetBSD cubo 3.1 NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC 2006  builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
<br><br>Any hints?<br><br>Regards,<br>David Coppa<br><br>

------=_Part_49214_28845026.1163078661390--