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

Compilation is not completing #109

Closed
Govdim opened this issue Oct 29, 2020 · 17 comments
Closed

Compilation is not completing #109

Govdim opened this issue Oct 29, 2020 · 17 comments

Comments

@Govdim
Copy link

Govdim commented Oct 29, 2020

At the last stage of PHP compilation, the process is interrupted with the following error:

Makefile:1154: recipe for target 'ext/morton/morton.lo' failed
make: *** [ext/morton/morton.lo] Error 1

branch: master
OS: Ubuntu 18.04

@dktapps
Copy link
Member

dktapps commented Oct 29, 2020

Provide the whole log file.

@Govdim
Copy link
Author

Govdim commented Oct 29, 2020

install.log

@dktapps
Copy link
Member

dktapps commented Oct 29, 2020

The hardware specifications of the CPU are relevant here, also which flags you passed to compile.sh.

@Govdim
Copy link
Author

Govdim commented Oct 29, 2020

Without flags, the result is the same

@Encritary
Copy link
Contributor

Encritary commented Nov 4, 2020

try passing -t linux64 if you compile on linux

@dktapps
Copy link
Member

dktapps commented Nov 4, 2020

That shouldn't make any difference.

@Govdim
Copy link
Author

Govdim commented Nov 4, 2020

Does it matter that Linux was launched in the "VirtualBox" program?

@SOF3
Copy link
Member

SOF3 commented Nov 4, 2020

As long as your host is using a "normal" architecture (like amd64), virtual machines shall not affect anything.

@dktapps
Copy link
Member

dktapps commented Nov 4, 2020

Yes, it can matter. I experienced this issue in virtualbox, but only when AVX2 was enabled.

@dktapps
Copy link
Member

dktapps commented Nov 4, 2020

Please provide the content of /proc/cpuinfo from inside your VM.

@Govdim
Copy link
Author

Govdim commented Nov 5, 2020

cpuinfo.txt

@dktapps
Copy link
Member

dktapps commented Nov 5, 2020

Interesting, I didn't know AVX was supported on Ryzen CPUs.

It looks like this is caused by the same issue I faced (AVX2 is supported on your CPU but not BMI2).

@Forceflow
Copy link

I've deplyoyed a possible fix in branch: https://github.com/Forceflow/libmorton/tree/avx_bmi_fix

@Forceflow
Copy link

Dev version now has fix, will push to main soon.
https://github.com/Forceflow/libmorton/tree/develop

@dktapps
Copy link
Member

dktapps commented Nov 11, 2020

Awesome, thanks for your time @Forceflow

@Forceflow
Copy link

Awesome, thanks for your time @Forceflow

No problem, good luck with your project

@dktapps
Copy link
Member

dktapps commented Dec 9, 2020

Fixed by bdce80c.

@dktapps dktapps closed this as completed Dec 9, 2020
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

5 participants