-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Cross compiling windows with ubuntu fails on etc2comp build #9258
Comments
Ubuntu and mingw versions? |
Does it fail only when cross-compiling to win32, or also to win64? |
Remove rg-etc1 code. Also updated travis to use ubuntu 14.04. Fixes #8457.
Apparently both, as @Keetz had the same issue for win64: https://pastebin.com/vsdXEifT |
Trying on Mageia, it builds fine both in 32-bit and 64-bit (I built with the changes of #9455, but I don't expect they would have an influence on this issue). MinGW-w64 5.0.1 with GCC 6.1.0. |
It also builds fine on Travis CI btw, with this system: So I'm not sure why it wouldn't work with versions in between like you have. |
same issue on |
The fix is to change distro. So far it seems to fail only on Ubuntu :P </troll> |
Are you guys using WSL (windows subsystem for linux) to compile Godot for Windows? I'm having the same issue here. gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 |
Same issue here with Ubuntu 16.04 with |
I found the trouble: by default mingw on ubuntu works in win32 mode (which doesn't support thread), if you compile with posix mode it works. To use posix mode for mingw by default:
It maybe worth a line in the documentation, what do you think ? |
Hmm still not working. update-alternatives: warning: skip creation of /usr/bin/x86_64-w64-mingw32-gcc-6 because associated file /usr/bin/x86_64-w64-mingw32-gcc-6-posix (of link group x86_64-w64-mingw32-gcc) doesn't exist |
I was having the same problem on Ubuntu, but I managed to get it working by including bits=64 in the scons command |
@sketchyfun I had the same issue compiling it with either 32 or 64 bits. Changing to posix mode with the above method solved it for me. |
@Xrayez I tried that, but I received the same error as @AlexHolly. Either way, hopefully a combination of this information will be of help to other people :) |
It works again, thanks. Is there a bug in the scons or why is it not using bits=64 as default on a 64bit system? |
@AlexHolly in my experience it is only p=windows that doesn't use 64 bits as default. Whenever i build to x11 it defaults to 64 bits just fine. |
The |
I believe the logic is only for MSVC, because it requires the proper compiler to be already set up. With MinGW you can have both compilers available and select the right one by changing the prefix. |
so, issue or not? |
Got a report on Discord of someone running into this issue on Lubuntu (version unknown) with MinGW-w64 4.0.4. Looks like that version is buggy, so the fix would be: get a newer mingw. |
does anyone know if it is possible to switch to posix in shell without manually entering the number? |
If you try to build some CI you should try to use a proper docker-container where this is not needed. If not this should work.
|
This should work:
|
Master branch
sudo apt-get install mingw-w64
scons p=windows
It stopped working ~5-10 days ago.
Edit
Kubuntu 17.04
gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406
The text was updated successfully, but these errors were encountered: