zhouhm@mybuster:~$ nim --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc 
--passL:-static -d:release --opt:size -d:usePcreHeader  c osc.nim
    Hint: used config file '/home/zhouhm/nim-0.20.2/config/nim.cfg' [Conf]
    Hint: system [Processing]
    Hint: widestrs [Processing]
    Hint: io [Processing]
    Hint: osc [Processing]
    Hint: osproc [Processing]
    Hint: strutils [Processing]
    Hint: parseutils [Processing]
    Hint: math [Processing]
    Hint: bitops [Processing]
    Hint: macros [Processing]
    Hint: algorithm [Processing]
    Hint: unicode [Processing]
    Hint: os [Processing]
    Hint: pathnorm [Processing]
    Hint: osseps [Processing]
    Hint: posix [Processing]
    Hint: times [Processing]
    Hint: options [Processing]
    Hint: typetraits [Processing]
    Hint: strtabs [Processing]
    Hint: hashes [Processing]
    Hint: streams [Processing]
    Hint: cpuinfo [Processing]
    Hint: linux [Processing]
    Hint: strformat [Processing]
    Hint: nre [Processing]
    Hint: pcre [Processing]
    Hint: util [Processing]
    Hint: tables [Processing]
    CC: stdlib_nre.nim
    Error: execution of an external compiler program 'musl-gcc -c  -w -Os  
-I/home/zhouhm/nim-0.20.2/lib -I/home/zhouhm -o 
/home/zhouhm/.cache/nim/osc_r/stdlib_nre.nim.c.o 
/home/zhouhm/.cache/nim/osc_r/stdlib_nre.nim.c' failed with exit code: 1
    
    /home/zhouhm/.cache/nim/osc_r/stdlib_nre.nim.c:11:10: fatal error: pcre.h: 
No such file or directory
     #include <pcre.h>
              ^~~~~~~~
    compilation terminated.
    
    
    Run
    
    
    root@mybuster:~# find / -name 'pcre.h'
    /home/zhouhm/hello_musl/pcre8.42/include/pcre.h
    /home/zhouhm/hello_musl/pcre-8.42/pcre.h
    /usr/include/pcre.h
    
    
    Run

Reply via email to