Page 1 of 1

trouble compiling trunk on Ubuntu 11.10

Posted: Sun Dec 11, 2011 9:45 pm
by Colin
Hello,

Has anyone compiled successfully on Ubuntu 11.10? Everything seems to compile correctly but the build fails at the end with:

(a lot of stuff omitted ...)
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/colini/dev/exult/usecode'
Making all in compiler
make[3]: Entering directory `/home/colini/dev/exult/usecode/compiler'
/bin/bash ../../ylwrap uclex.ll .c uclex.cc -- /bin/bash /home/colini/dev/exult/missing --run flex
make[3]: *** [uclex.cc] Error 1
make[3]: Leaving directory `/home/colini/dev/exult/usecode/compiler'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/colini/dev/exult/usecode'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/colini/dev/exult'
make: *** [all] Error 2


I have flex 2.5.35 installed, tho it's not clear from the error there that flex is the problem.

Any ideas?

thanks,
Colin

Re: trouble compiling trunk on Ubuntu 11.10

Posted: Sun Dec 11, 2011 11:40 pm
by marzo
I have been compiling successfully in every version of Ubuntu since 7.04. Now: did you install flex before or after ./configure? If you installed it after, please reconfigure and try compiling again. For reference, the command used for flex in my system (11.10) is

Code: Select all

/bin/bash ../../ylwrap uclex.ll lex.yy.c uclex.cc -- flex
Moreover, if you are not going to use the usecode compiler, you can disable it by running ./configure with --disable-compiler (IIRC).

Re: trouble compiling trunk on Ubuntu 11.10

Posted: Mon Dec 12, 2011 2:12 am
by Colin
I probably installed flex after, since I was installing build tools as the build failed. I checked out trunk again, reran the build, and it worked.

Thanks for the quick response!

-- Colin