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
Cannot build violetland using binary mxe distribution (was: build-pkg should install mxe sources) #918
Comments
I can compile my cmake base project using MXE binary distribution. |
The problem only occurs when your require a modified CMake module path for example when trying to build a software requring SDL_image. For example violetland. If you check out the sources ( |
I have installed |
I will try again but I could swear sdl-image was installed and not found :/ |
This is probably more related to #919 in that we don't have a place for common files. The custom cmake modules (mostly SDL* related), fix the lining errors but won't be visible to the toolchain file as they aren't installed by any package. I'll get #919 sorted before the next packaging run. |
Thanks I will try again manually including the custom cmake modules :) |
I think I slowly go insane, now cmake seems to work but gcc crashes:
I have created a Vagrantfile which completely reproduces the issue. @tonytheodore could you tell me which base operating system (jessie vs wheezy, i686-w64-mingw32.static vs x86-64-w64-mingw32.static) and which packages you installed to make compilation and linking work? |
I confirmed the following failure matrix
|
I tested violetland build against prebuilt MXE binaries on Jessie amd64 machine in VirtualBox.
I copied
|
OK the only thing I did different from you was not copying the mxe sources to I'll try to reproduce your findings and come back later :) |
Yesterday I did it without copying sources. For me the result doesn't depend on presence of sources in /usr/lib/mxe/src. |
Then I don't get why gcc crashes for me on a machine which should be identical to yours (jessie64 in virtual box using mxe precompiled binaries). You do use the binaries from jessie, not wheezy, do you? |
Jessie.
Jessie and Wheezy use same Debian packages, except package |
I wasn't testing the pre-built packages, just that the linking works using the custom cmake modules (OS X 10.10.5). I'll try the Vagrantfiles and report back. |
It very likely has insufficient RAM for c++ pre-compiled headers, use 2GB to be safe:
I moved these to a subdirectory recently so the toolchain file still won't find them:
If the custom modules are being used, you should see lines with
On Wheezy, you'll also see warnings about Run the modified Vagrantfile and you should end up with:
|
This do fix linking errors for me. |
Good to hear, the apt packaging itself works flawlessly - well done! |
Thanks for the input, I'll try again and report back! |
I tried again with 2 GiB of memory and once again gcc crashed with the same stack trace :( |
The error message is similar to known gcc bugs: |
I think I'll give up on using the prebuild mxe binaries for now. I have created a Vagrant box containing prebuild mxe binaries for everything necessary to compile violetland which should be sufficient for now. As soon as a new build is available I'll of cause try to use it again :) Nevertheless providing prebuild mxe binaries is a great job! I'm currently investigating whether it's possible to spare some cycles on some machines at work to build everything in order to help you testing the new toolchain :) |
When trying to use the binary mxe distribution I stumbled across the error that CMake does not work out of the box, if mxe sources are not located in
/usr/lib/mxe
. The reason for this is that at least the CMake module files referenced by mxe-cmake.conf are not found.I think the best way to ensure build-pkg can be used is to install the mxe sources as debian package themself. What do you think @starius ?
The text was updated successfully, but these errors were encountered: