Kezdőlap › Fórumok › Fedora Core / RedHat /CentOS › Fedora/RedHat kezdõ › Crafty 23.1 + FC12 alatt
- This topic has 5 hozzászólás, 4 résztvevő, and was last updated 15 years, 6 months telt el by
ventura.
-
SzerzőBejegyzés
-
2009-12-13-22:46 #2197367
Érdemben nem…
De a make előtt nem volt valamiféle configure?
Az nem jelezte a függőségi hibákat?2009-12-13-22:49 #2197368sakkmesterke wrote:main.c:3908: warning: passing argument 2 of ‘numa_node_to_cpus’ from incompatible pointer type
/usr/include/numa.h:274: note: expected ‘struct bitmask *’ but argument is of type ‘long unsigned int *’
main.c:3908: error: too many arguments to function ‘numa_node_to_cpus’– a main.c 3908-as sora: numa_node_to_cpus(0, cpus, 64);
– az /usr/include/numa.h:274 sora pedig: int numa_node_to_cpus(int, struct bitmask *);Mivel a header szerint kettő paramétert vár, a háromra elég jogosan panaszkodik.
2009-12-13-23:06 #2197369Erre sajnos már én is rájöttem :-:
Idézet egy leirásból: http://linux.die.net/man/3/numa
numa_node_to_cpus() converts a node number to a bitmask of CPUs. The user must pass a long enough buffer. If the buffer is not long enough errno will be set to ERANGE and -1 returned. On success 0 is returned.
numa_node_to_cpus(0, cpus, 64);
printf(„nMachine is NUMA, %d nodes (%d cpus/node)nn”,
numa_max_node() + 1, PopCnt(cpus[0]));ezek az elvárások, szerintem csak numa_node_to_cpus(cpus, 64);…
2009-12-13-23:09 #2197370Megvan sikerült, köszi kisbetü, érdemi volt a segitség!
2009-12-14-18:18 #2197371szia
scid et használsz mint adatbázis érdemes hozzá feltenni a glaurung engine-t is mivel az UCI kompatibilis, és elég erős az is.
2009-12-19-23:17 #1889389Sziasztok,
Ma egy újabb megoldatlan problémával szembesültem fedorás tevékenységem során.
Szerettem volna Crafty sakkmotort forgatni forrásból, de sajnos csak eddig jutottam:[attila@laptop crafty-23.1]$ make linux-amd64
make target=LINUX
CC=gcc CXX=g++
CFLAGS=’ -Wall -pipe
-fbranch-probabilities -fomit-frame-pointer -O3 -march=k8′
CXFLAGS=
LDFLAGS=’ -lpthread -lnuma -lstdc++’
opt=’ -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA’
crafty-make
…
…
main.c:3908: warning: passing argument 2 of ‘numa_node_to_cpus’ from incompatible pointer type
/usr/include/numa.h:274: note: expected ‘struct bitmask *’ but argument is of type ‘long unsigned int *’
main.c:3908: error: too many arguments to function ‘numa_node_to_cpus’
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/attila/Letöltések/crafty-23.1′
make[1]: *** [crafty-make] Error 2
make[1]: Leaving directory `/home/attila/Letöltések/crafty-23.1′
make: *** [linux-amd64] Error 2
[attila@laptop crafty-23.1]$Megjegyzés:
– duplamagos a proci, 64 bites, rendszer: FC12.
– numactl és a devel is fent van
– a main.c 3908-as sora: numa_node_to_cpus(0, cpus, 64);
– az /usr/include/numa.h:274 sora pedig: int numa_node_to_cpus(int, struct bitmask *);Tudna valaki ebben érdemben segiteni? Köszönöm!
-
SzerzőBejegyzés
- Be kell jelentkezni a hozzászóláshoz.
legutóbbi hsz