swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.33k stars 3.16k forks source link

aarch64 上编译swoole boost出错 #2850

Closed xywf221 closed 4 years ago

xywf221 commented 4 years ago

环境信息: 系统是通过 linuxdeploy 安装的 OS: Debian Kernel: aarch64 Linux 3.18.124-BlackScreen-6.1.1+ CPU: Qualcomm Technologies, Inc MSM8996 @ 4x 1.5936GHz gcc version : gcc version 8.3.0 (Debian 8.3.0-6)

错误内容 : AEE1ADD1639D74B3D0ADCE8805259545

ClosetGeek-Git commented 4 years ago

For what it's worth I've installed Swoole on an Amlogic S905W board which is aarch64 running Armbian 5.75 (Debian Stretch). It worked without a problem.

xywf221 commented 4 years ago

For what it's worth I've installed Swoole on an Amlogic S905W board which is aarch64 running Armbian 5.75 (Debian Stretch). It worked without a problem.

Can you name your gcc version?

ClosetGeek-Git commented 4 years ago

Not at the time, but It would have been the default. The exact release was Armbian_5.75_Aml-s905_Debian_stretch_default_4.20.5_desktop_20190211.img.xz, I'm sure someone can answer at https://forum.armbian.com/

ClosetGeek-Git commented 4 years ago
json@aml:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/6/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18+deb9u1' --with-
bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-
languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --
program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --
libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --
enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-
libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-
libquadmath --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin 
--enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-
arm64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-arm64 --with-
jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-arm64 --with-arch-directory=aarch64 --with-
ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-multiarch --enable-fix-cortex-a53-843419 --
enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --
target=aarch64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) 
twose commented 4 years ago

看起来更像是编译环境的问题 暂时没有头绪

ClosetGeek-Git commented 4 years ago

I agree with @twose. Specifically, Arm support is fairly limited compared to other chips in Linux so your better off using a more developed/supported distribution.

matyhtf commented 4 years ago

@xywf221 试试修改编译配置,改为使用 ucontext 实现方式?