Project

General

Profile

Actions

Bug #1987

closed

buildworld fails

Added by steve almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I just did a git pull and buildworld - which failed early (a few seconds) with:

cc -O -pipe -march=pentiumpro -DSHELL -I. -I/usr/src/bin/sh -DNO_HISTORY -std=gnu99 -Wsystem-headers -Wall -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wold-style-definition -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/bin/sh/eval.c
/usr/src/bin/sh/eval.c: In function 'safe_builtin':
/usr/src/bin/sh/eval.c:656: error: 'KILLCMD' undeclared (first use in this function)
/usr/src/bin/sh/eval.c:656: error: (Each undeclared identifier is reported only once
/usr/src/bin/sh/eval.c:656: error: for each function it appears in.)
/usr/src/bin/sh/eval.c: In function 'evalcommand':
/usr/src/bin/sh/eval.c:928: warning: implicit declaration of function 'reffunc'
/usr/src/bin/sh/eval.c:928: warning: nested extern declaration of 'reffunc'
/usr/src/bin/sh/eval.c:935: warning: implicit declaration of function 'unreffunc'
/usr/src/bin/sh/eval.c:935: warning: nested extern declaration of 'unreffunc'
/usr/src/bin/sh/eval.c:950: warning: implicit declaration of function 'getfuncnode'
/usr/src/bin/sh/eval.c:950: warning: nested extern declaration of 'getfuncnode'
/usr/src/bin/sh/eval.c:950: warning: passing argument 1 of 'evaltree' makes pointer from integer without a cast
/usr/src/bin/sh/eval.c:193: note: expected 'union node *' but argument is of type 'int'
/usr/src/bin/sh/eval.c:952: warning: passing argument 1 of 'evaltree' makes pointer from integer without a cast
/usr/src/bin/sh/eval.c:193: note: expected 'union node *' but argument is of type 'int'

Actions #1

Updated by herrgard almost 14 years ago

13 feb 2011 kl. 10.11 skrev Steve O'Hara-Smith:

Hi,

I just did a git pull and buildworld - which failed early (a few seconds) with:

cc -O -pipe -march=pentiumpro -DSHELL -I. -I/usr/src/bin/sh -DNO_HISTORY -std=gnu99 -Wsystem-headers -Wall -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wold-style-definition -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/bin/sh/eval.c
/usr/src/bin/sh/eval.c: In function 'safe_builtin':
/usr/src/bin/sh/eval.c:656: error: 'KILLCMD' undeclared (first use in this function)
/usr/src/bin/sh/eval.c:656: error: (Each undeclared identifier is reported only once
/usr/src/bin/sh/eval.c:656: error: for each function it appears in.)
/usr/src/bin/sh/eval.c: In function 'evalcommand':
/usr/src/bin/sh/eval.c:928: warning: implicit declaration of function 'reffunc'
/usr/src/bin/sh/eval.c:928: warning: nested extern declaration of 'reffunc'
/usr/src/bin/sh/eval.c:935: warning: implicit declaration of function 'unreffunc'
/usr/src/bin/sh/eval.c:935: warning: nested extern declaration of 'unreffunc'
/usr/src/bin/sh/eval.c:950: warning: implicit declaration of function 'getfuncnode'
/usr/src/bin/sh/eval.c:950: warning: nested extern declaration of 'getfuncnode'
/usr/src/bin/sh/eval.c:950: warning: passing argument 1 of 'evaltree' makes pointer from integer without a cast
/usr/src/bin/sh/eval.c:193: note: expected 'union node *' but argument is of type 'int'
/usr/src/bin/sh/eval.c:952: warning: passing argument 1 of 'evaltree' makes pointer from integer without a cast
/usr/src/bin/sh/eval.c:193: note: expected 'union node *' but argument is of type 'int'

Hm, it works for me. What commit are you on?

Max

Actions #2

Updated by steve almost 14 years ago

On Sun, 13 Feb 2011 13:17:31 +0100
Max Herrgard <> wrote:

13 feb 2011 kl. 10.11 skrev Steve O'Hara-Smith:

Hi,

I just did a git pull and buildworld - which failed early (a
few seconds) with:

