cvs 2004-06-04

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
havner
Trader
Trader
Posts: 17
Joined: Fri Apr 30, 2004 1:14 pm

cvs 2004-06-04

Post by havner »

make[4]: *** No rule to make target `comm_ai.', needed by `libai.a'. Stop.
make[4]: Leaving directory `/usr/local/WINE/cdrecord/BUILD/vegastrike/src/cmd/ai'
make[3]: *** [all-recursive] Error 1
Regards Havner
http://livecd.pld-linux.org
GG: 2846839
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

gosh
try this
aclocal
autoheader
autoconf
automake -a --add-missing
autoconf
./configure --enable-debug --enable-ggdb3
make

which compiler are you using?
which distro?
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
havner
Trader
Trader
Posts: 17
Joined: Fri Apr 30, 2004 1:14 pm

Post by havner »

gosh
Don't consider me as an idiot please. I use linux for 7 years (pld linux developer)

try this
aclocal
autoheader
autoconf
automake -a --add-missing
autoconf

And what do you think I'm doing?
I compile VS since a long time the same way and I got this error for the first time. I could fix it by myself, but if this error has suddenly occured, i think that something is wrong in CVS.

which compiler are you using?
gcc version 3.3.3 (PLD Linux)
Regards Havner
http://livecd.pld-linux.org
GG: 2846839
Baerwulf
Star Pilot
Star Pilot
Posts: 5
Joined: Sun May 23, 2004 11:16 am

Post by Baerwulf »

I've been having the same problem.
It appears there are several problems

1. configure is not detecting the correct object file extension. (.o)

workaround:
After running the automake/autoconf tools I then edit the file config.status and change the line (line 517 in my config.status) that reads

Code: Select all

s,@OBJEXT@,,;t t
and add in the o extension. i.e.

Code: Select all

s,@OBJEXT@,o,;t t
then run ./config.status to rebuild the Makefiles.
this solves the error:

Code: Select all

make[4]: Entering directory   `/aux/home/baerwulf/vegastrike/src/cmd/ai'
make[4]: *** No rule to make target `comm_ai.', needed by `libai.a'.  Stop.[

2. after implementing the workaround make attempts to compile vegastrike but gcc 3.3.2 chokes with the following errors (Partial)

Code: Select all

In file included from ../../../src/gfx/vec.h:25,
                 from order.h:32,
                 from comm_ai.h:4,
                 from comm_ai.cpp:1:
../../../src/gfx/xvector.h: In function `Vector PolygonNormal(Vector, Vector,
   Vector)':
../../../src/gfx/xvector.h:160: error: invalid initialization of non-const
   reference of type 'Vector&' from a temporary of type 'Vector'
../../../src/gfx/xvector.h:139: error: in passing argument 1 of `void
   ScaledCrossProduct(Vector&, Vector&, Vector&)'
In file included from ../../../src/gfx/vec.h:37,
                 from order.h:32,
                 from comm_ai.h:4,
                 from comm_ai.cpp:1:
../../../src/gfx/xvector.h: In function `QVector PolygonNormal(QVector,
   QVector, QVector)':
../../../src/gfx/xvector.h:160: error: no matching function for call to `
   ScaledCrossProduct(QVector, QVector, QVector&)'
../../../src/gfx/xvector.h:139: error: candidates are: void
   ScaledCrossProduct(Vector&, Vector&, Vector&)
../../../src/gfx/xvector.h:139: error:                 void
   ScaledCrossProduct(QVector&, QVector&, QVector&)

followed by the following choke

Code: Select all

In file included from /usr/include/c++/3.3.2/cstring:49,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:65,
                 from /usr/include/c++/3.3.2/list:67,
                 from order.h:34,
                 from comm_ai.h:4,
                 from comm_ai.cpp:1:
/usr/include/c++/3.3.2/cstddef: At global scope:
/usr/include/c++/3.3.2/cstddef:53: error: syntax error before `unsigned'
In file included from /usr/include/c++/3.3.2/bits/stl_algobase.h:69,
                 from /usr/include/c++/3.3.2/list:67,
                 from order.h:34,
                 from comm_ai.h:4,
                 from comm_ai.cpp:1:
/usr/include/c++/3.3.2/new:82: error: syntax error before `unsigned'
/usr/include/c++/3.3.2/new:82: error: syntax error before `::' token
/usr/include/c++/3.3.2/new:82: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.3.2/new:83: error: syntax error before `unsigned'
/usr/include/c++/3.3.2/new:83: error: syntax error before `::' token
/usr/include/c++/3.3.2/new:83: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.3.2/new:86: error: syntax error before `unsigned'
/usr/include/c++/3.3.2/new:86: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.3.2/new:87: error: syntax error before `unsigned'
/usr/include/c++/3.3.2/new:87: error: `operator new' takes type `size_t' (`
   unsigned int') as first parameter
/usr/include/c++/3.3.2/new:92: error: syntax error before `unsigned'
/usr/include/c++/3.3.2/new:92: error: `operator new' takes type `size_t' (`

... ad nauseum ...

incubator
Hunter
Hunter
Posts: 76
Joined: Thu May 13, 2004 11:08 pm
Location: Gentoo

Post by incubator »

yup, i got that too :(
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

someone mucked with configure.in
I bet I haven't run autoconf built since this happened
I'll have to dig through the logs

it's under the impression you're using a broken compiler

here's the workaround

replace
#define const
with
//#define const

replace
#define size_t
with
//#define size_t

there's one other thing like that

now I gotta look to see who mucked it up and see if I can't restore to an older configure.in
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

type
cvs update -r1.157 configure.in

see if this fixes it
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
incubator
Hunter
Hunter
Posts: 76
Joined: Thu May 13, 2004 11:08 pm
Location: Gentoo

Post by incubator »

this seems to fix it.
It is compiling at the moment, and for now, it doesnt halt yet.
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

ok I'll revert and mail surfdargent

looks like this was an attempt to get the new Visual Studio command line (free) compiler working.

--Daniel

everyone who did the above please type cvs update -A configure.in
otherwise you won't get new revisions when we make them
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
Post Reply