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
can not compile quickBMS 0.11 on manjaro using gcc 11.1.0 on manjaro
-
- Posts: 11
- Joined: Wed Mar 10, 2021 6:41 pm
-
- 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
It's the Makefile that on some platforms doesn't know when amiga and kraken (oodle) are required.
Fix, from:
to:
Fix, from:
Code: Select all
ifeq ($(filter-out %86, $(shell uname -m)),)
EXTRA_TARGETS = libs/amiga/amiga.s libs/powzix/*.cpp
CFLAGS += -msse2
endif
Code: Select all
EXTRA_TARGETS = libs/amiga/amiga.s libs/powzix/*.cpp
CFLAGS += -msse2
-
- 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
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?
https://paste.ee/p/w517R
also what is oodle?
-
- 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
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.
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.
-
- 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
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
/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
-
- 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
It's a warning, ignore it. Your quickbms executable has been successfully compiled.