Configuring for target device Nintendo Switch fails

Jazz Anders iris at iristherainbow.xyz
Wed Mar 18 06:22:23 CET 2026


Hello, I am 95% sure I am the first person to try and do this so I was expecting problems. Below are the flags I was using to configure: ./configure \ --prefix=$DEVKITPRO/portlibs/switch \ --host=aarch64-none-elf \ --build=x86_64-pc-linux-gnu \ --disable-assembly \ CC=aarch64-none-elf-gcc \ AR=aarch64-none-elf-ar \ RANLIB=aarch64-none-elf-ranlib \ CFLAGS="-O2 -mcpu=cortex-a57 -mtune=cortex-a57 -I$DEVKITPRO/libnx/include" \ LDFLAGS="-L$DEVKITPRO/libnx/lib" Upon configure, I had Long Long Reliability test 1 fail. Attached the config.log of a failed config. Nothing that i could see in that file was really helpful to me, and after trying a good few things that all lead to the same result, I decided to just edit configure to make it continue whether or not the test fail. With this, configure worked fine and I was able to install to my DevKitPro portlibs. While using GMP to do a Lucas-Lehmer Primality test, I've yet to find any problems, though that is such a small portion of GMP that I am using, I would not be shocked if there is some problem that I've yet to discover. Did I stumble upon a bug somewhere here, or did I do something wrong? I'd be happy to try something if someone thinks something would work. Like I said i know that I probably am the first person to try compiling GMP for a Nintendo Switch, so if I'm on my own I totally get it. Thanks, Iris


More information about the gmp-discuss mailing list