cc -O -pipe -march=pentiumpro -DSHELL -I. -I/usr/src/bin/sh
-DNO_HISTORY -std=gnu99 -Wsystem-headers -Wall -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wold-style-definition -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
-c /usr/src/bin/sh/eval.c /usr/src/bin/sh/eval.c: In function
'safe_builtin': /usr/src/bin/sh/eval.c:656: error: 'KILLCMD' undeclared
(first use in this function) /usr/src/bin/sh/eval.c:656: error: (Each
undeclared identifier is reported only once /usr/src/bin/sh/eval.c:656:
error: for each function it appears in.) /usr/src/bin/sh/eval.c: In
function 'evalcommand': /usr/src/bin/sh/eval.c:928: warning: implicit
declaration of function 'reffunc' /usr/src/bin/sh/eval.c:928: warning:
nested extern declaration of 'reffunc' /usr/src/bin/sh/eval.c:935:
warning: implicit declaration of function
'unreffunc' /usr/src/bin/sh/eval.c:935: warning: nested extern
declaration of 'unreffunc' /usr/src/bin/sh/eval.c:950: warning:
implicit declaration of function
'getfuncnode' /usr/src/bin/sh/eval.c:950: warning: nested extern
declaration of 'getfuncnode' /usr/src/bin/sh/eval.c:950: warning:
passing argument 1 of 'evaltree' makes pointer from integer without a
cast /usr/src/bin/sh/eval.c:193: note: expected 'union node *' but
argument is of type 'int' /usr/src/bin/sh/eval.c:952: warning: passing
argument 1 of 'evaltree' makes pointer from integer without a
cast /usr/src/bin/sh/eval.c:193: note: expected 'union node *' but
argument is of type 'int'

Hm, it works for me. What commit are you on?

It took me a few minutes to find out how to get it -

  1. git branch -v --no-abbrev
    • master f59607061ed7edac298803ac1516e2a6dd165cc8
Actions #3

Updated by thomas.nikolajsen almost 14 years ago

This is fresh;
which build options do you use?
(/etc/make.conf or the like)

buildworld also works here (both i386 & x86_64).

-thomas
PS: 'git log' also show commit ids
-thomas
Actions #4

Updated by steve almost 14 years ago

On Sun, 13 Feb 2011 14:40:34 +0000
"Thomas Nikolajsen \(via DragonFly issue tracker\)"
<> wrote:

Thomas Nikolajsen <> added the comment:

This is fresh;

Yep that's what git pull claims too.

which build options do you use?
(/etc/make.conf or the like)

There's nothing of note in there:

KERNCONF=DF1
X_WINDOW_SYSTEM=modular
GROFF_PAPER_SIZE=A4

Actions #5

Updated by y0n3t4n1 almost 14 years ago

On Sun, Feb 13, 2011 at 09:11:36AM +0000, Steve O'Hara-Smith wrote:

Hi,

I just did a git pull and buildworld - which failed early (a few seconds) with:

cc -O -pipe -march=pentiumpro -DSHELL -I. -I/usr/src/bin/sh -DNO_HISTORY -std=gnu99 -Wsystem-headers -Wall -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wold-style-definition -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c /usr/src/bin/sh/eval.c
/usr/src/bin/sh/eval.c: In function 'safe_builtin':
/usr/src/bin/sh/eval.c:656: error: 'KILLCMD' undeclared (first use in this function)

The `KILLCMD' is defined in builtins.c which is generated by `make depend,'
so it's likely that you have stale files left somewhere under
$MAKEOBJDIRPREFIX (which defaults to /usr/obj), or under /usr/src/bin/sh.

Try this command to look for any local modifications or unmanaged files
$ git status

and this one for any ignored files which may be confusing the buildworld.
$ git clean -nx

Replacing -n flag above with -f removes such files for you, but be very
careful not to remove important files.
Alternatively you can move the Git repository to an empty directory and
checkout a clean copy of the source tree there (you can remove src.bak later):
$ cd /usr
$ mv src src.bak
$ mkdir src
$ mv src.bak/.git src/
$ cd src
$ git checkout . # note the dot at the end; it's not a dust

Now that you've made sure that the source tree is clean, remove /usr/obj
(or whichever directory pointed to by $MAKEOBJDIRPREFIX) and start over.

(well, running `make cleandir' twice should generally cleans up ${.OBJDIR}
and generated files in the current directory, but doing it under /usr/src
may take long time...)

Cheers.

Actions #6

Updated by steve almost 14 years ago

On Mon, 14 Feb 2011 04:40:38 +0000
"YONETANI Tomokazu \(via DragonFly issue tracker\)"
<> wrote:

Now that you've made sure that the source tree is clean, remove /usr/obj
(or whichever directory pointed to by $MAKEOBJDIRPREFIX) and start over.

That did it - thanks and sorry for the noise.

Actions

Also available in: Atom PDF