Subject: Re: lexx/cc1.lo doesn't build
To: Torsten Harenberg <harenberg@physik.uni-wuppertal.de>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: current-users
Date: 09/19/2004 15:24:29
Torsten Harenberg wrote:
> Dear all,
> 
> I cannot get rid of the problem mentioned in
> 
> http://mail-index.netbsd.org/current-users/2004/09/16/0009.html

Are you using MAKEOBJDIRPREFIX? I switched over to build.sh -O
and it builds for me fine now.

Jaromir
 
> and answered in
> 
> http://mail-index.netbsd.org/current-users/2004/09/16/0015.html
> 
> I continuesly get the same error over and over again, allthough I 
> allready deleted the complete /usr/src and re-fetched it from cvs. I try 
> to build on an alpha, cvs co is just a couple of minutes ago.
> 
> Here's what I did:
> 
> bash-2.05b# cd /usr
> bash-2.05b# rm -rf src
> bash-2.05b# rm -rf alpabuild && touch alphabuild
> bash-2.05b# export CVSROOT=:pserver:anoncvs@anoncvs.netbsd.org:/cvsroot
> bash-2.05b# cvs login
> [...]
> bash-2.05b# cvs -q co -PA src
> [...]
> 
> bash-2.05b# cd /usr/src
> bash-2.05b# ./build.sh -T /usr/src/alphatools  -D /usr/alphabuild tools
> 
> [...]
> 
> #    create  lex/skel.d
> /usr/src/alphatools/bin/nbhost-mkdep -f skel.d -- 
> -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include 
> -I/usr/src/tools/lex/../compat -DHAVE_NBTOOL_CONFIG_H=1 
> -D_FILE_OFFSET_BITS=64  -I. -I/usr/src/tools/lex/../../usr.bin/lex  skel.c
> In file included from /usr/src/tools/compat/obj/config.h:114,
>                   from /usr/src/usr.bin/lex/flexdef.h:34,
>                   from skel.c:3:
> /usr/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* 
> to be defined.
> #    create  lex/sym.d
> /usr/src/alphatools/bin/nbhost-mkdep -f sym.d -- 
> -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include 
> -I/usr/src/tools/lex/../compat -DHAVE_NBTOOL_CONFIG_H=1 
> -D_FILE_OFFSET_BITS=64  -I. -I/usr/src/tools/lex/../../usr.bin/lex 
> /usr/src/tools/lex/../../usr.bin/lex/sym.c
> In file included from /usr/src/tools/compat/obj/config.h:114,
>                   from /usr/src/usr.bin/lex/flexdef.h:34,
>                   from /usr/src/usr.bin/lex/sym.c:31:
> /usr/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* 
> to be defined.
> #    create  lex/tblcmp.d
> /usr/src/alphatools/bin/nbhost-mkdep -f tblcmp.d -- 
> -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include 
> -I/usr/src/tools/lex/../compat -DHAVE_NBTOOL_CONFIG_H=1 
> -D_FILE_OFFSET_BITS=64  -I. -I/usr/src/tools/lex/../../usr.bin/lex 
> /usr/src/tools/lex/../../usr.bin/lex/tblcmp.c
> In file included from /usr/src/tools/compat/obj/config.h:114,
>                   from /usr/src/usr.bin/lex/flexdef.h:34,
>                   from /usr/src/usr.bin/lex/tblcmp.c:31:
> /usr/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* 
> to be defined.
> #    create  lex/yylex.d
> /usr/src/alphatools/bin/nbhost-mkdep -f yylex.d -- 
> -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include 
> -I/usr/src/tools/lex/../compat -DHAVE_NBTOOL_CONFIG_H=1 
> -D_FILE_OFFSET_BITS=64  -I. -I/usr/src/tools/lex/../../usr.bin/lex 
> /usr/src/tools/lex/../../usr.bin/lex/yylex.c
> In file included from /usr/src/tools/compat/obj/config.h:114,
>                   from /usr/src/usr.bin/lex/flexdef.h:34,
>                   from /usr/src/usr.bin/lex/yylex.c:32:
> /usr/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* 
> to be defined.
> #    create  lex/.depend
> rm -f .depend
> /usr/src/alphatools/bin/nbhost-mkdep -d -f .depend -s .lo\ .ln ccl.d 
> dfa.d ecs.d gen.d main.d misc.d nfa.d parse.d scan.d skel.d sym.d 
> tblcmp.d yylex.d
> #   compile  lex/ccl.lo
> cc -O -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include 
> -I/usr/src/tools/lex/../compat -DHAVE_NBTOOL_CONFIG_H=1 
> -D_FILE_OFFSET_BITS=64  -I. -I/usr/src/tools/lex/../../usr.bin/lex -c -o 
> ccl.lo.o    /usr/src/usr.bin/lex/ccl.c
> In file included from /usr/src/tools/compat/obj/config.h:114,
>                   from /usr/src/usr.bin/lex/flexdef.h:34,
>                   from /usr/src/usr.bin/lex/ccl.c:31:
> /usr/src/tools/compat/compat_defs.h:66:2: #error _NETBSD_SOURCE is *not* 
> to be defined.
> In file included from /usr/src/tools/compat/obj/config.h:114,
>                   from /usr/src/usr.bin/lex/flexdef.h:34,
>                   from /usr/src/usr.bin/lex/ccl.c:31:
> /usr/src/tools/compat/compat_defs.h:143: warning: redefinition of `u_char'
> /usr/include/sys/types.h:101: warning: `u_char' previously declared here
> /usr/src/tools/compat/compat_defs.h:147: warning: redefinition of `u_int'
> /usr/include/sys/types.h:103: warning: `u_int' previously declared here
> /usr/src/tools/compat/compat_defs.h:151: warning: redefinition of `u_short'
> /usr/include/sys/types.h:102: warning: `u_short' previously declared here
> 
> *** Failed target:  ccl.lo
> *** Failed command: cc -O -I/usr/src/tools/compat/obj 
> -I/usr/src/tools/compat/obj/include -I/usr/src/tools/lex/../compat 
> -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I. 
> -I/usr/src/tools/lex/../../usr.bin/lex -c -o ccl.lo.o 
> /usr/src/usr.bin/lex/ccl.c
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/src/tools/lex
> 
> *** Failed target:  dependall
> *** Failed command: cd /usr/src/tools/lex; 
> /usr/src/alphatools/bin/nbmake realall
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/src/tools/lex
> 
> *** Failed target:  dependall-lex
> *** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; 
> shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; 
> real="/usr/src/tools" ;; *) this="${dir}/"; real="/usr/src/tools/${dir}" 
> ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: 
> $@)}"; cd "${real}" && /usr/src/alphatools/bin/nbmake 
> _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget lex dependall
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/src/tools
> 
> ERROR: Failed to make tools
> *** BUILD ABORTED ***
> bash-2.05b#
> 
> I also tried some "make clean" and "make distclean" allready (in 
> /usr/src and in /usr/src/tools/lex), but I'm still running into the same 
> problem.
> 
> Maybe someone can point me what I do wrong here?
> 
> Thanks,
> 
>     Torsten
> 
> -- 
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> <>                                                              <>
> <> Torsten Harenberg         harenberg@physik.uni-wuppertal.de  <>
> <> Bergische Universitaet                                       <>
> <> FB C - Physik             Tel.: +49 (0)202 439-3521          <>
> <> Gaussstr. 20              Fax : +49 (0)202 439-2811          <>
> <> 42097 Wuppertal                                              <>
> <>                                                              <>
> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
> 

-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you        -=-
-=- sometimes levitate or glow.   Do not let this distract you.''   -=-