sendto MSG_WAITALL not supported
Open
Nobody has claimed this yet.
feature
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
-
Your Windows build number: Microsoft Windows [Version 10.0.16299.19]
-
What you're doing and what's happening:
Download the Cuba library here and run make
$ ./configure
$ make
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. '/locale/en_US/LC_MESSAGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/vegas -DNOUNDERSCORE -c -o Vegas.o ./src/vegas/Vegas.c
ar rv libcuba.a Vegas.o
r - Vegas.o
rm -f Vegas.o
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'Vegas.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'Vegas_.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/vegas -c -o Vegas_.o ./src/vegas/Vegas.c
ar rv libcuba.a Vegas_.o
r - Vegas_.o
rm -f Vegas_.o
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'Vegas_.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'llVegas.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/vegas -DLONGLONGINT -DNOUNDERSCORE -c -o llVegas.o ./src/vegas/Vegas.c
ar rv libcuba.a llVegas.o
r - llVegas.o
rm -f llVegas.o
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'llVegas.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'llVegas_.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/vegas -DLONGLONGINT -c -o llVegas_.o ./src/vegas/Vegas.c
ar rv libcuba.a llVegas_.o
r - llVegas_.o
rm -f llVegas_.o
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'llVegas_.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'Suave.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/suave -DNOUNDERSCORE -c -o Suave.o ./src/suave/Suave.c
ar rv libcuba.a Suave.o
r - Suave.o
rm -f Suave.o
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'Suave.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'Suave_.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/suave -c -o Suave_.o ./src/suave/Suave.c
ar rv libcuba.a Suave_.o
r - Suave_.o
rm -f Suave_.o
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'Suave_.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'llSuave.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/suave -DLONGLONGINT -DNOUNDERSCORE -c -o llSuave.o ./src/suave/Suave.c
ar rv libcuba.a llSuave.o
r - llSuave.o
rm -f llSuave.o
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'llSuave.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'llSuave_.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/suave -DLONGLONGINT -c -o llSuave_.o ./src/suave/Suave.c
ar rv libcuba.a llSuave_.o
r - llSuave_.o
rm -f llSuave_.o
make: Warning: Archive 'libcuba.a' seems to have been created in deterministic mode. 'llSuave_.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
gcc -O3 -fomit-frame-pointer -ffast-math -Wall -DHAVE_CONFIG_H -DREALSIZE=8 -I./src/common -I. -I. -I./src/divonne -DNOUNDERSCORE -c -o Divonne.o ./src/divonne/Divonne.c
In file included from ./src/divonne/Sample.c:199:0,
from ./src/divonne/common.c:12,
from ./src/common/CSample.c:75,
from ./src/divonne/Divonne.c:14:
./src/divonne/KorobovCoeff.c: In function ‘SamplesAlloc’:
./src/divonne/KorobovCoeff.c:1:1: error: ‘KorobovCoeff’ undeclared (first use in this function)
KorobovCoeff.c-9689
^
./src/divonne/KorobovCoeff.c:1:1: note: each undeclared identifier is reported only once for each function it appears in
In file included from ./src/divonne/common.c:12:0,
from ./src/common/CSample.c:75,
from ./src/divonne/Divonne.c:14:
./src/divonne/Sample.c:201:3: error: expected ‘;’ before ‘number’
number nx, nf;
^
In file included from ./src/divonne/decl.h:9:0,
from ./src/divonne/Divonne.c:13:
./src/divonne/Sample.c:204:27: error: ‘prime’ undeclared (first use in this function)
enum { max = Elements(prime) - 2 };
^
./src/common/stddecl.h:127:29: note: in definition of macro ‘Elements’
#define Elements(x) (sizeof(x)/sizeof(*x))
^
./src/divonne/Sample.c:205:37: error: ‘MAXPRIME’ undeclared (first use in this function)
cint n = IMin(2*samples->n - 1, MAXPRIME);
^
./src/common/stddecl.h:523:19: note: in definition of macro ‘IDim’
#define IDim(a) ((a) & NegQ(-(a)))
^
./src/divonne/Sample.c:205:14: note: in expansion of macro ‘IMin’
cint n = IMin(2*samples->n - 1, MAXPRIME);
^
In file included from ./src/divonne/common.c:12:0,
from ./src/common/CSample.c:75,
from ./src/divonne/Divonne.c:14:
./src/divonne/Sample.c:206:13: warning: implicit declaration of function ‘Hash’ [-Wimplicit-function-declaration]
int i = Hash(n), p;
^
./src/divonne/Sample.c:215:22: error: ‘coeff’ undeclared (first use in this function)
samples->coeff = coeff[i][t->ndim - KOROBOV_MINDIM];
^
./src/divonne/Sample.c:215:41: error: ‘KOROBOV_MINDIM’ undeclared (first use in this function)
samples->coeff = coeff[i][t->ndim - KOROBOV_MINDIM];
^
./src/divonne/Sample.c:220:3: error: ‘nx’ undeclared (first use in this function)
nx = t->ndim*(samples->n + 1); /* need 1 for extrapolation */
^
./src/divonne/Sample.c:221:3: error: ‘nf’ undeclared (first use in this function)
nf = t->ncomp*(samples->n + 1);
^
In file included from ./src/common/CSample.c:75:0,
from ./src/divonne/Divonne.c:14:
./src/divonne/common.c: In function ‘BadDimension’:
./src/divonne/common.c:24:20: error: ‘KOROBOV_MINDIM’ undeclared (first use in this function)
return t->ndim < KOROBOV_MINDIM || t->ndim > KOROBOV_MAXDIM;
^
./src/divonne/common.c:24:48: error: ‘KOROBOV_MAXDIM’ undeclared (first use in this function)
return t->ndim < KOROBOV_MINDIM || t->ndim > KOROBOV_MAXDIM;
^
In file included from ./src/common/CSample.c:81:0,
from ./src/divonne/Divonne.c:14:
./src/divonne/Integrate.c: In function ‘Integrate’:
./src/divonne/Integrate.c:211:19: error: ‘MAXPRIME’ undeclared (first use in this function)
if( nneed < MAXPRIME ) {
^
In file included from ./src/common/CSample.c:75:0,
from ./src/divonne/Divonne.c:14:
./src/divonne/common.c: In function ‘BadDimension’:
./src/divonne/common.c:25:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
makefile:179: recipe for target 'libcuba.a(Divonne.o)' failed
make: *** [libcuba.a(Divonne.o)] Error 1
- What's wrong / what should be happening instead: This library can be correctly
makeand./demo-cin normal Linux.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report with Cuba 4.2 by running ./configure and make on the reported Windows build, then inspect the failing makefile target libcuba.a(Divonne.o). Start with src/divonne/KorobovCoeff.c, Sample.c, common.c, and Integrate.c, and compare the result with the stated successful Linux build and ./demo-c run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100