Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile sgdk -- fails compiling "src/bmp_a.s" #4

Closed
v4ld3r5 opened this issue Oct 12, 2020 · 4 comments
Closed

Can't compile sgdk -- fails compiling "src/bmp_a.s" #4

v4ld3r5 opened this issue Oct 12, 2020 · 4 comments

Comments

@v4ld3r5
Copy link
Contributor

v4ld3r5 commented Oct 12, 2020

Hi,
When trying to compile sgdk I get an error on one file (cutting some output for brevity).
Not sure there has been any change on sgdk itself that might affect this, I'm just pulling everything today.
I did setup export MARSDEV=/opt/mars , the environment is MINGW64:

make sgdk
...
/opt/mars/m68k-elf/bin/m68k-elf-gcc  -O3 -flto -fuse-linker-plugin -fomit-frame-pointer -m68000 -fno-web -fno-gcse -fno-unit-at-a-time -fshort-enums -fno-builtin -Iinc -Ires -c src/xgm.c -o src/xgm.o
/opt/mars/m68k-elf/bin/m68k-elf-gcc  -O3 -flto -fuse-linker-plugin -fomit-frame-pointer -m68000 -fno-web -fno-gcse -fno-unit-at-a-time -fshort-enums -fno-builtin -Iinc -Ires -c src/ym2612.c -o src/ym2612.o
/opt/mars/m68k-elf/bin/m68k-elf-gcc  -O3 -flto -fuse-linker-plugin -fomit-frame-pointer -m68000 -fno-web -fno-gcse -fno-unit-at-a-time -fshort-enums -fno-builtin -Iinc -Ires -c src/z80_ctrl.c -o src/z80_ctrl.o
/opt/mars/m68k-elf/bin/m68k-elf-gcc  -O3 -flto -fuse-linker-plugin -fomit-frame-pointer -m68000 -fno-web -fno-gcse -fno-unit-at-a-time -fshort-enums -fno-builtin -Iinc -Ires -c src/bmp_a.s -o src/bmp_a.o
src/bmp_a.s: Assembler messages:
src/bmp_a.s:4: Error: Unknown operator -- statement `func clearBitmapBuffer' ignored
src/bmp_a.s:50: Error: Unknown operator -- statement `func copyBitmapBuffer' ignored
src/bmp_a.s:127: Error: Unknown operator -- statement `func BMP_setPixelFastA' ignored
src/bmp_a.s:166: Error: Unknown operator -- statement `func BMP_setPixelA' ignored
src/bmp_a.s:180: Error: Unknown operator -- statement `func BMP_setPixelsFast_V2D' ignored
src/bmp_a.s:233: Error: Unknown operator -- statement `func BMP_setPixels_V2D' ignored
src/bmp_a.s:300: Error: Unknown operator -- statement `func BMP_setPixelsFast' ignored
src/bmp_a.s:352: Error: Unknown operator -- statement `func BMP_setPixels' ignored
src/bmp_a.s:419: Error: Unknown operator -- statement `func BMP_clipLine' ignored
src/bmp_a.s:573: Error: Unknown operator -- statement `func BMP_drawLine' ignored
src/bmp_a.s:723: Error: Unknown operator -- statement `func BMP_isPolygonCulled' ignored
src/bmp_a.s:1985: Error: Unknown operator -- statement `func BMP_drawPolygon' ignored
make[2]: *** [Makefile:72: src/bmp_a.o] Error 1
rm res/libres.s
make[2]: Leaving directory '/home/<my_user>/src/gh/marsdev/sgdk/SGDK'
make[1]: *** [Makefile:34: libmd] Error 2
make[1]: Leaving directory '/home/<my_user>/src/gh/marsdev/sgdk'
make: *** [Makefile:36: sgdk] Error 2
@v4ld3r5
Copy link
Contributor Author

v4ld3r5 commented Oct 12, 2020

So the moment it reaches an assembly file, it fails.
Trying with just the assembler:

MINGW64 marsdev /opt/mars/m68k-elf/bin/m68k-elf-as.exe sgdk/SGDK/src/bmp_a.s
sgdk/SGDK/src/bmp_a.s: Assembler messages:
sgdk/SGDK/src/bmp_a.s:4: Error: Unknown operator -- statement `func clearBitmapBuffer' ignored
sgdk/SGDK/src/bmp_a.s:50: Error: Unknown operator -- statement `func copyBitmapBuffer' ignored
sgdk/SGDK/src/bmp_a.s:127: Error: Unknown operator -- statement `func BMP_setPixelFastA' ignored
sgdk/SGDK/src/bmp_a.s:166: Error: Unknown operator -- statement `func BMP_setPixelA' ignored
sgdk/SGDK/src/bmp_a.s:180: Error: Unknown operator -- statement `func BMP_setPixelsFast_V2D' ignored
sgdk/SGDK/src/bmp_a.s:233: Error: Unknown operator -- statement `func BMP_setPixels_V2D' ignored
sgdk/SGDK/src/bmp_a.s:300: Error: Unknown operator -- statement `func BMP_setPixelsFast' ignored
sgdk/SGDK/src/bmp_a.s:352: Error: Unknown operator -- statement `func BMP_setPixels' ignored
sgdk/SGDK/src/bmp_a.s:419: Error: Unknown operator -- statement `func BMP_clipLine' ignored
sgdk/SGDK/src/bmp_a.s:573: Error: Unknown operator -- statement `func BMP_drawLine' ignored
sgdk/SGDK/src/bmp_a.s:723: Error: Unknown operator -- statement `func BMP_isPolygonCulled' ignored
sgdk/SGDK/src/bmp_a.s:1985: Error: Unknown operator -- statement `func BMP_drawPolygon' ignored

MINGW64 marsdev /opt/mars/m68k-elf/bin/m68k-elf-as.exe --version
GNU assembler (GNU Binutils) 2.33.1
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `m68k-elf' and default,
cpu type `m68000'.

@v4ld3r5
Copy link
Contributor Author

v4ld3r5 commented Oct 12, 2020

A bit more of info on GCC version just in case.
I'm not able to find any source regarding this func kind of statement :(

MINGW64 marsdev /opt/mars/m68k-elf/bin/m68k-elf-gcc --version
m68k-elf-gcc.exe (GCC) 9.2.0

@andwn
Copy link
Owner

andwn commented Oct 12, 2020

It's pulling from master which has been undergoing constant changes, including using gcc to build the asm files instead of gas which I haven't modified my version of the makefile to do yet.

Try make sgdk SGDK_VER=v1.51

@v4ld3r5
Copy link
Contributor Author

v4ld3r5 commented Oct 12, 2020

Yup! that was it, thanks for the explanation, I was suspecting something weird related to sgdk but wasn't certainly sure what.
I will close this issue, have a great day and thx for this tooling

@v4ld3r5 v4ld3r5 closed this as completed Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants