Search code examples
bashmakefileautomakebinutils

FLINT/C installation on Arch


I'm trying to install FLINT/C lib on Arch for learning Modern Cryptography in C. All my dependencies are fulfilled per se and the only thing left to do is run make && make install and ld is generating errors :

make[1]: Entering directory '/home/venine/Downloads/flint-2.4.5'
make[2]: Entering directory '/home/venine/Downloads/flint-2.4.5/ulong_extras'
CC   ../build/ulong_extras/../ulong_extras.lo
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status     
make[2]: *** [../Makefile.subdirs:55: 
../build/ulong_extras/../ulong_extras.lo] Error 1
make[2]: Leaving directory '/home/venine/Downloads/flint- 2.4.5/ulong_extras'
make[1]: *** [Makefile:135: libflint.so] Error 2
make[1]: Leaving directory '/home/venine/Downloads/flint-2.4.5'
make: *** [Makefile:161: library] Error 2`

Can someone tell me what's going wrong and how do I create a proper make file


Solution

  • This appears to be FLINT 2 Issue#400. The bug also describes a change in the makefile.