Hi there,

I have gcc-musl compiler toolchain.

Having that folder I can give nim proper --gcc.exe and --gcc.linkerexe with all 
the flags and everything works perfect.

Of course no $PATH with gcc or nim are set because i want to do it all by hand.

My point is that I've created appimage so that I could run it like ./appimage 
gcc or ./appimage g++ and so on.

But then I tried to use that with Nim:

[seba@sebapc Pobrane]$ ./nim_1_1_1/bin/nim --cc.exe:"./gcc_musl gcc" 
\--cc.linkerexe: "./gcc_musl gcc" \--passl: -static -d:release --opt:size c 
./hi.nim Hint: used config file '/home/seba/Pobrane/nim_1_1_1/config/nim.cfg' 
[Conf] Hint: system [Processing] Hint: widestrs [Processing] Hint: io 
[Processing] Hint: hi [Processing] CC: stdlib_io.nim CC: stdlib_system.nim

/bin/sh: gcc: nie znaleziono polecenia <\-- gcc not found|   
---|---  
  
Error: execution of an external compiler program 'gcc -c -w -Os -fno-ident 
-I/home/seba/Pobrane/nim_1_1_1/lib -I/home/seba/Pobrane -o 
/home/seba/.cache/nim/hi_r/stdlib_io.nim.c.o 
/home/seba/.cache/nim/hi_r/stdlib_io.nim.c' failed with exit code: 127

[seba@sebapc Pobrane]$ /bin/sh: gcc: nie znaleziono polecenia <\-- gcc not found

I'm guessing that the problem is with "./gcc_musl gcc" because AppRun is 
configured to run ($@ ) given argument. But I don't know how to tell Nim to 
accept that gcc or g++ argument. There is a space but neither "" nor does not 
fix it.

Anyone could help me with that?

Reply via email to