Subject: Re: libcurses and CFLAGS
To: Zafer Aydogan <>
From: Johnny Billquist <>
List: current-users
Date: 11/19/2007 13:31:49
When you say "without march=i686", do you mean that you set CFLAGS to an
empty value, or that you don't set CFLAGS at all?

However, my first suggestion would be to just add "-O2" to your CFLAGS
as well.


mån 2007-11-19 klockan 11:03 +0100 skrev Zafer Aydogan:
> 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:
> CC=/lfs/src/../tooldir/bin/i386--netbsdelf-gcc
> /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
> CC=/lfs/src/../tooldir/bin/i386--netbsdelf-gcc
> /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.
> o
> 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
> Stop.
> nbmake: stopped in /lfs/src/lib/libcurses
> Any ideas ?
> Zafer.