Skip to content

Instantly share code, notes, and snippets.

@alganet
Created March 8, 2021 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alganet/54205098a254ca506f27f6a3221b68b2 to your computer and use it in GitHub Desktop.
Save alganet/54205098a254ca506f27f6a3221b68b2 to your computer and use it in GitHub Desktop.
make partial log
/bin/bash php-src/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/hash/ -Iphp-src/ext/hash/ -Iphp-src/include -Iphp-src/main -Iphp-src -Iphp-src/ext/date/lib -Iphp-src/TSRM -Iphp-src/Zend -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -Wextra -std=c99 -static -fno-pie -no-pie -mno-red-zone -nostdlib -nostdinc -fno-omit-frame-pointer -pg -mnop-mcount -I./include -include ./cosmopolitan/cosmopolitan.h -fvisibility=hidden -Iphp-src/ext/hash/sha3/generic64lc -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iphp-src/ext/hash/xxhash -c php-src/ext/hash/hash_xxhash.c -o ext/hash/hash_xxhash.lo -MMD -MF ext/hash/hash_xxhash.dep -MT ext/hash/hash_xxhash.lo
In file included from php-src/Zend/zend_config.h:1,
from php-src/Zend/zend_portability.h:43,
from php-src/Zend/zend_types.h:25,
from php-src/Zend/zend.h:27,
from php-src/main/php.h:31,
from php-src/ext/hash/php_hash.h:20,
from php-src/ext/hash/hash_xxhash.c:17:
php-src/include/../main/php_config.h:1976: warning: "SIZEOF_INT" redefined
1976 | #define SIZEOF_INT 4
|
In file included from <command-line>:
././cosmopolitan/cosmopolitan.h:2155: note: this is the location of the previous definition
2155 | #define SIZEOF_INT __SIZEOF_INT__
|
In file included from php-src/Zend/zend_config.h:1,
from php-src/Zend/zend_portability.h:43,
from php-src/Zend/zend_types.h:25,
from php-src/Zend/zend.h:27,
from php-src/main/php.h:31,
from php-src/ext/hash/php_hash.h:20,
from php-src/ext/hash/hash_xxhash.c:17:
php-src/include/../main/php_config.h:1982: warning: "SIZEOF_LONG" redefined
1982 | #define SIZEOF_LONG 8
|
In file included from <command-line>:
././cosmopolitan/cosmopolitan.h:2156: note: this is the location of the previous definition
2156 | #define SIZEOF_LONG __SIZEOF_LONG__
|
In file included from php-src/Zend/zend_config.h:1,
from php-src/Zend/zend_portability.h:43,
from php-src/Zend/zend_types.h:25,
from php-src/Zend/zend.h:27,
from php-src/main/php.h:31,
from php-src/ext/hash/php_hash.h:20,
from php-src/ext/hash/hash_xxhash.c:17:
php-src/include/../main/php_config.h:1985: warning: "SIZEOF_LONG_LONG" redefined
1985 | #define SIZEOF_LONG_LONG 8
|
In file included from <command-line>:
././cosmopolitan/cosmopolitan.h:2157: note: this is the location of the previous definition
2157 | #define SIZEOF_LONG_LONG __SIZEOF_LONG_LONG__
|
In file included from php-src/Zend/zend_config.h:1,
from php-src/Zend/zend_portability.h:43,
from php-src/Zend/zend_types.h:25,
from php-src/Zend/zend.h:27,
from php-src/main/php.h:31,
from php-src/ext/hash/php_hash.h:20,
from php-src/ext/hash/hash_xxhash.c:17:
php-src/include/../main/php_config.h:1994: warning: "SIZEOF_SHORT" redefined
1994 | #define SIZEOF_SHORT 2
|
In file included from <command-line>:
././cosmopolitan/cosmopolitan.h:2154: note: this is the location of the previous definition
2154 | #define SIZEOF_SHORT __SIZEOF_SHORT__
|
In file included from php-src/Zend/zend_config.h:1,
from php-src/Zend/zend_portability.h:43,
from php-src/Zend/zend_types.h:25,
from php-src/Zend/zend.h:27,
from php-src/main/php.h:31,
from php-src/ext/hash/php_hash.h:20,
from php-src/ext/hash/hash_xxhash.c:17:
php-src/include/../main/php_config.h:1997: warning: "SIZEOF_SIZE_T" redefined
1997 | #define SIZEOF_SIZE_T 8
|
In file included from <command-line>:
././cosmopolitan/cosmopolitan.h:2160: note: this is the location of the previous definition
2160 | #define SIZEOF_SIZE_T __SIZEOF_SIZE_T__
|
In file included from php-src/Zend/zend_config.h:1,
from php-src/Zend/zend_portability.h:43,
from php-src/Zend/zend_types.h:25,
from php-src/Zend/zend.h:27,
from php-src/main/php.h:31,
from php-src/ext/hash/php_hash.h:20,
from php-src/ext/hash/hash_xxhash.c:17:
php-src/include/../main/php_config.h:2094: warning: "in_addr_t" redefined
2094 | #define in_addr_t u_int
|
In file included from <command-line>:
././cosmopolitan/cosmopolitan.h:6459: note: this is the location of the previous definition
6459 | #define in_addr_t uint32_t
|
In file included from php-src/ext/hash/php_hash_xxhash.h:21,
from php-src/ext/hash/hash_xxhash.c:18:
php-src/ext/hash/xxhash/xxhash.h: In function ‘XXH3_accumulate_512_sse2’:
php-src/ext/hash/xxhash/xxhash.h:3251:23: error: unknown type name ‘__m128i’
3251 | { XXH_ALIGN(16) __m128i* const xacc = (__m128i *) acc;
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3251:55: error: ‘__m128i’ undeclared (first use in this function)
3251 | { XXH_ALIGN(16) __m128i* const xacc = (__m128i *) acc;
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3251:55: note: each undeclared identifier is reported only once for each function it appears in
php-src/ext/hash/xxhash/xxhash.h:3251:64: error: expected expression before ‘)’ token
3251 | { XXH_ALIGN(16) __m128i* const xacc = (__m128i *) acc;
| ^
php-src/ext/hash/xxhash/xxhash.h:3254:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
3254 | const __m128i* const xinput = (const __m128i *) input;
| ^
php-src/ext/hash/xxhash/xxhash.h:3254:32: error: expected expression before ‘const’
3254 | const __m128i* const xinput = (const __m128i *) input;
| ^~~~~
php-src/ext/hash/xxhash/xxhash.h:3257:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
3257 | const __m128i* const xsecret = (const __m128i *) secret;
| ^
php-src/ext/hash/xxhash/xxhash.h:3257:32: error: expected expression before ‘const’
3257 | const __m128i* const xsecret = (const __m128i *) secret;
| ^~~~~
php-src/ext/hash/xxhash/xxhash.h:3262:20: error: expected ‘;’ before ‘const’
3262 | __m128i const data_vec = _mm_loadu_si128 (xinput+i);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3264:20: error: expected ‘;’ before ‘const’
3264 | __m128i const key_vec = _mm_loadu_si128 (xsecret+i);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3266:20: error: expected ‘;’ before ‘const’
3266 | __m128i const data_key = _mm_xor_si128 (data_vec, key_vec);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3268:20: error: expected ‘;’ before ‘const’
3268 | __m128i const data_key_lo = _mm_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1));
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3270:20: error: expected ‘;’ before ‘const’
3270 | __m128i const product = _mm_mul_epu32 (data_key, data_key_lo);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3272:20: error: expected ‘;’ before ‘const’
3272 | __m128i const data_swap = _mm_shuffle_epi32(data_vec, _MM_SHUFFLE(1,0,3,2));
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3273:20: error: expected ‘;’ before ‘const’
3273 | __m128i const sum = _mm_add_epi64(xacc[i], data_swap);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3275:23: warning: implicit declaration of function ‘_mm_add_epi64’ [-Wimplicit-function-declaration]
3275 | xacc[i] = _mm_add_epi64(product, sum);
| ^~~~~~~~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3275:37: error: ‘product’ undeclared (first use in this function)
3275 | xacc[i] = _mm_add_epi64(product, sum);
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3275:46: error: ‘sum’ undeclared (first use in this function)
3275 | xacc[i] = _mm_add_epi64(product, sum);
| ^~~
php-src/ext/hash/xxhash/xxhash.h: In function ‘XXH3_scrambleAcc_sse2’:
php-src/ext/hash/xxhash/xxhash.h:3283:23: error: unknown type name ‘__m128i’
3283 | { XXH_ALIGN(16) __m128i* const xacc = (__m128i*) acc;
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3283:46: error: ‘__m128i’ undeclared (first use in this function)
3283 | { XXH_ALIGN(16) __m128i* const xacc = (__m128i*) acc;
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3283:54: error: expected expression before ‘)’ token
3283 | { XXH_ALIGN(16) __m128i* const xacc = (__m128i*) acc;
| ^
php-src/ext/hash/xxhash/xxhash.h:3286:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
3286 | const __m128i* const xsecret = (const __m128i *) secret;
| ^
php-src/ext/hash/xxhash/xxhash.h:3286:32: error: expected expression before ‘const’
3286 | const __m128i* const xsecret = (const __m128i *) secret;
| ^~~~~
php-src/ext/hash/xxhash/xxhash.h:3287:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘prime32’
3287 | const __m128i prime32 = _mm_set1_epi32((int)XXH_PRIME32_1);
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3287:23: error: ‘prime32’ undeclared (first use in this function); did you mean ‘pipe2’?
3287 | const __m128i prime32 = _mm_set1_epi32((int)XXH_PRIME32_1);
| ^~~~~~~
| pipe2
php-src/ext/hash/xxhash/xxhash.h:3287:33: warning: implicit declaration of function ‘_mm_set1_epi32’ [-Wimplicit-function-declaration]
3287 | const __m128i prime32 = _mm_set1_epi32((int)XXH_PRIME32_1);
| ^~~~~~~~~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3292:20: error: expected ‘;’ before ‘const’
3292 | __m128i const acc_vec = xacc[i];
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3293:20: error: expected ‘;’ before ‘const’
3293 | __m128i const shifted = _mm_srli_epi64 (acc_vec, 47);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3294:20: error: expected ‘;’ before ‘const’
3294 | __m128i const data_vec = _mm_xor_si128 (acc_vec, shifted);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3296:20: error: expected ‘;’ before ‘const’
3296 | __m128i const key_vec = _mm_loadu_si128 (xsecret+i);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3297:20: error: expected ‘;’ before ‘const’
3297 | __m128i const data_key = _mm_xor_si128 (data_vec, key_vec);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3300:20: error: expected ‘;’ before ‘const’
3300 | __m128i const data_key_hi = _mm_shuffle_epi32 (data_key, _MM_SHUFFLE(0, 3, 0, 1));
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3301:20: error: expected ‘;’ before ‘const’
3301 | __m128i const prod_lo = _mm_mul_epu32 (data_key, prime32);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3302:20: error: expected ‘;’ before ‘const’
3302 | __m128i const prod_hi = _mm_mul_epu32 (data_key_hi, prime32);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3303:37: error: ‘prod_lo’ undeclared (first use in this function)
3303 | xacc[i] = _mm_add_epi64(prod_lo, _mm_slli_epi64(prod_hi, 32));
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3303:46: warning: implicit declaration of function ‘_mm_slli_epi64’ [-Wimplicit-function-declaration]
3303 | xacc[i] = _mm_add_epi64(prod_lo, _mm_slli_epi64(prod_hi, 32));
| ^~~~~~~~~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3303:61: error: ‘prod_hi’ undeclared (first use in this function)
3303 | xacc[i] = _mm_add_epi64(prod_lo, _mm_slli_epi64(prod_hi, 32));
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h: In function ‘XXH3_initCustomSecret_sse2’:
php-src/ext/hash/xxhash/xxhash.h:3312:63: error: ‘__m128i’ undeclared (first use in this function)
3312 | { int const nbRounds = XXH_SECRET_DEFAULT_SIZE / sizeof(__m128i);
| ^~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3319:16: error: expected ‘;’ before ‘const’
3319 | __m128i const seed = _mm_set_epi64x(-(xxh_i64)seed64, (xxh_i64)seed64);
| ^~~~~~
| ;
php-src/ext/hash/xxhash/xxhash.h:3324:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
3324 | XXH_ALIGN(XXH_SEC_ALIGN) __m128i* dest = (__m128i*) customSecret;
| ^
php-src/ext/hash/xxhash/xxhash.h:3324:49: error: ‘dest’ undeclared (first use in this function)
3324 | XXH_ALIGN(XXH_SEC_ALIGN) __m128i* dest = (__m128i*) customSecret;
| ^~~~
php-src/ext/hash/xxhash/xxhash.h:3324:65: error: expected expression before ‘)’ token
3324 | XXH_ALIGN(XXH_SEC_ALIGN) __m128i* dest = (__m128i*) customSecret;
| ^
php-src/ext/hash/xxhash/xxhash.h:3335:37: warning: implicit declaration of function ‘_mm_castps_si128’ [-Wimplicit-function-declaration]
3335 | dest[i] = _mm_add_epi64(_mm_castps_si128(_mm_load_ps(src+i*4)), seed);
| ^~~~~~~~~~~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3335:54: warning: implicit declaration of function ‘_mm_load_ps’ [-Wimplicit-function-declaration]
3335 | dest[i] = _mm_add_epi64(_mm_castps_si128(_mm_load_ps(src+i*4)), seed);
| ^~~~~~~~~~~
php-src/ext/hash/xxhash/xxhash.h:3335:77: error: ‘seed’ undeclared (first use in this function); did you mean ‘send’?
3335 | dest[i] = _mm_add_epi64(_mm_castps_si128(_mm_load_ps(src+i*4)), seed);
| ^~~~
| send
php-src/ext/hash/xxhash/xxhash.h:3331:9: error: invalid lvalue in asm output 0
3331 | __asm__("" : "+r" (dest));
| ^~~~~~~
make: *** [Makefile:673: ext/hash/hash_xxhash.lo] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment