BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
303 stars 38 forks source link

MacOS : fatal error: cannot execute 'cc1': execvp: No such file or directory #236

Closed BastianZuehlke closed 10 months ago

BastianZuehlke commented 10 months ago

Ventura - VS Code 1.82.0 - v1.7.3 Creating Default Test Project, no changes.

Compiling main.c Compiling support/gcc8_c_support.c Assembling support/gcc8_a_support.s m68k-amiga-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory compilation terminated.

BartmanAbyss commented 10 months ago

Hmm.. can you try with 1.7.2? Does it work?

BastianZuehlke commented 10 months ago

It was the permission issue.It seems I need to add +x to nearly all files.

However, now I get

Compiling main.c Compiling support/gcc8_c_support.c Assembling support/gcc8_a_support.s Assembling support/depacker_doynax.s Assembling support/depacker_doynax_vasm.asm Assembler messages: Fatal error: can't create obj/gcc8_a_support.o: No such file or directory make: [obj/gcc8_a_support.o] Error 1 make: Waiting for unfinished jobs.... Assembler messages: Fatal error: can't create obj/depacker_doynax.o: No such file or directory make: [obj/depacker_doynax.o] Error 1 /Users/bastianzuhlke/Development/tmp/test/main.c:506:1: fatal error: opening dependency file obj/main.d: No such file or directory 506 | } | ^ compilation terminated. make: [obj/main.o] Error 1 /Users/bastianzuhlke/Development/tmp/test/support/gcc8_c_support.c:289:1: fatal error: opening dependency file obj/gcc8_c_support.d: No such file or directory 289 | } | ^ compilation terminated. make: *** [obj/gcc8_c_support.o] Error 1

BastianZuehlke commented 10 months ago

Ok after creating obj and out directory manually it works.

torkildl commented 10 months ago

I think this issue also extends to the Linux platform.


From: Bastian ZUEHLKE @.***> Sent: 11 September 2023 22:04 To: BartmanAbyss/vscode-amiga-debug Cc: Subscribed Subject: Re: [BartmanAbyss/vscode-amiga-debug] MacOS : fatal error: cannot execute 'cc1': execvp: No such file or directory (Issue #236)

It was the permission issue.It seems I need to add +x to nearly all files.

However, now I get

Compiling main.c Compiling support/gcc8_c_support.c Assembling support/gcc8_a_support.s Assembling support/depacker_doynax.s Assembling support/depacker_doynax_vasm.asm Assembler messages: Fatal error: can't create obj/gcc8_a_support.o: No such file or directory make: [obj/gcc8_a_support.o] Error 1 make: Waiting for unfinished jobs.... Assembler messages: Fatal error: can't create obj/depacker_doynax.o: No such file or directory make: [obj/depacker_doynax.o] Error 1 /Users/bastianzuhlke/Development/tmp/test/main.c:506:1: fatal error: opening dependency file obj/main.d: No such file or directory 506 | } | ^ compilation terminated. make: [obj/main.o] Error 1 /Users/bastianzuhlke/Development/tmp/test/support/gcc8_c_support.c:289:1: fatal error: opening dependency file obj/gcc8_c_support.d: No such file or directory 289 | } | ^ compilation terminated. make: *** [obj/gcc8_c_support.o] Error 1

— Reply to this email directly, view it on GitHubhttps://github.com/BartmanAbyss/vscode-amiga-debug/issues/236#issuecomment-1714501928, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACIF3IRZ5U2OONXL3RRGZRLXZ5VD7ANCNFSM6AAAAAA4T2VG6U. You are receiving this because you are subscribed to this thread.Message ID: @.***>

BartmanAbyss commented 10 months ago

my bad. forgot to update the version number in a source file. will post a new version asap.

BartmanAbyss commented 10 months ago

fixed in https://github.com/BartmanAbyss/vscode-amiga-debug/commit/67b71f5a909636ab17681c912686ce548de18aec

TheJare commented 8 months ago

I just installed v1.7.4 of the extension on my Windows machine and got the same problem, I had to create the out and obj folders manually.

I think the PR referenced fixes a different issue (permissions for the binaries), not this one (destination folders must exist).

laurencedobson commented 8 months ago

Likewise, I installed and also had to create the bin/ and out/ folders in the workspace root