Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help request: undefined reference to static_assert #249

Open
ccxhwmy opened this issue Sep 29, 2022 · 1 comment
Open

help request: undefined reference to static_assert #249

ccxhwmy opened this issue Sep 29, 2022 · 1 comment

Comments

@ccxhwmy
Copy link

ccxhwmy commented Sep 29, 2022

Hi~
I meet a error when I exec build-apisix-base-debug-centos7.sh:

objs/addon/vm/wasmtime.o: In function `assertions':
/tmp/tmp.QtyXQINVJz/openresty-1.21.4.1/../wasm-nginx-module-main/wasmtime-c-api/include/wasm.h:30: undefined reference to `static_assert'
/tmp/tmp.QtyXQINVJz/openresty-1.21.4.1/../wasm-nginx-module-main/wasmtime-c-api/include/wasm.h:31: undefined reference to `static_assert'
/tmp/tmp.QtyXQINVJz/openresty-1.21.4.1/../wasm-nginx-module-main/wasmtime-c-api/include/wasm.h:32: undefined reference to `static_assert'
collect2: error: ld returned 1 exit status

It seems that my environment does not have static_assert:

✗ uname -a
Linux apisix 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

✗ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

But I do not how to solve it.
Would some one help me, Thanks~

@tzssangglass
Copy link
Contributor

Please use a higher version of gcc to compile. I use 8 or 9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants