Debian multiarch compatibility#122
Open
rdebath wants to merge 2 commits intoterralang:masterfrom
rdebath:master
Open
Debian multiarch compatibility#122rdebath wants to merge 2 commits intoterralang:masterfrom rdebath:master
rdebath wants to merge 2 commits intoterralang:masterfrom
rdebath:master
Conversation
Includes changes that mean the x86_64 compile will correctly run on a
32bit system with suitable library and kernel support.
If you have a multiarch aware llvm-dev and clang-dev the Makefile changes
will allow you to build Terra on a mostly 32bit host using:
make TARGET_ARCH=-m64
The robustness of the Makefile has also been improved slightly so that
a compile that is started on a 32bit environment without the required
setup should fail early enough so it does not require a "make purge"
to successfully complete a 64bit compile.
To run the 64bit application on a 32bit user space you can use multiarch,
but you actually only need "gcc-multilib".
The 32bit packages needed to run terra can be installed using the
Debian/Ubuntu packages:
apt-get install gcc-multilib lib64ncurses5 lib64z1
Note: Running 64bit applications on a 32bit system also requires that
the kernel be the "amd64" variant.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two commits here, the first is the multiarch updates you requested.
Unfortunately I ran into a bit of a problem, it seems that the clang-dev and llvm-dev packages aren't actually multarch aware yet (for "jessie"). Nevertheless, as all except the final link works correctly I expect it will happen quickly after the packager decides that it needs doing "now".
The result is that it should compile using "make TARGET_ARCH=-m64" as soon as the libraries become available, but right now the only completely tested part of these changes is actually running the 64bit executable on a, mostly, 32bit system. (which now works correctly for all your tests)
The second commit is a minor tidy-up of the .gitignore files.