0

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

Tsyvarev
  • 60,011
  • 17
  • 110
  • 153
  • The make script used tries to execute `ld` command with both `-r` and `pie` and it does no like it.BTW, without the make script is hard to help more, check the [mcve] page – Cleptus Apr 23 '18 at 07:09

1 Answers1

0

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

Timir
  • 1,395
  • 8
  • 16
  • Any idea as to how to apply this patch. It's slowly becoming a headache – user9111001 Apr 23 '18 at 10:36
  • Assuming your Makefile and downloaded patch are in the same directory, you could just say `patch -p1 < makefile.patch` – Timir Apr 23 '18 at 11:53
  • Never mind, I manually edited the Makefile.subdirs It was only a matter of few parameters. Since I was not acquainted with '$(diff)', I got sort of got confused with the syntax regarding '-' and '+' in the patch. I got it working now ! – user9111001 Apr 23 '18 at 11:57