Help figuring out why nim gives the "collect2: fatal error: can't open nm output" error with older gcc versions
Kaushal Modi
kaushal.modi@gmail.com
Wed Apr 22 04:03:58 GMT 2020
On Tue, Apr 21, 2020 at 11:59 PM Kaushal Modi <kaushal.modi@gmail.com>
wrote:
> Hello,
>
> I use gcc to compile the C/C++ code generated by Nim (
> https://nim-lang.org/).
>
> Nim has a feature where it can read in the nim code via pipe. So I can do
>
> echo echo NimVersion | nim c -r -
>
I forgot to add an observation here.
Above should create an executable named stdinfile in the /tmp cache dir
($XDG_CACHE_HOME) and then run it.
Even though above fails with the "can't open nm output" fatal error, gcc
does actually end up compiling the stdinfile, which I can then manually run
and it runs fine.
The issue is that when nim is compiling that executable via gcc and then
running it, this fatal error happens somewhere inbetween.
More information about the Gcc-help
mailing list