can not compile quickBMS 0.11 on manjaro using gcc 11.1.0 on manjaro

Doubts, help and support about QuickBMS and other game research tools
silverhikari
Posts: 11
Joined: Wed Mar 10, 2021 6:41 pm

can not compile quickBMS 0.11 on manjaro using gcc 11.1.0 on manjaro

Post by silverhikari »

when trying to compile quickbms from source, several errors occur when using the latest stable gcc provided by the repos
error logs with errors: https://paste.ee/p/yVcim
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: can not compile quickBMS 0.11 on manjaro using gcc 11.1.0 on manjaro

Post by aluigi »

It's the Makefile that on some platforms doesn't know when amiga and kraken (oodle) are required.
Fix, from:

Code: Select all

ifeq ($(filter-out %86, $(shell uname -m)),)
EXTRA_TARGETS   = libs/amiga/amiga.s libs/powzix/*.cpp
CFLAGS   += -msse2
endif
to:

Code: Select all

EXTRA_TARGETS   = libs/amiga/amiga.s libs/powzix/*.cpp
CFLAGS   += -msse2
silverhikari
Posts: 11
Joined: Wed Mar 10, 2021 6:41 pm

Re: can not compile quickBMS 0.11 on manjaro using gcc 11.1.0 on manjaro

Post by silverhikari »

i have made the changes to makefile as you said(the platform is x86_64 incase that helps) but a get a new set of errors
https://paste.ee/p/w517R
also what is oodle?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: can not compile quickBMS 0.11 on manjaro using gcc 11.1.0 on manjaro

Post by aluigi »

That's strange.
One fix may be removing the whole _rotl function from kraken.cpp.
Not sure why it complains about KrakenHeader since I don't see anything wrong.
silverhikari
Posts: 11
Joined: Wed Mar 10, 2021 6:41 pm

Re: can not compile quickBMS 0.11 on manjaro using gcc 11.1.0 on manjaro

Post by silverhikari »

well after removeing all mentions of _rotl in kraken.cpp i have rerun make and i now get this error( since the error is so small i will put it in this post)

/usr/bin/ld: /tmp/ccmZcPoS.o: in function `os_tmpname':
loslib.c:(.text+0x227): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: /tmp/ccXRo5dJ.o: warning: relocation in read-only section `.text'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: can not compile quickBMS 0.11 on manjaro using gcc 11.1.0 on manjaro

Post by aluigi »

It's a warning, ignore it. Your quickbms executable has been successfully compiled.