Subject: libcurses and CFLAGS
To: None <>
From: Zafer Aydogan <>
List: current-users
Date: 11/19/2007 11:03:26
hello list,

since a while I'm having problems building a release, if I'm using
CFLAGS=-march=i686 in mk.conf. Without march=i686 everything builds fine.

The error occurs in libcurses/acs:

/lfs/src/../tooldir/bin/nbmkdep -d -f .depend -s .o\ .po\ .so\
.ln acs.d add_wch.d add_wchstr.d addbytes.d addch.d addchnstr.d
addnstr.d addwstr.d attributes.d background.d
bell.d border.d box.d cchar.d clear.d clearok.d clrtobot.d clrtoeol.d
color.d copywin.d cr_put.d ctrace.d cur_
hash.d curs_set.d curses.d delch.d deleteln.d delwin.d echo_wchar.d
echochar.d erase.d flushok.d fullname.d ge
t_wch.d get_wstr.d getch.d getstr.d getyx.d id_subwins.d idcok.d
idlok.d in_wch.d in_wchstr.d inch.d inchstr.d
 initscr.d ins_wch.d ins_wstr.d insch.d insdelln.d insertln.d insstr.d
instr.d inwstr.d keyname.d keypad.d lea
veok.d line.d longname.d meta.d move.d mvwin.d newwin.d nodelay.d
notimeout.d overlay.d overwrite.d pause.d pr
intw.d putchar.d refresh.d resize.d scanw.d screen.d scroll.d
scrollok.d setterm.d standout.d termcap.d tgoto.
d timeout.d toucholap.d touchwin.d tputs.d tscroll.d tstp.d tty.d
unctrl.d underscore.d
#   compile  libcurses/acs.ln
/lfs/src/../tooldir/bin/i386--netbsdelf-lint -chapbxzFS -d /lfs
/src/../destdir/usr/include  -I/lfs/src/lib/libcurses
-I/lfs/src/lib/libterm -DCM_N -DCM_GT -DCM_B -DCM_D -DHA
VE_WCHAR    -i /lfs/src/lib/libcurses/acs.c
#   compile  libcurses/acs.o
/lfs/src/../tooldir/bin/i386--netbsdelf-gcc -march=i686 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpoint
er-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch
-Wshadow  -Werror  -Wuninitialized -Wstrict
-prototypes -Wmissing-prototypes   -I/lfs/src/lib/libcurses
-I/lfs/src/lib/libterm -DCM_N -DCM_GT -DCM_B -DCM_
D -DHAVE_WCHAR   -nostdinc -isystem /lfs/src/../destdir/usr/include -c
   /lfs/src/lib/libcurses/acs.c -o acs.
cc1: warnings being treated as errors
cc1: warning: -Wuninitialized is not supported without -O

*** Failed target:  acs.o
*** Failed command: /lfs/src/../tooldir/bin/i386--netbsdelf-gcc
-march=i686 -Wall -Wstrict-prototypes -Wmissin
g-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional
-Wreturn-type -Wswitch -Wshadow -Werror -Wunin
itialized -Wstrict-prototypes -Wmissing-prototypes
-I/lfs/src/lib/libcurses -I/lfs/src/lib/libterm -DCM_N -DCM
_GT -DCM_B -DCM_D -DHAVE_WCHAR -nostdinc -isystem
/lfs/src/../destdir/usr/include -c /lfs/src/lib/libcurses/ac
s.c -o acs.o
*** Error code 1

nbmake: stopped in /lfs/src/lib/libcurses

Any ideas ?