Running phase: unpackPhase unpacking sources unpacking source archive /nix/store/613frhd9nqzdbg4hiarzm4g1yaw24czh-p95v308b15.source.zip source root is . setting SOURCE_DATE_EPOCH to timestamp 1651850022 of file ./macosx64/makefile Running phase: patchPhase patching sources Running phase: configurePhase configuring no configure script, doing nothing Running phase: buildPhase building make: Entering directory '/build/gwnum' gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c cpuid.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c gwnum.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c gwtables.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c gwthread.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c gwini.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c gwbench.c In file included from gwbench.c:90: ../sqlite-amalgamation-3180000/sqlite3.c: In function 'sqlite3SelectNew': ../sqlite-amalgamation-3180000/sqlite3.c:116401:10: warning: function may return address of local variable [-Wreturn-local-addr] 116401 | return pNew; | ^~~~ ../sqlite-amalgamation-3180000/sqlite3.c:116361:10: note: declared here 116361 | Select standin; | ^~~~~~~ gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c gwutil.c g++ -I.. -I../qd -std=c++11 -O2 -march=i486 -malign-double -c gwdbldbl.cpp gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c giants.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c radix.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c ecmstag1.c cp linux/gwnum.a . ar -rs gwnum.a cpuid.o gwnum.o gwtables.o gwthread.o gwini.o gwbench.o gwutil.o gwdbldbl.o giants.o radix.o ecmstag1.o gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -c polymult.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -Dsse2 -msse2 -c -o polymult_sse2.o polymult.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -DAVX -mavx -c -o polymult_avx.o polymult.c gcc -I.. -I../sqlite-amalgamation-3180000 -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -DFMA -mfma -c -o polymult_fma.o polymult.c ar -rs polymult.a polymult.o polymult_sse2.o polymult_avx.o polymult_fma.o ar: creating polymult.a make: Leaving directory '/build/gwnum' make: Entering directory '/build/linux' [ ! -e ../security.h ] && touch ../security.h || true [ ! -e ../security.c ] && touch ../security.c || true [ ! -e ../secure5.c ] && touch ../secure5.c || true gcc -I.. -I../gwnum -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -DPORT=2 -c prime.c In file included from prime.c:101: ../commonb.c: In function 'openWriteSaveFile': ../commonb.c:3727:44: warning: '%s' directive writing up to 79 bytes into a region of size 32 [-Wformat-overflow=] 3727 | sprintf (output_filename, "%s.write", state->base_filename); | ^~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 7 and 86 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'closeWriteSaveFile': ../commonb.c:3767:39: warning: '%s' directive writing up to 79 bytes into a region of size 32 [-Wformat-overflow=] 3767 | else sprintf (dest_filename, "%s.bu%d", state->base_filename, rename_count-1); | ^~ ../commonb.c:3767:38: note: using the range [-2147483648, 2147483647] for directive argument 3767 | else sprintf (dest_filename, "%s.bu%d", state->base_filename, rename_count-1); | ^~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 94 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3766:62: warning: '%s' directive writing up to 79 bytes into a region of size 32 [-Wformat-overflow=] 3766 | else if (rename_count == 2) sprintf (dest_filename, "%s.bu", state->base_filename); | ^~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 4 and 83 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3776:46: warning: '%s' directive writing up to 79 bytes into a region of size 32 [-Wformat-overflow=] 3776 | else sprintf (src_filename, "%s.bu%d", state->base_filename, rename_count-1); | ^~ ../commonb.c:3776:45: note: using the range [-2147483648, 2147483647] for directive argument 3776 | else sprintf (src_filename, "%s.bu%d", state->base_filename, rename_count-1); | ^~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 94 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3775:69: warning: '%s' directive writing up to 79 bytes into a region of size 32 [-Wformat-overflow=] 3775 | else if (rename_count == 2) sprintf (src_filename, "%s.bu", state->base_filename); | ^~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 4 and 83 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3773:64: warning: '%s' directive writing up to 79 bytes into a region of size 32 [-Wformat-overflow=] 3773 | if (rename_count == 0) sprintf (src_filename, "%s.write", state->base_filename); | ^~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 7 and 86 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'deleteWriteSaveFile': ../commonb.c:3805:44: warning: '%s' directive writing up to 79 bytes into a region of size 32 [-Wformat-overflow=] 3805 | sprintf (output_filename, "%s.write", state->base_filename); | ^~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 7 and 86 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'unlinkSaveFiles': ../commonb.c:3819:46: warning: '.bad' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3819 | sprintf (unlink_filename, "%s.bad%d", state->base_filename, i); | ^~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 6 and 95 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3825:59: warning: '.bu' directive writing 3 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3825 | else sprintf (unlink_filename, "%s.bu%d", state->base_filename, i); | ^~~ ../commonb.c:3825:56: note: using the range [-2147483648, 2147483647] for directive argument 3825 | else sprintf (unlink_filename, "%s.bu%d", state->base_filename, i); | ^~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 94 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3824:66: warning: '.bu' directive writing 3 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3824 | if (i == 1) sprintf (unlink_filename, "%s.bu", state->base_filename); | ^~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 4 and 83 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3835:38: warning: '.write' directive writing 6 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3835 | sprintf (unlink_filename, "%s.write", state->base_filename); | ^~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 7 and 86 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:103: ../primenet.c: In function 'primenet_parse_page': ../primenet.c:1079:36: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 1079 | sprintf (buf, "%s\n", errtxt); | ^ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 2 and 4097 bytes into a destination of size 4096 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:103: ../primenet.c:1070:32: warning: '%s' directive writing up to 4095 bytes into a region of size 2000 [-Wformat-overflow=] 1070 | sprintf (buf, "%s\n", errtxt); | ^~ ~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 2 and 4097 bytes into a destination of size 2000 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'saveFileExists': ../commonb.c:3608:62: warning: '.bad' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3608 | sprintf (state->current_filename, "%s.bad%d", state->base_filename, maxbad - (state->read_attempt - 50)); | ^~~~ ../commonb.c:3608:59: note: directive argument in the range [-2147483596, 2147483597] 3608 | sprintf (state->current_filename, "%s.bad%d", state->base_filename, maxbad - (state->read_attempt - 50)); | ^~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 6 and 95 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3596:62: warning: '.write' directive writing 6 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3596 | sprintf (state->current_filename, "%s.write", state->base_filename); | ^~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 7 and 86 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3587:62: warning: '.bu' directive writing 3 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3587 | sprintf (state->current_filename, "%s.bu%d", state->base_filename, state->read_attempt - 1); | ^~~ ../commonb.c:3587:59: note: using the range [-2147483648, 2147483647] for directive argument 3587 | sprintf (state->current_filename, "%s.bu%d", state->base_filename, state->read_attempt - 1); | ^~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 94 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3579:62: warning: '.bu' directive writing 3 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3579 | sprintf (state->current_filename, "%s.bu", state->base_filename); | ^~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 4 and 83 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'saveFileBad': ../commonb.c:3678:46: warning: '.bad' directive writing 4 bytes into a region of size between 1 and 80 [-Wformat-overflow=] 3678 | sprintf (oldname, "%s.bad%d", state->base_filename, i); | ^~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 6 and 95 bytes into a destination of size 80 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:3688:39: warning: '%s' directive writing up to 255 bytes into a region of size between 164 and 243 [-Wformat-overflow=] 3688 | sprintf (buf, "Renaming %s to %s\n", state->current_filename, filename); | ^~ ~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 15 and 349 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:106: ../gwtest.c: In function 'test_it_all': ../gwtest.c:317:47: warning: '%s' directive writing up to 199 bytes into a region of size between 184 and 243 [-Wformat-overflow=] 317 | sprintf (buf, "QA of %s using %s\n", gwmodulo_as_string (&gwdata), fft_desc); | ^~ ~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 15 and 273 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'selfTestInternal': ../commonb.c:7841:31: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 7841 | sprintf (buf, SELF1, iter, addl_msg, ll_iters, in_place ? "in-place " : "", p, fft_desc); | ^~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 58 or more bytes (assuming 257) into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'primeSieveTest': ../commonb.c:8748:62: warning: ' different factor found. ' directive writing 25 bytes into a region of size between 9 and 498 [-Wformat-overflow=] 8748 | sprintf (buf, "%ld %s different factor found.\n", p, fac); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 28 and 517 bytes into a destination of size 500 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:8762:58: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 8762 | bad: sprintf (buf, "%ld %s factor not found.\n", p, fac); | ^ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 22 and 511 bytes into a destination of size 500 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:8674:66: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 8674 | sprintf (buf, "%ld %s factor too small.\n", p, fac); | ^ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 22 and 511 bytes into a destination of size 500 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'generateProofFile': ../commonb.c:10918:93: warning: '%s' directive writing up to 499 bytes into a region of size 467 [-Wformat-overflow=] 10918 | sprintf (buf, "Cannot open PRP proof interim residues file: %s\n", ps->residues_filename); | ^~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 47 and 546 bytes into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:11087:68: warning: '%s' directive writing up to 503 bytes into a region of size 492 [-Wformat-overflow=] 11087 | sprintf (buf, "Error renaming from %s to %s\n", tmp_proof_filename, proof_filename); | ^~ ~~~~~~~~~~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 26 and 1028 bytes into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:10932:70: warning: '%s' directive writing up to 499 bytes into a region of size 482 [-Wformat-overflow=] 10932 | sprintf (buf, "Cannot create PRP proof file: %s\n", proof_filename); | ^~ ~~~~~~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 32 and 531 bytes into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'prime': ../commonb.c:7217:51: warning: '%03ld' directive writing between 3 and 11 bytes into a region of size between 0 and 31 [-Wformat-overflow=] 7217 | sprintf (interimfile, "%s.%03ld", filename, counter / INTERIM_FILES); | ^~~~~ ../commonb.c:7217:47: note: using the range [-2147483648, 2147483647] for directive argument 7217 | sprintf (interimfile, "%s.%03ld", filename, counter / INTERIM_FILES); | ^~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 44 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'SetPriority': ../commonb.c:566:87: warning: '%s' directive writing up to 254 bytes into a region of size 224 [-Wformat-overflow=] 566 | sprintf (buf, "Error parsing affinity string: %s\n", logical_CPU_string); | ^~ ~~~~~~~~~~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 33 and 287 bytes into a destination of size 255 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c:597:62: warning: '%s' directive writing up to 254 bytes into a region of size 242 [-Wformat-overflow=] 597 | else sprintf (buf+strlen(buf), "logical CPUs %s (zero-based)\n", logical_CPU_substring); | ^~ ~~~~~~~~~~~~~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 28 and 282 bytes into a destination of size 255 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from prime.c:101: ../commonb.c: In function 'prp': ../commonb.c:12992:51: warning: '%03ld' directive writing between 3 and 11 bytes into a region of size between 0 and 31 [-Wformat-overflow=] 12992 | sprintf (interimfile, "%s.%03ld", filename, ps.counter / INTERIM_FILES); | ^~~~~ ../commonb.c:12992:47: note: using the range [-2147483648, 2147483647] for directive argument 12992 | sprintf (interimfile, "%s.%03ld", filename, ps.counter / INTERIM_FILES); | ^~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from prime.c:11: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 44 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -I.. -I../gwnum -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -DPORT=2 -c menu.c gcc -c ../cJSON.c g++ -I.. -I../gwnum -I../../boost_1_76_0 -Wno-unused-result -march=i486 -malign-double -std=c++11 -O2 -DPORT=2 -c ../ecm.cpp ../ecm.cpp: In function 'int pminus1(int, PriorityInfo*, work_unit*)': ../ecm.cpp:8358:20: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long unsigned int' [-Wformat=] 8358 | else sprintf (buf, "FFT: %d, B2: %" PRIu64 "/%" PRIu64 ", numvals: %d/%d, poly: %dx%d, efficiency: %.0f\n", (int) gwfftlen (&pm1data.gwdata), pm1data.C, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../ecm.cpp: In function 'int pfactor(int, PriorityInfo*, work_unit*)': ../ecm.cpp:10289:49: warning: '%s' directive writing up to 119 bytes into a region of size 95 [-Wformat-overflow=] 10289 | sprintf (buf, "Optimal P-1 factoring of %s using up to %luMB of memory.\n", testnum, max_mem (thread_num)); | ^~ ~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from ../common.h:17, from ../ecm.cpp:20: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 54 and 182 bytes into a destination of size 120 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ../ecm.cpp:10299:34: warning: ' does not need P-1 factoring. ' directive writing 30 bytes into a region of size between 1 and 120 [-Wformat-overflow=] 10299 | sprintf (buf, "%s does not need P-1 factoring.\n", testnum); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/stdio.h:906, from ../common.h:17, from ../ecm.cpp:20: /nix/store/7vm0cxq48wb5sgsq20a6f5w8a42lgcfm-glibc-2.35-224-dev/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 31 and 150 bytes into a destination of size 120 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -I.. -I../gwnum -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -DPORT=2 -c ../exponentiate.c g++ -I.. -I../gwnum -I../../boost_1_76_0 -Wno-unused-result -march=i486 -malign-double -std=c++11 -O2 -DPORT=2 -c ../pair.cpp gcc -c ../pm1prob.c In file included from ../pm1prob.c:5: ../common.h:21:10: fatal error: gwnum.h: No such file or directory 21 | #include "gwnum.h" // GWnum FFT library | ^~~~~~~~~ compilation terminated. make: *** [makefile:63: pm1prob.o] Error 1 make: Leaving directory '/build/linux'