Skip to content

Instantly share code, notes, and snippets.

@ttofis
Created August 18, 2017 12:24
Show Gist options
  • Save ttofis/7c4389c9743046967bd0cf828069b8eb to your computer and use it in GitHub Desktop.
Save ttofis/7c4389c9743046967bd0cf828069b8eb to your computer and use it in GitHub Desktop.
ELChris414@ZENACHRIS:/mnt/c/Users/Chris/Desktop/sk/sk$ make clean all
rm main.o game.o generator.cp.o generator.hu.o ai.cp.o ai.hu.o evaluate.o hashtable.o sk
rm: cannot remove ‘sk’: No such file or directory
make: [clean] Error 1 (ignored)
gcc -std=c11 -D_POSIX_C_SOURCE=199309 -fPIC -DNDEBUG -O3 -c -o main.o main.c
main.c: In function ‘main’:
main.c:135:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(buf, sizeof(buf), stdin);
^
main.c:155:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(buf, sizeof(buf), stdin);
^
gcc -std=c11 -D_POSIX_C_SOURCE=199309 -fPIC -DNDEBUG -O3 -c -o game.o game.c
gcc -std=c11 -D_POSIX_C_SOURCE=199309 -fPIC -DNDEBUG -O3 -c -o generator.cp.o generator.cp.c
gcc -std=c11 -D_POSIX_C_SOURCE=199309 -fPIC -DNDEBUG -O3 -c -o generator.hu.o generator.hu.c
gcc -std=c11 -D_POSIX_C_SOURCE=199309 -fPIC -DNDEBUG -O3 -c -o ai.cp.o ai.cp.c
In file included from ai.cp.c:2:0:
ai.c: In function ‘join_bms_thread’:
ai.c:270:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return (score_t) score_asptr;
^
gcc -std=c11 -D_POSIX_C_SOURCE=199309 -fPIC -DNDEBUG -O3 -c -o ai.hu.o ai.hu.c
In file included from ai.hu.c:2:0:
ai.c: In function ‘join_bms_thread’:
ai.c:270:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return (score_t) score_asptr;
^
gcc -std=c11 -D_POSIX_C_SOURCE=199309 -fPIC -DNDEBUG -O3 -c -o evaluate.o evaluate.c
gcc -std=c11 -D_POSIX_C_SOURCE=199309 -fPIC -DNDEBUG -O3 -c -o hashtable.o hashtable.c
hashtable.c: In function ‘hashtable_get_hash’:
hashtable.c:57:5: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
lock_bucket(bucket);
^
hashtable.c: In function ‘rehash’:
hashtable.c:162:5: warning: implicit declaration of function ‘bzero’ [-Wimplicit-function-declaration]
bzero(hashtable, sizeof(hashtable));
^
hashtable.c: In function ‘setup_hashes’:
hashtable.c:202:5: warning: implicit declaration of function ‘srandom’ [-Wimplicit-function-declaration]
srandom(1);
^
hashtable.c:205:9: warning: implicit declaration of function ‘random’ [-Wimplicit-function-declaration]
hash_bytes[i] = random();
^
gcc main.o game.o generator.cp.o generator.hu.o ai.cp.o ai.hu.o evaluate.o hashtable.o -pthread -lrt -fPIC -o sk
game.o: In function `make_move':
game.c:(.text+0x5d6): relocation truncated to fit: R_X86_64_PC32 against symbol `component_hashes' defined in COMMON section in hashtable.o
game.c:(.text+0x672): relocation truncated to fit: R_X86_64_PC32 against symbol `component_hashes' defined in COMMON section in hashtable.o
game.c:(.text+0x6e3): relocation truncated to fit: R_X86_64_PC32 against symbol `cp_move_component' defined in COMMON section in hashtable.o
hashtable.o: In function `hash_game':
hashtable.c:(.text+0x389): relocation truncated to fit: R_X86_64_PC32 against symbol `component_hashes' defined in COMMON section in hashtable.o
hashtable.c:(.text+0x3aa): relocation truncated to fit: R_X86_64_PC32 against symbol `cp_move_component' defined in COMMON section in hashtable.o
hashtable.o: In function `setup_hashes':
hashtable.c:(.text+0x503): relocation truncated to fit: R_X86_64_PC32 against symbol `component_hashes' defined in COMMON section in hashtable.o
hashtable.c:(.text+0x532): relocation truncated to fit: R_X86_64_PC32 against symbol `cp_move_component' defined in COMMON section in hashtable.o
collect2: error: ld returned 1 exit status
make: *** [sk] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment