[FUSION-C] Compiler not working.

By blackorwhite

Rookie (25)

blackorwhite의 아바타

08-07-2020, 23:48

Hi, first of all sorry for my bad english.

I have several problems trying to compile the test.c program.
I bought the book FUSION-C Complete Journey, where is described how to install all the needed tools.
I followed all the steps (using Mac OSX) but when I use Comand+B to build the test.c program, the log is showing this:

....(╯°□°) temp files removed!
# Starting emulator script
./openMSX/emul_start.sh
...Now Starting OpenMsx
./openMSX/emul_start.sh: line 10: NULL: command not found

No file is generated into DSK folder. Openemu is starting.
I installed everything (Hex2bin, sdcc compiler, etc...) Every tool installed step by step as shown in the book.
I don't know whats wrong here....

Login or 등록 to post comments

By subjik

Resident (35)

subjik의 아바타

08-09-2020, 13:16

Did you ever find out what was wrong? I'm using the same setup (no book though and running make from terminal) and getting exactly same output.

Sorry if I got your hopes up by replying! Smile

By ericb59

Paragon (1124)

ericb59의 아바타

08-09-2020, 13:19

I'm sorry I haven't seen this post before ... Is your problem solved?

By subjik

Resident (35)

subjik의 아바타

08-09-2020, 13:44

I'm still in the same situation, test.com is not compiled or copied on the dsk folder. Most likely I'm doing something wrong! Smile

Btw. kudos for your work on the library! Is the book available as an ebook version? I couldn't find one so I'm assuming it's not but if such version exists I'd be happy to buy one.

By ericb59

Paragon (1124)

ericb59의 아바타

08-09-2020, 20:27

Hi,

There is no ebook version actually because it need to redesign all the document to fit ebook screen.

Well, we will, try to,solve your problem
First, open the Terminal and type :
sdcc -v

Please return the result here.

Also, what is the MacOS version you are using ?

By subjik

Resident (35)

subjik의 아바타

09-09-2020, 08:31

Okay, thanks! Maybe I'll order the paper version then.

Thanks for the help with troubleshooting,

SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.6.0 #9615 (Mac OS X i386)

Mojave 10.14.6

By ericb59

Paragon (1124)

ericb59의 아바타

09-09-2020, 13:18

Navigate to the this folder

/Users/ < your name> /Library/Application Support/Sublime Text 3/Packages/User/

open the file : MSX-SDCC.sublime-build with a text editor (with Sublime-text for example)
and be sure it content is equal to this :

{
	"shell_cmd": "make CompFile=$file_name",
	"working_dir": "$file_path"
}

By subjik

Resident (35)

subjik의 아바타

10-09-2020, 13:14

Yes, that seems to be in order.

I added hex2bin and sdcc to path but I still get same error message (below) and the file is missing from the dsk dir.

....(╯°□°) temp files removed!
# Starting emulator script 
./openMSX/emul_start.sh
...Now Starting OpenMsx 
./openMSX/emul_start.sh: line 10: NULL: command not found

By ericb59

Paragon (1124)

ericb59의 아바타

10-09-2020, 15:01

oO
Why is there missing file ???

Download this file
https://drive.google.com/file/d/1kk0CCSSG9-aZchWUrbY6VMdjlD3...

It's the complete FUSION-C 1.2 Archive

Unpack it, Put Working Folder on the Desktop.
open the test.c inside this folder with Sublime Text and trey to compel.

By sergarbes

Expert (116)

sergarbes의 아바타

04-01-2021, 21:26

Hi all,

I bought the complete journey from amazon last year and begun with an iMac late 2009 with High Sierra.

I also own a MacBook Pro late 2013 with Catalina. I amb reading the post and want to share with you that to compile with Catalina I had to update de sdcc compiler from de 3.6.0 to the 4.0 version.

I also had to permit Catalina to trust the sdcc binary with the macOS comand line instruction

xattr -d com.apple.quarantine sdcc

Hope that this helps Smile2