From b2795af2b8793b3de31a12cea5c29aee94856555 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Fri, 10 Jun 2016 23:55:46 -0700 Subject: [PATCH] Added note that multilib GCC is required when building the native version on 64 bit Linux (#66) Without a GCC installation that can build both 32 and 64 bit executables, the native build will fail on 64 bit Linux machines with an error about unsigned __int128 being undefined. GCC does not support __int128 on 32 bit targets, and GCC was using it via a standard library implementation header intended for 64 bit machines. Instances of "arm" were replaced with "ARM" where the acronym was intended. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd44785e5a..835a67b7bc 100644 --- a/README.md +++ b/README.md @@ -28,13 +28,15 @@ To build just the Native or ARM version, you must access the approriate subproje ./gradlew :native:build # Builds just the native version of ntcore ``` -If you do not have the arm toolchain installed on your computer, you will run into build issues. To disable the arm platform entirely, run with the flag `-PskipArm`, and it will be entirely skipped. +If you are building the native version on a 64 bit Linux computer, use a GCC installation which has multilib support enabled (it can compile both 32 and 64 bit programs). The package providing that support on most Linux distributions is called `gcc-multilib`. + +If you do not have the ARM toolchain installed on your computer, you will run into build issues. To disable the ARM platform entirely, run with the flag `-PskipArm`, and it will be entirely skipped. ```bash -./gradlew build -PskipArm # Builds native, disables the arm project +./gradlew build -PskipArm # Builds native, disables the ARM project ``` -The native version of ntcore will run tests on build. The arm version will not, as the current platform likely does not allow running of an ARM binary. +The native version of ntcore will run tests on build. The ARM version will not, as the current platform likely does not allow running of an ARM binary. ### Custom Cross Compilers