View Single Post
Old 2017-03-02, 09:43   #2
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

475310 Posts
Default

Quote:
Originally Posted by wombatman View Post
I'm trying to build sr1sieve on the RPi Model 3B running Raspbian Jessie 4.4 (32-bit), and encountering the following error:
Code:
gcc -O2 -ffast-math -march=armv8-a -mtune=cortex-a53  -Wall -DNDEBUG  -c -o sr1sieve.o sr1sieve.c
In file included from sr1sieve.c:23:0:
arithmetic.h: In function ‘PRE2_MULMOD64_INIT’:
arithmetic.h:97:3: error: ‘b_over_p’ undeclared (first use in this function)
   b_over_p = (double)((int64_t)b) * one_over_p;
The relevant line from arithmetic.h is:
Code:
extern double _b_over_p;
GCC is version 4.9.2.

This obviously isn't an emergency, but I'd like to learn more about the Pi and what it can do. Thanks for any help.
I *suppose* it's an issue related to the 32-bit OS not having 64-bit instructions. I had a similar error on my RPI 3 when I tried to compile my own sieve (but here I also had an asm instruction I had to recode in C, so I could be proved wrong).
ET_ is offline   Reply With Quote