-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: execution of an encternal compiler program #135
Comments
You can try adding this to your compilation command: |
@tinygiant98 That worked, thank you! |
If this is the issue I think it is it had something to do with nim itself and newer gcc versions. I worked around it once by just using clang instead. tinygiant98's solution seems better and is an actual solution not avoiding the problem. |
I have yet to identify the combination of versions/reasons where this occurs. For example, my travel setup and home setup have the exact same version of windows, gcc, nim and neverwinter on them, but I have to pass this argument on my travel computer and not on my home computer. |
It's docopt specifically that needs to be updated. There is an open PR for that. @tinygiant98 Is it possible you have a global nim.cfg on one machine that is passing this flag for you? |
Unlikely. I've never set that flag anywhere but the command line. I'll look when I get a chance. |
I'm using Linux (Manjaro) and when I try to build the neverwinter.nim project I get the below error. I do have gcc installed.
/home/shane/.cache/nim/nwn_resman_diff_r/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c: In function ‘single_match__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O48455448fda5455c575748555151c5356ca505055a4857505555c56e56e57dbfa5548Zdocopt_u2664’: /home/shane/.cache/nim/nwn_resman_diff_r/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c:7058:51: error: assignment to ‘tyObject_PatterncolonObjectType___9aON3s9az3qySM2c5zQeNvHA *’ from incompatible pointer type ‘tyObject_ArgumentcolonObjectType___lnBup6gvVmsXvsJx9bLLwyg *’ [-Wincompatible-pointer-types] 7058 | colontmp_ = argument__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O48455448fda5455c575748555151c5356ca505055a4857505555c56e56e57dbfa5548Zdocopt_u267(colontmpD__2, (*pattern).value); | ^ /home/shane/.cache/nim/nwn_resman_diff_r/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c: In function ‘single_match__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O48455448fda5455c575748555151c5356ca505055a4857505555c56e56e57dbfa5548Zdocopt_u2676’: /home/shane/.cache/nim/nwn_resman_diff_r/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c:7281:59: error: assignment to ‘tyObject_PatterncolonObjectType___9aON3s9az3qySM2c5zQeNvHA *’ from incompatible pointer type ‘tyObject_CommandcolonObjectType___0e89asMPLZuLaJb4THRS5hQ *’ [-Wincompatible-pointer-types] 7281 | colontmp_ = command__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O48455448fda5455c575748555151c5356ca505055a4857505555c56e56e57dbfa5548Zdocopt_u562(colontmpD__4, colontmpD__5); | ^ Error: execution of an external compiler program 'gcc -c -w -fmax-errors=3 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -pthread -I/home/shane/dev/nwn/neverwinter.nim/neverwinter/private/zstd/lib/common -I/home/shane/dev/nwn/neverwinter.nim/neverwinter/private/zstd/lib/decompress -I/home/shane/dev/nwn/neverwinter.nim/neverwinter/private/zstd/lib/compress -I/home/shane/dev/nwn/neverwinter.nim/neverwinter/private/zstd/lib/dictBuilder -I/home/shane/dev/nwn/neverwinter.nim/neverwinter/private/zstd/lib/legacy -O3 -fno-strict-aliasing -fno-ident -fno-math-errno -I/usr/lib/nim/lib -I/home/shane/dev/nwn/neverwinter.nim -o /home/shane/.cache/nim/nwn_resman_diff_r/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c.o /home/shane/.cache/nim/nwn_resman_diff_r/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c' failed with exit code: 1
The text was updated successfully, but these errors were encountered: