![]() |
Can't make bebbo's amiga-gcc work
i really need help here guys i have been trying to make this amiga-gcc by bebbo thing work and when i try to compile some code it says:
Code:
sh: /bin/sh: No such file or directory any help appreciated :sad:sad:sad |
Msys2 comes with Bash so 'sh' should just use that. You might need to check the path.
|
Quote:
You have to open the command line via the provided `cmdline.bat`. Or you have to provide a proper configuration by yourself. It uses msys2, which is linux for windows and that uses sh. |
thanks for replying bebbo! I have msys2 installed
actually to make sure i went and installed it again a newer version i hope. i opened cmdline.bat and cd to the folder where my code is and i still get the same error what to do now? :( Quote:
|
Did you install the toolchain in the default location? If not, try doing that (a path with spaces could causes issues).
In cmdline.bat try changing line 3 from Code:
path %path%;%prefix%\bin\ Code:
path %prefix%\bin\;%path% |
I never use that msys crap, only gnu make for windows & Bebbo's as / gcc and it works fine.
|
i installed the toolchain in the default c:/amiga-gcc
Quote:
Quote:
|
1. Does e.g. m68k-amigaos-gcc.exe work on its own if you cd into c:/amiga-gcc/bin ?
2. Does sh.exe? 3. How about make.exe 4. What about a simpler Makefile that you create from scratch? 5. Check if the Makefile contains windows line endings (perhaps only some lines) 6. If all that fails, try attaching the Makefile |
cputest (WinUAE cpu tester) uses Bebbo's gcc toolchain but no shells or crap. Try building that, I could build it with only "make" command installed, no crap msys or sh (sources from WinUAE github in "cputest")
|
1. amiga-gcc successfully compiles hello.c when i launch cmdline.bat so i am assuming its working
2. sh.exe works on its own when invoked from the command line 3. make when invoked on its own in any random dir says "sh: *** No targets specified and no makefile found. Stop." 4. i dont know how to make a makefile :( 5. they are all cr/lf 6. there is a line there that says Code:
# The shell in which to execute make rules. Quote:
|
I tried this, still getting similar errors:
Code:
C:\amiga-gcc\cputest>make Quote:
|
The package setup-amiga-gcc.exe is intended to be used in Windows without installing MSYS2. It should also work having MSYS2.
I remember there was a problem with make and shell. That's why the cmdline.bat creates a wrapper for make.exe. The real make.exe was renamed to _make.exe. The new make.exe invokes _make.exe with setting SHELL=c:\amiga-gcc\bin\sh.exe If you are using MSYS2 then you have to verify which make.exe is used. Also some of the DLLs may be duplicates or even worse: differ a bit. Invoke a real make.exe - not the wrapper and maybe you have to provide the variable SHELL=.... You should remove all files in amiga-gcc/bin which are dups of files in MSYS2 Nowaday you shouldn't use MSYS2, you should use WSL2, which is soooooooooooooooooooooo much faster. |
Quote:
|
i installed msys2 following some guide. i will uninstall it then.
as for the wsl i dont know if i have enough space in my drive to run a linux subsystem, will look into it thanks all for your help so far [edit] i uninstalled msys2 and i still get the same error trying to compile cputest |
Ah, I can reproduce you issue with just:
Code:
.PHONY: test Code:
echo Hello! Not sure what's causing it, but I think you can work around it by using another version of "make" with the amiga-gcc distribution (needs to be earlier in the path obviously). I'm using the one from https://nuwen.net/mingw.html (for the gcc part) but YMMV. |
I went ahead with your advice so now i have un installed msys2 and I have a Debian install on Windows, but no idea how to proceed
what should I do? i am still getting the error Quote:
|
anyone can help at this point? bebbo? :sad
|
the version of "make" is at fault
Code:
K:\jff\AmigaHD\PROJETS\arcade_remakes\pengo\src>c:\amiga-gcc\bin\make.exe -v |
i figured out how to make wsl2 work and now i can compile cputest ! i didnt realize i should follow instructions to make it work like if it was Linux because it is Linux :p
|
All times are GMT +2. The time now is 04:48. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.