* Package: sci-mathematics/ggnfs-0.77.1-r2 * Repository: gentoo * Maintainer: patrick@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * Applying ggnfs-0.77.1-gentoo.patch ... [ ok ] x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o getprimes.o -c getprimes.c getprimes.c: In function ‘pSieve’: getprimes.c:160:24: warning: unused parameter ‘Psize’ [-Wunused-parameter] u32 pSieve(u32 *p, u32 Psize, u32 a, u32 b)  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o fbmisc.o -c fbmisc.c fbmisc.c: In function ‘readPoly’: fbmisc.c:83:24: warning: variable ‘read’ set but not used [-Wunused-but-set-variable] int cont=1 ,set_y=0, read[]={0,0,0,0,0,0,0};  ^ fbmisc.c: In function ‘setLogs’: fbmisc.c:200:47: warning: unused parameter ‘b0’ [-Wunused-parameter] int setLogs(nfs_fb_t *FB, s32 a0, s32 a1, s32 b0, s32 b1)  ^ fbmisc.c: In function ‘generateAFB’: fbmisc.c:393:28: warning: pointer targets in passing argument 1 of ‘root_finder’ differ in signedness [-Wpointer-sign] numZeros = root_finder(zeros, (mpz_t*)FB->f->coef, d, thisP);  ^ In file included from fbmisc.c:29:0: ../include/ggnfs.h:789:5: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ u32 root_finder(u32 * root_buf, mpz_t * A, u32 adeg, u32 p);  ^ fbmisc.c: In function ‘isSmooth_rat_withInfo_par’: fbmisc.c:722:37: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if ((P > FB->maxP_r) || (P<0)) { /* Latter is for signed overflow che  ^ fbmisc.c: In function ‘isSmooth_alg_withInfo_par’: fbmisc.c:814:37: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if ((P > FB->maxP_a) || (P<0)) R[j].b=0;  ^ fbmisc.c:828:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((FB->afb[2*locIndex]==P) && (FB->afb[2*locIndex+1]==r)) {  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o squfof.o -c squfof.c x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o rels.o -c rels.c rels.c: In function ‘writeRelList’: rels.c:358:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0; inumRels; i++) {  ^ rels.c:348:8: warning: variable ‘index’ set but not used [-Wunused-but-set-variable] { s32 index, i;  ^ rels.c: In function ‘readRelList’: rels.c:396:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((size < L->maxDataSize) && (relsRead < L->numRels)) {  ^ rels.c:396:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((size < L->maxDataSize) && (relsRead < L->numRels)) {  ^ rels.c:420:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((relsRead < L->numRels)&&(size < L->maxDataSize)) {  ^ rels.c:420:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((relsRead < L->numRels)&&(size < L->maxDataSize)) {  ^ rels.c:425:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (size >= L->maxDataSize) {  ^ rels.c: In function ‘factRel’: rels.c:509:24: warning: pointer targets in passing argument 1 of ‘factor’ differ in signedness [-Wpointer-sign] numpFacts = factor(pFacts, temp1, 0);  ^ In file included from rels.c:33:0: ../include/ggnfs.h:661:7: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ int factor(u32 *factors, mpz_t n, int useTrialDivision);  ^ rels.c:615:24: warning: pointer targets in passing argument 1 of ‘factor’ differ in signedness [-Wpointer-sign] numpFacts = factor(pFacts, norm, 0);  ^ In file included from rels.c:33:0: ../include/ggnfs.h:661:7: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ int factor(u32 *factors, mpz_t n, int useTrialDivision);  ^ rels.c: In function ‘completeRelFact’: rels.c:764:24: warning: pointer targets in passing argument 1 of ‘factor’ differ in signedness [-Wpointer-sign] numpFacts = factor(pFacts, temp1, 0);  ^ In file included from rels.c:33:0: ../include/ggnfs.h:661:7: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ int factor(u32 *factors, mpz_t n, int useTrialDivision);  ^ rels.c:841:24: warning: pointer targets in passing argument 1 of ‘factor’ differ in signedness [-Wpointer-sign] numpFacts = factor(pFacts, norm, 0);  ^ In file included from rels.c:33:0: ../include/ggnfs.h:661:7: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ int factor(u32 *factors, mpz_t n, int useTrialDivision);  ^ rels.c: In function ‘factRels_clsieved’: rels.c:938:18: warning: variable ‘e’ set but not used [-Wunused-but-set-variable] { int sorted=1, e, res;  ^ In file included from rels.c:33:0: rels.c: In function ‘readRel’: ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ rels.c:320:3: note: in expansion of macro ‘readRaw32’ readRaw32(&sF, fp);  ^ rels.c:330:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&data[1], sizeof(s32), dataSize, fp);  ^ In file included from rels.c:33:0: rels.c: In function ‘readRelList’: ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ rels.c:384:3: note: in expansion of macro ‘readRaw32’ readRaw32(&L->numRels, fp);  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o blanczos64-no-mmx.o -c blanczos64-no-mmx.c blanczos64-no-mmx.c: In function ‘MultB64’: blanczos64-no-mmx.c:229:14: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u32 *p = M->cEntry;  ^ blanczos64-no-mmx.c:252:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s = M->cEntry + M->cIndex[i + 1];  ^ blanczos64-no-mmx.c: In function ‘MultB_T64’: blanczos64-no-mmx.c:309:14: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] u32 *p = M->cEntry;  ^ blanczos64-no-mmx.c:332:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s = M->cEntry + M->cIndex[i + 1];  ^ blanczos64-no-mmx.c: In function ‘blockLanczos64’: blanczos64-no-mmx.c:409:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0; j= n)  ^ blanczos64-no-mmx.c:2269:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0; i<2*n; i++)  ^ blanczos64-no-mmx.c:2273:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (col=0; col= n)  ^ blanczos64-no-mmx.c:2373:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0; iN->FB->rfb_size; i++)  ^ montgomery_sqrt.c:706:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0; iFB->rfb_size; i++) {  ^ montgomery_sqrt.c: In function ‘initMsqrt’: montgomery_sqrt.c:998:26: warning: pointer targets in passing argument 1 of ‘factor’ differ in signedness [-Wpointer-sign] numpFacts = factor(pFacts, tmp, 1);  ^ In file included from montgomery_sqrt.c:29:0: ../include/ggnfs.h:661:7: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ int factor(u32 *factors, mpz_t n, int useTrialDivision);  ^ montgomery_sqrt.c: In function ‘logNorm’: montgomery_sqrt.c:1644:41: warning: unused parameter ‘M’ [-Wunused-parameter] double logNorm(mpz_mat_t *HNF, msqrt_t *M)  ^ montgomery_sqrt.c: In function ‘evalOmegaPoly’: montgomery_sqrt.c:2115:50: warning: unused parameter ‘x’ [-Wunused-parameter] void evalOmegaPoly(mpz_t eval, mpz_poly h, mpz_t x, mpz_t modulus, msqrt_t *M)  ^ montgomery_sqrt.c:2115:59: warning: unused parameter ‘modulus’ [-Wunused-parameter] void evalOmegaPoly(mpz_t eval, mpz_poly h, mpz_t x, mpz_t modulus, msqrt_t *M)  ^ montgomery_sqrt.c: In function ‘montgomerySqrt’: montgomery_sqrt.c:2169:52: warning: variable ‘lastNormDen’ set but not used [-Wunused-but-set-variable] double lastNormA, lastNormN, lastNormNum, lastNormDen;  ^ montgomery_sqrt.c:2169:39: warning: variable ‘lastNormNum’ set but not used [-Wunused-but-set-variable] double lastNormA, lastNormN, lastNormNum, lastNormDen;  ^ montgomery_sqrt.c:2169:28: warning: variable ‘lastNormN’ set but not used [-Wunused-but-set-variable] double lastNormA, lastNormN, lastNormNum, lastNormDen;  ^ montgomery_sqrt.c:2169:17: warning: variable ‘lastNormA’ set but not used [-Wunused-but-set-variable] double lastNormA, lastNormN, lastNormNum, lastNormDen;  ^ montgomery_sqrt.c:2168:23: warning: variable ‘lastDiff’ set but not used [-Wunused-but-set-variable] double diff, lastDiff;  ^ In file included from montgomery_sqrt.c:29:0: montgomery_sqrt.c: In function ‘setupPrimes’: ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:473:9: note: in expansion of macro ‘readRaw32’ readRaw32(&h1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:474:9: note: in expansion of macro ‘readRaw32’ readRaw32(&p1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:475:9: note: in expansion of macro ‘readRaw32’ readRaw32(&r1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:476:9: note: in expansion of macro ‘readRaw32’ readRaw32(&i1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:477:9: note: in expansion of macro ‘readRaw32’ readRaw32(&ct1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:479:9: note: in expansion of macro ‘readRaw32’ readRaw32(&p1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:480:9: note: in expansion of macro ‘readRaw32’ readRaw32(&r1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:481:9: note: in expansion of macro ‘readRaw32’ readRaw32(&i1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:482:9: note: in expansion of macro ‘readRaw32’ readRaw32(&ct1, fp);  ^ montgomery_sqrt.c: In function ‘initMsqrt’: ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:944:3: note: in expansion of macro ‘readRaw32’ readRaw32(&R1, fp);  ^ ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ montgomery_sqrt.c:962:9: note: in expansion of macro ‘readRaw32’ readRaw32(&R1, fp); R1 += R0;  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o matstuff.o -c matstuff.c matstuff.c: In function ‘readSparseMat’: matstuff.c:98:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&M->numRows, sizeof(s32), 1, fp);  ^ matstuff.c:99:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&M->numCols, sizeof(s32), 1, fp);  ^ matstuff.c:100:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&M->maxDataSize, sizeof(s32), 1, fp);  ^ matstuff.c:101:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&M->numDenseBlocks, sizeof(s32), 1, fp);  ^ matstuff.c:102:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(M->denseBlockIndex, sizeof(s32), M->numDenseBlocks, fp);  ^ matstuff.c:104:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(M->cIndex, sizeof(s32), M->numCols+1, fp);  ^ matstuff.c:107:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(M->cEntry, sizeof(s32), M->cIndex[M->numCols], fp);  ^ matstuff.c:110:5: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(M->denseBlocks[i], sizeof(u64), M->numCols, fp);  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o dickman.o -c dickman.c x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o fbgen.o -c fbgen.c x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o llist.o -c llist.c llist.c: In function ‘ll_read’: llist.c:432:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&C->numFields, sizeof(s32), 1, fp);  ^ llist.c:436:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(C->index, sizeof(s32), C->numFields+1, fp);  ^ llist.c:440:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(C->data, sizeof(s32), C->index[C->numFields], fp);  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o if.o -c if.c if.c: In function ‘logbook’: if.c:171:5: warning: ignoring return value of ‘vasprintf’, declared with attribute warn_unused_result [-Wunused-result] vasprintf(&output_str, fmt, arglist);  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o rellist.o -c rellist.c rellist.c: In function ‘allocateRelList’: rellist.c:70:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (!(RL->relIndex = (s32 *)lxmalloc(RL->maxRels * sizeof(s32), 0)))  ^ rellist.c: In function ‘clearRelList’: rellist.c:147:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] RL->relData = RL->relIndex = NULL;  ^ rellist.c: In function ‘pruneRelLists’: rellist.c:203:30: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] for (j = MAX_PR_SIZE-1; (j >=0 ) && (t > 0); j--)  ^ In file included from rellist.h:25:0, from rellist.c:23: rellist.c: In function ‘getRelList’: ../include/ggnfs.h:742:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] #define readRaw32(w,fp) fread((w),sizeof(s32),1,(fp))  ^ rellist.c:107:3: note: in expansion of macro ‘readRaw32’ readRaw32(&RL->maxRels, fp);  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o intutils.o -c intutils.c x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o lasieve4/mpz-ull.o -c lasieve4/mpz-ull.c x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o dlmalloc.o -c dlmalloc.c dlmalloc.c: In function ‘free’: dlmalloc.c:3859:11: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret;  ^ dlmalloc.c: In function ‘mallinfo’: dlmalloc.c:4666:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < NFASTBINS; ++i) {  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o modinv32.o -c modinv32.c x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -o makefb.o -c makefb.c makefb.c: In function ‘makefb’: makefb.c:117:19: warning: pointer targets in passing argument 1 of ‘pSieve’ differ in signedness [-Wpointer-sign] size = pSieve(tmpPtr, size, 1, FB->rLim);  ^ In file included from makefb.c:27:0: ../include/ggnfs.h:690:7: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ u32 pSieve(u32 *p, u32 Psize, u32 a, u32 b);  ^ makefb.c:121:23: warning: pointer targets in passing argument 1 of ‘getPList’ differ in signedness [-Wpointer-sign] tmpPtr = getPList(&size);  ^ In file included from makefb.c:27:0: ../include/ggnfs.h:691:8: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ u32 *getPList(u32 *numPrimes);  ^ makefb.c:121:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] tmpPtr = getPList(&size);  ^ makefb.c:123:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (size < FB->rfb_size) {  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -Wl,-O1 -Wl,--as-needed -o ../bin/sieve sieve.c clsieve.c getprimes.o fbmisc.o squfof.o rels.o blanczos64-no-mmx.o poly.o mpz_poly.o mpz_mat.o smintfact.o misc.o ecm4c.o nfmisc.o matsave.o montgomery_sqrt.o matstuff.o dickman.o fbgen.o llist.o if.o rellist.o intutils.o lasieve4/mpz-ull.o dlmalloc.o modinv32.o makefb.o -lgmp -lm sieve.c: In function ‘catch_term’: sieve.c:71:21: warning: unused parameter ‘sig’ [-Wunused-parameter] void catch_term(int sig)  ^ sieve.c: In function ‘setDependentDefaults’: sieve.c:93:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((job->FB.rfb_size == -1)&&(job->FB.rLim == -1)) {  ^ sieve.c:97:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((job->FB.afb_size == -1)&&(job->FB.aLim == -1)) {  ^ sieve.c:97:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((job->FB.afb_size == -1)&&(job->FB.aLim == -1)) {  ^ sieve.c:101:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (job->FB.maxP_r == -1) {  ^ sieve.c:105:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (job->FB.maxP_a == -1) {  ^ sieve.c: In function ‘main’: sieve.c:231:22: warning: variable ‘fbLoaded’ set but not used [-Wunused-but-set-variable] int i, fbLoaded=0;  ^ sieve.c: In function ‘parseJobFile’: sieve.c:159:5: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(thisLine, 1023, fp);  ^ clsieve.c: In function ‘clSieve’: clsieve.c:238:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=j=k=0; irfb_size; i++) {  ^ clsieve.c:307:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=j=k=0; iafb_size; i++) {  ^ In file included from clsieve.c:26:0: ../include/ggnfs.h:214:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define MAX(_a, _b) ((_a) > (_b) ? (_a) : (_b))  ^ clsieve.c:385:24: note: in expansion of macro ‘MAX’ conf.block_window = (MAX(FB->rLim, FB->aLim)+(BLOCK_SIZE-1))/  ^ ../include/ggnfs.h:214:41: warning: signed and unsigned type in conditional expression [-Wsign-compare] #define MAX(_a, _b) ((_a) > (_b) ? (_a) : (_b))  ^ clsieve.c:385:24: note: in expansion of macro ‘MAX’ conf.block_window = (MAX(FB->rLim, FB->aLim)+(BLOCK_SIZE-1))/  ^ clsieve.c: In function ‘fillHashtableOdd’: clsieve.c:723:47: warning: unused parameter ‘b’ [-Wunused-parameter] void fillHashtableOdd(sieve_conf_t *conf, s32 b, s32 sign)  ^ clsieve.c: In function ‘fillHashtableEven’: clsieve.c:803:48: warning: unused parameter ‘b’ [-Wunused-parameter] void fillHashtableEven(sieve_conf_t *conf, s32 b, s32 sign)  ^ clsieve.c: In function ‘fillSieve’: clsieve.c:1111:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (h < sieve_size)  ^ clsieve.c:1136:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (h < sieve_size)  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -Wl,-O1 -Wl,--as-needed -o ../bin/procrels procrels.c getprimes.o fbmisc.o squfof.o rels.o blanczos64-no-mmx.o poly.o mpz_poly.o mpz_mat.o smintfact.o misc.o ecm4c.o nfmisc.o matsave.o montgomery_sqrt.o matstuff.o dickman.o fbgen.o llist.o if.o rellist.o intutils.o lasieve4/mpz-ull.o dlmalloc.o modinv32.o -lgmp -lm procrels.c: In function ‘countLP’: procrels.c:143:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0; jnumRels; j++) {  ^ procrels.c: In function ‘set_prelF’: procrels.c:264:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (k=0; knumRels; k++) {  ^ procrels.c:216:9: warning: variable ‘a’ set but not used [-Wunused-but-set-variable] s64 a;  ^ procrels.c: In function ‘makeABLookup’: procrels.c:428:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (!(abHash0 = (s32 *)malloc(abHashWords*sizeof(u32)))) {  ^ procrels.c:432:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (!(abHash1 = (s32 *)malloc(abHashWords*sizeof(u32)))) {  ^ procrels.c:436:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if (!(abExtraHash = (s32 *)malloc(abHashWords*sizeof(u32)))) {  ^ procrels.c:459:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (r=0; rnumRels, sizeof(s32), 1, fp);  ^ sqrt.c:64:5: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&C->Rels, sizeof(s32), C->numRels, fp);  ^ sqrt.c: In function ‘main’: sqrt.c:223:5: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&t, sizeof(s32), 1, fp);  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -Wl,-O1 -Wl,--as-needed -o ../bin/polyselect polyselect.c getprimes.o fbmisc.o squfof.o rels.o blanczos64-no-mmx.o poly.o mpz_poly.o mpz_mat.o smintfact.o misc.o ecm4c.o nfmisc.o matsave.o montgomery_sqrt.o matstuff.o dickman.o fbgen.o llist.o if.o rellist.o intutils.o lasieve4/mpz-ull.o dlmalloc.o modinv32.o -lgmp -lm polyselect.c: In function ‘estimateAlpha’: polyselect.c:626:18: warning: pointer targets in passing argument 1 of ‘getPList’ differ in signedness [-Wpointer-sign] p = getPList(&numP);  ^ In file included from polyselect.c:29:0: ../include/ggnfs.h:691:8: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ u32 *getPList(u32 *numPrimes);  ^ polyselect.c:626:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = getPList(&numP);  ^ polyselect.c: In function ‘choose_lc’: polyselect.c:1639:52: warning: unused parameter ‘degree’ [-Wunused-parameter] void choose_lc(mpz_t lc, double approx_lc_log, int degree)  ^ polyselect.c: In function ‘doTest’: polyselect.c:1701:16: warning: variable ‘try’ set but not used [-Wunused-but-set-variable] int cont, try, tryNextM, mTry=0;  ^ polyselect.c:1701:10: warning: variable ‘cont’ set but not used [-Wunused-but-set-variable] int cont, try, tryNextM, mTry=0;  ^ polyselect.c:1699:19: warning: variable ‘log2N’ set but not used [-Wunused-but-set-variable] static double log2N, examineC3Lim;  ^ polyselect.c:1695:34: warning: variable ‘oldLogSize’ set but not used [-Wunused-but-set-variable] { double approx_lc_log, E, oldE, oldLogSize;  ^ polyselect.c: In function ‘isSNFS’: polyselect.c:1945:18: warning: unused parameter ‘N’ [-Wunused-parameter] int isSNFS(mpz_t N)  ^ polyselect.c: In function ‘writeFactPars’: polyselect.c:1956:40: warning: unused parameter ‘P’ [-Wunused-parameter] void writeFactPars(FILE *fp, Iparam_t *P)  ^ polyselect.c: In function ‘getInputFromFile’: polyselect.c:1888:5: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(tmpStr, 256, fp);  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -Wl,-O1 -Wl,--as-needed -D_MAKEFB_STANDALONE -o ../bin/makefb \ makefb.c getprimes.o fbmisc.o squfof.o rels.o blanczos64-no-mmx.o poly.o mpz_poly.o mpz_mat.o smintfact.o misc.o ecm4c.o nfmisc.o matsave.o montgomery_sqrt.o matstuff.o dickman.o fbgen.o llist.o if.o rellist.o intutils.o lasieve4/mpz-ull.o dlmalloc.o modinv32.o -lgmp -lm makefb.c: In function ‘makefb’: makefb.c:117:19: warning: pointer targets in passing argument 1 of ‘pSieve’ differ in signedness [-Wpointer-sign] size = pSieve(tmpPtr, size, 1, FB->rLim);  ^ In file included from makefb.c:27:0: ../include/ggnfs.h:690:7: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ u32 pSieve(u32 *p, u32 Psize, u32 a, u32 b);  ^ makefb.c:121:23: warning: pointer targets in passing argument 1 of ‘getPList’ differ in signedness [-Wpointer-sign] tmpPtr = getPList(&size);  ^ In file included from makefb.c:27:0: ../include/ggnfs.h:691:8: note: expected ‘uint32_t *’ but argument is of type ‘int32_t *’ u32 *getPList(u32 *numPrimes);  ^ makefb.c:121:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] tmpPtr = getPList(&size);  ^ makefb.c:123:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (size < FB->rfb_size) {  ^ x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -Wl,-O1 -Wl,--as-needed -o ../bin/matsolve matsolve.c getprimes.o fbmisc.o squfof.o rels.o blanczos64-no-mmx.o poly.o mpz_poly.o mpz_mat.o smintfact.o misc.o ecm4c.o nfmisc.o matsave.o montgomery_sqrt.o matstuff.o dickman.o fbgen.o llist.o if.o rellist.o intutils.o lasieve4/mpz-ull.o dlmalloc.o modinv32.o -lgmp -lm x86_64-pc-linux-gnu-gcc -I. -I.. -I../include -march=native -O2 -pipe -Wformat -Werror=format-security -DNDEBUG -W -Wall -DGGNFS_HOST_GENERIC -DMALLOC_REPORTING -Wl,-O1 -Wl,--as-needed -o ../bin/matbuild matbuild.c combparts.c \ getprimes.o fbmisc.o squfof.o rels.o blanczos64-no-mmx.o poly.o mpz_poly.o mpz_mat.o smintfact.o misc.o ecm4c.o nfmisc.o matsave.o montgomery_sqrt.o matstuff.o dickman.o fbgen.o llist.o if.o rellist.o intutils.o lasieve4/mpz-ull.o dlmalloc.o modinv32.o -lgmp -lm matbuild.c: In function ‘getCols’: matbuild.c:374:63: warning: unused parameter ‘lpF’ [-Wunused-parameter] s32 getCols(char *colName, multi_file_t *prelF, multi_file_t *lpF, nfs_fb_t *FB  ^ matbuild.c: In function ‘main’: matbuild.c:715:24: warning: variable ‘line’ set but not used [-Wunused-but-set-variable] char str[128], line[128];  ^ matbuild.c:794:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(&relsInFile, sizeof(s32), 1, fp);  ^ combparts.c: In function ‘sortByNumLP’: combparts.c:71:5: error: format not a string literal and no format arguments [-Werror=format-security] printf(str);  ^ combparts.c: In function ‘mkUniquePairs’: combparts.c:301:13: warning: variable ‘k’ set but not used [-Wunused-but-set-variable] { s32 i, j, k;  ^ combparts.c: In function ‘merge’: combparts.c:327:21: warning: variable ‘pnum’ set but not used [-Wunused-but-set-variable] { s32 i, j, k, pnum, relnum, numAdds, c1, ck;  ^ combparts.c:322:62: warning: unused parameter ‘P1’ [-Wunused-parameter] int merge(llist_t *R, llist_t *P, llist_t *revP, s32 P0, s32 P1, int level)  ^ combparts.c: In function ‘reduceRelSets’: combparts.c:620:40: warning: unused parameter ‘P’ [-Wunused-parameter] s32 reduceRelSets(llist_t *R, llist_t *P)  ^ cc1: some warnings being treated as errors Makefile:110: recipe for target '../bin/matbuild' failed make: *** [../bin/matbuild] Error 1 * ERROR: sci-mathematics/ggnfs-0.77.1-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sci-mathematics/ggnfs-0.77.1-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-mathematics/ggnfs-0.77.1-r2::gentoo'`. * The complete build log is located at '/var/log/portage/sci-mathematics:ggnfs-0.77.1-r2:20150304-032324.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-mathematics/ggnfs-0.77.1-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/ggnfs-0.77.1-r2/temp/environment'. * Working directory: '/var/tmp/portage/sci-mathematics/ggnfs-0.77.1-r2/work/ggnfs-master/src' * S: '/var/tmp/portage/sci-mathematics/ggnfs-0.77.1-r2/work/ggnfs-master'