bmx-ng / bmk

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

[Windows] Incbin.h not found on 64bit compilation #100

Closed GWRon closed 4 years ago

GWRon commented 4 years ago

Discord user "piecrust936" reported:

fatal error:
brl.mod/blitz.mod/incbin/incbin.h: No such file or directory
3 | #include “brl.mod/blitz.mod/incbin/incbin.h”
   |                 ^~~~~~
compilation terminated.

On windows, the strange thing is the files are there, this is with with latest updated bcc bmk and mod commits

(Me: "hmm ... brucey did a fallback on Windows as the (new) incbin stuff was not working properly there compiling 64 or 32bit?". If it is 32bit -- try 64bit (it should work then). Assuming it uses "include... incbin.h" you compiled for 64bit")

Yes that was with 64 bit

So the issue is unconfirmed yet (by eg. me) but I better raise an issue so we can keep track of it.

Edit: dunno if this is a bmk, bcc or brl.mod issue.

woollybah commented 4 years ago

Probably a broken installation.

braxtonrivers commented 4 years ago

I also came across this one, this is the smallest reproducible sample I could come up with.

inc_test.bmx

SuperStrict

Include "a.bmx"
Incbin "data1.txt"

a.bmx

Incbin "data2.txt"
Rem code continues here ...

data1.txt data1

data2.txt data2

D:/BlitzMaxNG/BlitzMaxNG Code/inc/.bmx/inc_test.bmx.release.win32.x64.incbin2.c:3:10: fatal error: brl.mod/blitz.mod/incbin/incbin.h: No such file or directory 3 | #include "brl.mod/blitz.mod/incbin/incbin.h" | ^~~~~~~~~~~ compilation terminated. Build Error: failed to compile (1) D:/BlitzMaxNG/BlitzMaxNG Code/inc/.bmx/inc_test.bmx.release.win32.x64.incbin2.c

However if you remove the incbin from a.bmx and move it into inc_test.bmx it will work as before.

GWRon commented 4 years ago

Yes, user now added extra info about his code:

nested include files containing the incbins...

I assume Brucey uses include files as often as I do... So something often skipped in tests.