-
Notifications
You must be signed in to change notification settings - Fork 10
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
Compiling with gcc in blueCFD-Core terminal #40
Comments
Many thanks for your positive feedback! Sorry about the problem with the space in "Program Files". The workaround for this is written here: https://github.com/blueCFD/Core/wiki/Quick-notes-on-how-to-update-build#setting-up-the-work-environment - namely in section "Setting up the work environment". A partial fix for this issue is already available in our git repository, which can be gotten if you follow the instructions given on that page. The missing part of the fix is that you've used the
Keep in mind that this will only work if you follow the instructions given at the aforementioned wiki page. You can also add an alias to your
The start a new terminal window or source said file to load in the aliases. Then you can use the command manually once again:
Note: This will not work inside a shell script, because aliases are disabled by default within scripts. |
Thanks for the super-fast response. I do not have makeReinterpretExePath in $WM_DIR/scripts. I do have makeReinterpretObjectPaths. Using that, I get an error: $ ($WM_DIR/scripts/makeReinterpretObjectPaths gcc) gb_flip.c sat13.c -o sat13.exe But actually, with the terminal window launched from the X: drive, plain "gcc" works fine now. So that's a workaround, as you said. Thanks! (Should I close the issue?) |
You're welcome for the fast response :)
I prefer to leave this report open for now, because I also want to also fix the issue with using |
…also have the details indicated in Issue #40
Added a ton of details about this on the FAQ entry: http://bluecfd.github.io/Core/FAQ/having-other-problems-with-custom-source-code/ |
I have installed blueCFD-Core (latest release, SHA-1 4ba23f6757ccdfd041f2e2627daee7b947f41195) on Windows 7, in C:\Program Files\blueCFD-Core-2016. Many features work seamlessly --thanks!
However, when I try to compile a standalone C program from the blueCFD-Core terminal, using a command like "gcc code.c -o code.exe", I get the following error:
C:\Program Files\blueCFD-Core-2016\msys64\mingw64\bin/ld.exe: cannot find C:/Program: No such file or directory
C:\Program Files\blueCFD-Core-2016\msys64\mingw64\bin/ld.exe: cannot find Files/blueCFD-Core-2016/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/lib/../lib/default-manifest.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
It seems that the path for ld.exe is not understood inside the Linux-like file system. (If I type "which ld" or "which ld.exe" or "which gcc", the programs are listed as being in /mingw64/bin, which is in the $PATH of the blueCFD-Core terminal. A command "ld --version" is successful. In a standard Windows cmd window, "ld" and "ld.exe" are not recognised, so there is no conflicting path to a different ld.exe.)
I expect that this is a bug in msys2, not the fault of blueCFD-core. (It may be related to blueCFD-core issue #2.) Please can you comment?
The text was updated successfully, but these errors were encountered: