Jump to content

Can't do premake with dev version on Fedora 40


SolarEagle
 Share

Recommended Posts

After updating from Fedora 39 to Fedora 40, when I do the usual stuff,

cd 0ad/
git pull
cd build/workspaces
./clean-workspaces.sh
./update-workspaces.sh --with-system-mozjs

I do get the following error (only the end of the code):

make : on entre dans le répertoire « /home/myusername/0ad/build/premake/premake5/build/gmake2.unix »
==== Building lua-lib (release) ====
==== Building zip-lib (release) ====
Creating obj/Release/lua-lib
lapi.c
Creating obj/Release/zip-lib
mkstemp.c
../../contrib/libzip/mkstemp.c: Dans la fonction « _zip_mkstemp »:
../../contrib/libzip/mkstemp.c:76:15: erreur: déclaration implicite de la fonction « getpid » [-Wimplicit-function-declaration]
   76 |         pid = getpid();
      |               ^~~~~~
make[1]: *** [zip-lib.make:303: obj/Release/zip-lib/mkstemp.o] Error 1
make: *** [Makefile:74: zip-lib] Error 2
make: *** Attente des tâches non terminées....
lbaselib.c
lbitlib.c
lcode.c
lcorolib.c
lctype.c
ldblib.c
ldebug.c
ldo.c
ldump.c
lfunc.c
lgc.c
linit.c
liolib.c
llex.c
lmathlib.c
lmem.c
loadlib.c
lobject.c
lopcodes.c
loslib.c
lparser.c
lstate.c
lstring.c
lstrlib.c
ltable.c
ltablib.c
ltm.c
lundump.c
lutf8lib.c
lvm.c
lzio.c
Linking lua-lib
make : on quitte le répertoire « /home/myusername/0ad/build/premake/premake5/build/gmake2.unix »
ERROR: Premake build failed

What happens, please?

Edited by SolarEagle
better title
Link to comment
Share on other sites

  • SolarEagle changed the title to Can't do premake with dev version on Fedora 40
  • 3 months later...

I also get the same error.  I had to install premake for Fedora 40 which installed premake 5.

Built using the following...

cd build/workspaces

./clean-workspaces.sh

./update-workspaces.sh --with-system-premake5 --with-system-mozjs --enable-atlas

This worked for me!!  Hope it helps.

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...