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

Could you tell what version of gcc is required? #148

Open
davidbullado opened this issue Jun 17, 2022 · 0 comments
Open

Could you tell what version of gcc is required? #148

davidbullado opened this issue Jun 17, 2022 · 0 comments

Comments

@davidbullado
Copy link

davidbullado commented Jun 17, 2022

Hi,
I got several compilation errors. I wonder if you recommend any version of gcc:

/bin/bash /home/david/GitHub/wasmer-php/ext/libtool --mode=compile cc  -I. -I/home/david/GitHub/wasmer-php/ext -DPHP_ATOM_INC -I/home/david/GitHub/wasmer-php/ext/include -I/home/david/GitHub/wasmer-php/ext/main -I/home/david/GitHub/wasmer-php/ext -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/david/GitHub/wasmer-php/ext/src/api/config.c -o src/api/config.lo 
mkdir src/api/.libs
 cc -I. -I/home/david/GitHub/wasmer-php/ext -DPHP_ATOM_INC -I/home/david/GitHub/wasmer-php/ext/include -I/home/david/GitHub/wasmer-php/ext/main -I/home/david/GitHub/wasmer-php/ext -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/david/GitHub/wasmer-php/ext/src/api/config.c  -fPIC -DPIC -o src/api/.libs/config.o
In file included from /home/david/GitHub/wasmer-php/ext/src/api/config.c:5:
/home/david/GitHub/wasmer-php/ext/src/api/config.c: In function ‘zif_wasm_config_delete’:
/home/david/GitHub/wasmer-php/ext/src/api/./macros.h:42:9: warning: implicit declaration of function ‘RETURN_THROWS’; did you mean ‘RETURN_TRUE’? [-Wimplicit-function-declaration]
   42 |         RETURN_THROWS();\
      |         ^~~~~~~~~~~~~
/home/david/GitHub/wasmer-php/ext/src/api/./macros.h:184:1: note: in expansion of macro ‘WASMER_DELETE_RESOURCE’
  184 | WASMER_DELETE_RESOURCE(name)\
      | ^~~~~~~~~~~~~~~~~~~~~~
/home/david/GitHub/wasmer-php/ext/src/api/config.c:8:1: note: in expansion of macro ‘WASMER_DECLARE_OWN’
    8 | WASMER_DECLARE_OWN(config)
      | ^~~~~~~~~~~~~~~~~~
/home/david/GitHub/wasmer-php/ext/src/api/config.c: In function ‘zif_wasm_config_set_compiler’:
/home/david/GitHub/wasmer-php/ext/src/api/config.c:28:13: warning: implicit declaration of function ‘Z_PARAM_NUMBER’ [-Wimplicit-function-declaration]
   28 |             Z_PARAM_NUMBER(compiler_val)
      |             ^~~~~~~~~~~~~~
/home/david/GitHub/wasmer-php/ext/src/api/config.c:28:41: error: expected ‘;’ before ‘}’ token
   28 |             Z_PARAM_NUMBER(compiler_val)
      |                                         ^
      |                                         ;
/home/david/GitHub/wasmer-php/ext/src/api/config.c: In function ‘zif_wasm_config_set_engine’:
/home/david/GitHub/wasmer-php/ext/src/api/config.c:45:39: error: expected ‘;’ before ‘}’ token
   45 |             Z_PARAM_NUMBER(engine_val)
      |                                       ^
      |                                       ;
make: *** [Makefile:229: src/api/config.lo] Error 1

Here is my version of gcc:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) 
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

1 participant