bmx-ng / bmk

The enhanced BlitzMax build program.
zlib License
28 stars 13 forks source link

bmk "makemods -l LLL" does not create "blitz.mod/blitz.x.LLL.*.i|a" #16

Closed GWRon closed 9 years ago

GWRon commented 9 years ago

When trying to recompile my modules I came across this odd behaviour (checked previous BMK revisions up to begin of june: they behave the same).

When running ./bmk makemods -a -r -l linux it compiles all modules .. but it does not create the file blitz.mod/blitz.release.linux.x86.i/.a. All other modules get their "modulename.release.linux.x86.i/.a" created.

When running the same command without "-l linux", it compiles too - but this time creates the desired file.

When running ./bmk makemods -a -r -l linux brl (to limit to "brl.mod") it creates the file.

Happens to other -l-options (tested "android") too.

GWRon commented 9 years ago

There might be other issues (without "-l"):

$  ./bmk makemods -r
[ 42%] Processing:sdlmax2d.bmx
[ 43%] Compiling:glue.c
[ 43%] Compiling:glue.c
Compile Error: Can't find interface for module 'brl.appstub'
[/BlitzMaxNG/mod/sdl.mod/sdlmax2d.mod/sdlmax2d.bmx;3;0]
Build Error: failed to compile (65280) /BlitzMaxNG/mod/sdl.mod/sdlmax2d.mod/sdlmax2d.bmx

So I had to manually trigger a brl.mod-compilation

$  ./bmk makemods -r brl
[ 48%] Processing:appstub.bmx
[ 55%] Compiling:appstub.bmx.release.linux.x86.c
[ 62%] Archiving:appstub.release.linux.x86.a
ar: creating /BlitzMaxNG/mod/brl.mod/appstub.mod/appstub.release.linux.x86.a

afterwards modules compiled as expected.

Maybe that "have to recompile"-check is not checking every possibility of "missing precompilation output files" ?

GWRon commented 9 years ago

Think all of the problems arised from having "bcc - config.bmx DEBUG:int = True" ...

Now (and with the used sdl.mod being updated...) everything compiles.