English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. General (https://eab.abime.net/forumdisplay.php?f=37)
-   -   Issue getting started with amiga-debug Visual Studio Code Extension (Windows) (https://eab.abime.net/showthread.php?t=111007)

dalton 22 June 2022 19:31

Issue getting started with amiga-debug Visual Studio Code Extension (Windows)
 
Hello,

Bartman's vscode extension for amiga development seems really cool but I'm having some trouble getting started with it. After I initialize the sample project and try to build (with F5) I get the following errors. Maybe someone has had this problem before?

Code:

> Executing task: c:\Users\david\.vscode\extensions\bartmanabyss.amiga-debug-1.4.0\bin\gnumake.exe -j4 <

Compiling main.c
Compiling support/gcc8_c_support.c
Assembling support/gcc8_a_support.s
Assembling support/depacker_doynax.s
/usr/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/usr/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
gnumake: *** [Makefile:51: obj/main.o] Error 1
gnumake: *** Waiting for unfinished jobs....
gnumake: *** [Makefile:51: obj/gcc8_c_support.o] Error 1
AsAsesmsbelmebrl emre smseasgseasg:e
sF:a
tFaalt aelr reorrr:o rc:a nc'atn 'ctr ecarteea toeb jo/bdje/pgaccck8e_ra__dsouypnpaoxr.to.:o :N oN os uscuhc hf ifliel eo ro rd idriercetcotroyr
y
gnumake: *** [Makefile:57: obj/depacker_doynax.o] Error 1
gnumake: *** [Makefile:57: obj/gcc8_a_support.o] Error 1
The terminal process "C:\WINDOWS\System32\cmd.exe /d /c c:\Users\david\.vscode\extensions\bartmanabyss.amiga-debug-1.4.0\bin\gnumake.exe -j4" terminated with exit code: 2.

First of all I think the really weird non-readable text is actually two errors being printed at the same time and the letters get mixed up with each other.

The `unexpected EOF` error seems to come from the Makefile line
Code:

@if not exist "$(call forward-to-backward,$(dir $@))" mkdir $(call forward-to-backward,$(dir $@))
I think the makefile commands are somehow being executed by sh, when they should really be executed with windows' cmd.

Does anybody have a clue?

Windows 11, vscode 1.68.1

dalton 23 June 2022 08:12

Solved by adding
Code:

SHELL = c:/windows/system32/cmd.exe
to the top of Makefile.

Make was using Git's `sh` to run commands but the commands are designed for windows `cmd.exe`.

Bartman 23 June 2022 21:02

Thanks for reporting. Fixed in 1.4.1!


All times are GMT +2. The time now is 04:17.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.05168 seconds with 11 queries