trouble compiling trunk on Ubuntu 11.10

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Colin

trouble compiling trunk on Ubuntu 11.10

Post 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
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: trouble compiling trunk on Ubuntu 11.10

Post 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).
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Colin

Re: trouble compiling trunk on Ubuntu 11.10

Post 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
Locked