-
Notifications
You must be signed in to change notification settings - Fork 42
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
centos7 collect2: error: ld returned 1 exit status #64
Comments
Ah, this |
(⊙o⊙)… I've met the trouble too |
ubuntu bionic same |
How do you build the extension? |
EDIT: Nevermind, i've put the source of this extension on a non-persistant storage. It now works. When using the instructions from the CircleCI configuration, the extension gets compiled, but cannot be loaded. Any advice here?
on PHP 7.2
|
Maybe the provided shared library isn't compatible for your system. In #99, I've introduced a new command |
@shijunti19 What version of Rust do you have? Is it up-to-date? |
@Hywan Compiling php-ext-wasm v0.5.0 (/longteng/soft/php-ext-wasm)
Finished release [optimized] target(s) in 6m 41s
ln: 无法创建符号链接"wasmer/libwasmer_runtime_c_api.so": 没有那个文件或目录
error: Recipe `build-runtime` failed with exit code 1 |
just build /bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [wasm.la] 错误 1
error: Recipe `build` failed with exit code 2 |
I experienced the same problems on Manjaro Linux 18.1.5 running php 7.4.2 and rust 1.40.0 I can at least run the example/simple.php file when I add the -fPIC flag here:
Thanks for making this, looking forward to experiment more with rust, wasm and php. |
@shijunti19 You can update Rust (1.41 is the current version), but it won't solve the problem I guess. @DeppLearning Some platforms need PIC, some others don't. I don't know exactly how to solve this. |
centos 7
php7.3
The text was updated successfully, but these errors were encountered: