BUG 117548 strikes back! error: integer constant is too large for ‘long’ type P.S. Somebody, please fix misc/config/cc/gcc -mcpu settings. I don't completely understand Gentoo policy on C-flags to do that. Reproducible: Always Steps to Reproduce:
Created attachment 151486 [details, diff] add ULL postfix to (hopefully) all 64bit constants in Botan. Patch was created against 1.7.5 version, but applies to 1.6.1.
The problem is configure.pl will recognize that (say) GCC 4.1 needs -fpermissive, but not GCC 4.2 (yes, this should be a compile-time test instead of hardcoded, one of the many infelicities of the build system, it's just a version test). Patch is commited to the stable branch (net.randombit.botan.stable), I will attach to this PR as well.
Created attachment 151507 [details, diff] Patch for configure.pl
Should I apply only attachment#151507 [details, diff]? Nickolay, can you please confirm?
(In reply to comment #4) > Should I apply only attachment#151507 [details, diff] [edit]? Nickolay, can you please confirm? > AFAIK, Lloyd is official Botan maintainer. So his patch is preferable.
Added this patch. But Jack, I have another issue with this package. It looks like it chooses to use g++ and not ${CHOST}-g++ as expected. I tried to analyze your configure.pl script but it is not standard (Why don't you use autoconf/automake/)... Can you please fix this too?
Made it work... In the future please separate the AR flags from the AR command. But it would be great if you enable passing host prefix into configure like autoconf. Thanks!
Autoconf/automake are avoided because while they solve some problems on Unix they create many more for Windows users, and b/c autoconf's support for compilers that aren't GCC is pitiful: what is currently ~1K lines of Perl would have to become ~3K lines of configure.ac :( Sadly there are no good solutions here (that I have found), believe me I don't like maintaining my own build system any more than people like using it. AR flags problem noted. You can override compiler binary name via CXX variable (eg CXX=<CHOST>-g++ make); is more needed here?
Thanks! I hope you add the host prefix into configure... It will make it simpler... Just mimic autoconf --host= --target= --build= parameters. Also take the LIB_OPT from configure as well... But for now we are OK.