yitter / IdGenerator

💎多语言实现,高性能生成唯一数字ID。 💎优化的雪花算法(SnowFlake)——雪花漂移算法,在缩短ID长度的同时,具备极高瞬时并发处理能力(50W/0.1s)。 💎原生支持 C#/Java/Go/Rust/C/JavaScript/TypeScript/Python/Pascal 多语言,提供其它适用于其它语言的多线程安全调用动态库(FFI)。💎支持容器环境自动扩容(自动注册 WorkerId ),单机或分布式唯一IdGenerator。💎顶尖优化,超强效能。
MIT License
2.64k stars 376 forks source link

PHP make 报错 #80

Closed Sligcm closed 1 year ago

Sligcm commented 1 year ago

语言:PHP,Apple M2 芯片,使用 Docker 容器,容器镜像:php:7.4.33-fpm-alpine3.16, make 的时候报错了。看了下,好像是 pause 这个指令是 intel 平台的,是不是要判断下平台? /bin/sh /tmp/snowdrift/libtool --mode=compile cc -I. -I/tmp/snowdrift -DPHP_ATOM_INC -I/tmp/snowdrift/include -I/tmp/snowdrift/main -I/tmp/snowdrift -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/snowdrift/src/snowflake/spinlock.c -o src/snowflake/spinlock.lo cc -I. -I/tmp/snowdrift -DPHP_ATOM_INC -I/tmp/snowdrift/include -I/tmp/snowdrift/main -I/tmp/snowdrift -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/snowdrift/src/snowflake/spinlock.c -fPIC -DPIC -o src/snowflake/.libs/spinlock.o /tmp/ccHfCkKb.s: Assembler messages: /tmp/ccHfCkKb.s:82: Error: unknown mnemonic pause' --pause' make: *** [Makefile:197: src/snowflake/spinlock.lo] Error 1

yitter commented 1 year ago

问题已修复,请同步代码

Sligcm commented 1 year ago

已测试,可以了,多谢。