Comments (7)
Hm, after fixing that problem, there is another one:
/bin/sh: rgbasm: command not found
from abendbrot.
After adding rgbasm
by installing rgbds
the ebuild does still.
Gentoo is using the system CC and if gcc is choosen, there are other build errors.
x86_64-pc-linux-gnu-gcc -march=native -pipe -Werror -Wall -std=gnu11 -D_GNU_SOURCE -DVERSION="0.9" -I. -I/usr/include/SDL2 -D_USE_MATH_DEFINES -Wno-deprecated-declarations -g -DGB_INTERNAL -c Core/display.c -o build/obj/Core/display.c.o
x86_64-pc-linux-gnu-gcc -march=native -pipe -Werror -Wall -std=gnu11 -D_GNU_SOURCE -DVERSION="0.9" -I. -I/usr/include/SDL2 -D_USE_MATH_DEFINES -Wno-deprecated-declarations -g -DGB_INTERNAL -c Core/gb.c -o build/obj/Core/gb.c.o
Core/debugger.c: In function ‘read_lvalue’:
Core/debugger.c:222:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
Core/gb.c: In function ‘GB_is_inited’:
Core/gb.c:421:25: error: multi-character character constant [-Werror=multichar]
return gb->magic == 'SAME';
^~~~~~
Core/gb.c: In function ‘GB_reset’:
Core/gb.c:493:28: error: multi-character character constant [-Werror=multichar]
gb->magic = (uintptr_t)'SAME';
^~~~~~
x86_64-pc-linux-gnu-gcc -march=native -pipe -Werror -Wall -std=gnu11 -D_GNU_SOURCE -DVERSION="0.9" -I. -I/usr/include/SDL2 -D_USE_MATH_DEFINES -Wno-deprecated-declarations -g -DGB_INTERNAL -c Core/joypad.c -o build/obj/Core/joypad.c.o
cc1: all warnings being treated as errors
make: *** [Makefile:136: build/obj/Core/gb.c.o] Error 1
make: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make: *** [Makefile:135: build/obj/Core/debugger.c.o] Error 1
The build errors above could be removed by forcing the clang compiler (as used in the upstream Makefile).
After that (fix SDL include folder, force clang usage, add rgbasm executable) there are still other errors:
clang -march=native -pipe -Werror -Wall -std=gnu11 -D_GNU_SOURCE -DVERSION="0.9" -I. -I/usr/include/SDL2 -D_USE_MATH_DEFINES -Wno-deprecated-declarations -g -c SDL/utils.c -o build/obj/SDL/utils.c.o
cd BootROMs && rgbasm -o ../build/bin/BootROMs/dmg_boot.bin.tmp ../BootROMs/dmg_boot.asm
rgblink -o build/bin/BootROMs/dmg_boot.bin.tmp2 build/bin/BootROMs/dmg_boot.bin.tmp
head -c 256 build/bin/BootROMs/dmg_boot.bin.tmp2 > build/bin/BootROMs/dmg_boot.bin
cd BootROMs && rgbasm -o ../build/bin/BootROMs/cgb_boot.bin.tmp ../BootROMs/cgb_boot.asm
rgblink -o build/bin/BootROMs/cgb_boot.bin.tmp2 build/bin/BootROMs/cgb_boot.bin.tmp
head -c 2304 build/bin/BootROMs/cgb_boot.bin.tmp2 > build/bin/BootROMs/cgb_boot.bin
cp -f LICENSE build/bin/SDL/LICENSE
cp -f Misc/registers.sym build/bin/SDL/registers.sym
cp: cannot create regular file 'build/bin/SDL/LICENSE': No such file or directory
make: *** [Makefile:265: build/bin/SDL/LICENSE] Error 1
make: *** Waiting for unfinished jobs....
cp: cannot create regular file 'build/bin/SDL/registers.sym': No such file or directory
make: *** [Makefile:268: build/bin/SDL/registers.sym] Error 1
from abendbrot.
Disabling the parallel build (force MAKEOPTS="-j1"
) solved the problem above, too.
compile phase succeeds now.
Still an error on install phase...
from abendbrot.
Hi,
thanks for the report.
It looks like this package needs more love. I'm sorry for not testing some packages better. I guess I have to import rgbds to abendbrot to make this one work. Can you post the install failure too?
I remember copying all sdl includes to the location the failing ebuilds wanted them to be two months ago and hoped it gets fixed in the libsdl ebuild, I guess it didn't.
I will only be able to seriously fix this when the christmas and new years bookings are over. I think middle january is a realistic prediction for me having more time to dedicate to this. I can still accept PR and some one-liner fixes, though.
from abendbrot.
Thank you @stefan-gr for all your work.
I masked that version and stay at the one that has been already merged for the moment.
I don't think I can create a PR at the moment because of lack of time.
Let's see if this changes in January. 😉
from abendbrot.
Try to compile this again. It should compile now.
from abendbrot.
I think things should be in order now, thanks everyone for reporting this.
from abendbrot.
Related Issues (20)
- games-emulation/retroarch-1.7.2.ebuild version bump. HOT 3
- RetroArch ARM64 support HOT 15
- retroarch-1.6.9[qt5] compile error HOT 1
- media-sound/yarock[qt5] cannot be installed with media-libs/phonon-4.10.1
- Microsoft is acquiring GitHub! Time to move to Gitlab!
- parallel-n64-libretro build error
- Add retroarch and libretro to Gentoo HOT 26
- Unnecessary dependencies on games-emulation/libretro-info HOT 2
- games-emulation/dolphin-libretro-9999-r2 fails to build HOT 1
- retroarch: Fetch failed for 'games-emulation/fbalpha-libretro HOT 2
- games-emulation/snes9x-libretro license file moved
- * Fetch failed for 'games-emulation/fbalpha-libretro-1.0_pre20170927' HOT 1
- easyrpg-editor dropped qmake build support
- retroarch-1.6.7 fails when building against ffmpeg 4 HOT 1
- games-emulation/retroarch-9999-r3 all patches broken HOT 1
- games-emulation/bsnes-libretro-cplusplus98: build failure: snes/Makefile:48: *** Recursive variable 't' references itself (eventually). Stop.
- games-emulation/melonds-libretro,fbalpha-libretro,games-emulation/citra-libretro: emerge returns 404 HOT 1
- desmume-libretro-1.0_pre20183011: segfaults
- desmume-libretro-9999: compilation failure
- retroarch-1.6.7 compile fails with missing -lpthread dep HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abendbrot.