Port-sparc64 archive

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

Re: [7.99.20] Build error



On Aug 3,  2:48pm, joel.bertrand%systella.fr@localhost (=?ISO-8859-1?Q?BERTRAND_Jo=EBl?=) wrote:
-- Subject: Re: [7.99.20] Build error

| Christos Zoulas a écrit :
| > On Jul 20, 10:53pm, joel.bertrand%systella.fr@localhost (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) wrote:
| > -- Subject: Re: [7.99.20] Build error
| >
| > | christos%zoulas.com@localhost (Christos Zoulas) a écrit :
| > | > On Jul 20, 10:03pm, joel.bertrand%systella.fr@localhost (=?UTF-8?Q?BERTRAND_Jo=c3=abl?=) wrote:
| > | > -- Subject: Re: [7.99.20] Build error
| > | >
| > | > | > But where does that: /usr/src/tooldir.NetBSD-7.99.18-sparc64/bin
| > | >
| > | > Yes, but something points to it. Either /etc/mk.conf, or the environment.
| > | > Look for the "params" file in your $OBJDIR...
| > | >
| > | > christos
| > | >
| > |
| > | 	I always build NetBSD with :
| > | ./build.sh -U -x -O ../obj -T ../tools -N0 -j2 build
| >
| > I wonder what changed then... And how did you end up with this TOOLDIR.
| >
| > christos
| >
| 
| 	Some news.
| 
| 	I have deleted all my CVS tree and done a new checkout. All tools and 
| obj files have been deleted also.
| 
| 	Same errors even if I try to build NetBSD from a running 7.99.20.
| 
| 	I have seen that /usr/obj/tools/lex/sckel.c (generated when build 
| process tries to build nblex) contains :
| 
|    "#define FLEX_SCANNER",
|    "#define YY_FLEX_MAJOR_VERSION ",
|    "#define YY_FLEX_MINOR_VERSION ",
|    "#define YY_FLEX_SUBMINOR_VERSION ",
|    "#if YY_FLEX_SUBMINOR_VERSION > 0",
|    "#define FLEX_BETA",
|    "#endif",
| 
| 	Of course, all C source generated by this nblex only contain :
| 
| #define YY_FLEX_MAJOR_VERSION
| define YY_FLEX_MINOR_VERSION
| #define YY_FLEX_SUBMINOR_VERSION
| #if YY_FLEX_SUBMINOR_VERSION > 0
| 
| that is not good as YY_FLEX_SUBMINOR_VERSION remains undefined.
| 
| 	skel.c is created by :
| skel.c: flex.skl mkskel.sh flexint.h tables_shared.h
|          ${TOOL_SED} -e 's/m4_/m4postproc_/g' -e 's/m4preproc_/m4_/g' \
|              ${IDIST}/flex.skl | ${TOOL_M4} -I${IDIST} -P \
|              -DFLEX_MAJOR_VERSION=`` \
|              -DFLEX_MINOR_VERSION=`echo ${VERSION} | cut -f 2 -d .` \
|              -DFLEX_SUBMINOR_VERSION=`echo ${VERSION} | cut -f 3 -d .` | \
|              ${TOOL_SED} -e 's/m4postproc_/m4_/g' | \
|              ${HOST_SH} ${IDIST}/mkskel.sh  > ${.TARGET}
| 
| (from /usr/src/external/bsd/flex/bin/Makefile)
| 
| 	If I understand, flex.skl waits for FLEX_MAJOR_VERSION, 
| FLEX_MINOR_VERSION and FLEX_SUBMINOR_VERSION to set its own defines. 
| VERSION is defined in /usr/src/external/bsd/flex/dist/Makefile but not 
| in /usr/src/external/bsd/flex/bin/Makefile.
| 
| 	I have added VERSION=2.5.39 to /usr/src/external/bsd/flex/bin/Makefile 
| but it doesn't solve this issue.

Yes, VERSION is set in:

/usr/src/external/bsd/flex/Makefile.inc

Try ktrace -i the make process in the flex tools directory and see what
files it opens (kdump | grep NAMI).

christos


Home | Main Index | Thread Index | Old Index