flintlib / arb

Arb has been merged into FLINT -- use https://github.com/flintlib/flint/ instead
http://arblib.org/
GNU Lesser General Public License v2.1
456 stars 137 forks source link

Error 2 in make command run. #382

Closed iajzenszmi closed 2 years ago

iajzenszmi commented 2 years ago

[ 59%] Building C object CMakeFiles/arb.dir/arb_fmpz_poly/gauss_period_minpoly.c.o [ 59%] Building C object CMakeFiles/arb.dir/arb_fmpz_poly/inlines.c.o [ 59%] Building C object CMakeFiles/arb.dir/arb_fpwrap/fpwrap.c.o /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_1’: /home/ian/arb/arb_fpwrap/fpwrap.c:201:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 201 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c:201:16: note: each undeclared identifier is reported only once for each function it appears in /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_2’: /home/ian/arb/arb_fpwrap/fpwrap.c:234:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 234 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_3’: /home/ian/arb/arb_fpwrap/fpwrap.c:270:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 270 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_4’: /home/ian/arb/arb_fpwrap/fpwrap.c:309:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 309 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_1’: /home/ian/arb/arb_fpwrap/fpwrap.c:343:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 343 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_2’: /home/ian/arb/arb_fpwrap/fpwrap.c:377:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 377 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_3’: /home/ian/arb/arb_fpwrap/fpwrap.c:414:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 414 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_4’: /home/ian/arb/arb_fpwrap/fpwrap.c:454:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 454 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_1_int’: /home/ian/arb/arb_fpwrap/fpwrap.c:489:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 489 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_2_int’: /home/ian/arb/arb_fpwrap/fpwrap.c:522:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 522 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_3_int’: /home/ian/arb/arb_fpwrap/fpwrap.c:558:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 558 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_4_int’: /home/ian/arb/arb_fpwrap/fpwrap.c:597:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 597 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_1_int’: /home/ian/arb/arb_fpwrap/fpwrap.c:631:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 631 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_2_int’: /home/ian/arb/arb_fpwrap/fpwrap.c:665:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 665 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_3_int’: /home/ian/arb/arb_fpwrap/fpwrap.c:702:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 702 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_4_int’: /home/ian/arb/arb_fpwrap/fpwrap.c:742:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 742 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_spherical_y’: /home/ian/arb/arb_fpwrap/fpwrap.c:1175:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 1175 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_hypgeom_pfq’: /home/ian/arb/arb_fpwrap/fpwrap.c:1226:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 1226 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_hypgeom_pfq’: /home/ian/arb/arb_fpwrap/fpwrap.c:1263:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 1263 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_zeta_zero’: /home/ian/arb/arb_fpwrap/fpwrap.c:1372:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 1372 | res->real = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_legendre_root’: /home/ian/arb/arb_fpwrap/fpwrap.c:1401:17: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 1401 | res1 = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘_arb_fpwrap_double_airy_zero’: /home/ian/arb/arb_fpwrap/fpwrap.c:1430:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 1430 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_double_lambertw’: /home/ian/arb/arb_fpwrap/fpwrap.c:1476:16: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 1476 | res = D_NAN; | ^~~~~ | FP_NAN /home/ian/arb/arb_fpwrap/fpwrap.c: In function ‘arb_fpwrap_cdouble_lambertw’: /home/ian/arb/arb_fpwrap/fpwrap.c:1510:21: error: ‘D_NAN’ undeclared (first use in this function); did you mean ‘FP_NAN’? 1510 | res->real = D_NAN; | ^~~~~ | FP_NAN make[2]: [CMakeFiles/arb.dir/build.make:10307: CMakeFiles/arb.dir/arb_fpwrap/fpwrap.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:76: CMakeFiles/arb.dir/all] Error 2 make: *** [Makefile:130: all] Error 2 ian@ian-HP-Stream-Laptop-11-y0XX:~$

fredrik-johansson commented 2 years ago

I have added an explicit include of flint/double_extras.h that might fix this.