Re: Help figuring out why nim gives the "collect2: fatal error: can't open nm output" error with older gcc versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 21, 2020 at 11:59 PM Kaushal Modi <kaushal.modi@xxxxxxxxx>
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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux