Code Monkey home page Code Monkey logo

Comments (7)

maggu2810 avatar maggu2810 commented on September 18, 2024

Hm, after fixing that problem, there is another one:

/bin/sh: rgbasm: command not found

from abendbrot.

maggu2810 avatar maggu2810 commented on September 18, 2024

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.

maggu2810 avatar maggu2810 commented on September 18, 2024

Disabling the parallel build (force MAKEOPTS="-j1") solved the problem above, too.
compile phase succeeds now.

Still an error on install phase...

from abendbrot.

stefan-gr avatar stefan-gr commented on September 18, 2024

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.

maggu2810 avatar maggu2810 commented on September 18, 2024

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.

crocket avatar crocket commented on September 18, 2024

Try to compile this again. It should compile now.

from abendbrot.

stefan-gr avatar stefan-gr commented on September 18, 2024

I think things should be in order now, thanks everyone for reporting this.

from abendbrot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.