jmaxwilson / docker-povray

Dockerfiles to run the Persistence of Vision Ray Tracer (Pov-Ray) in a Docker container
MIT License
0 stars 0 forks source link

povray images are not running on all CPU architectures #1

Open ocordes opened 5 years ago

ocordes commented 5 years ago

I really like your work since it generates very small povray docker images. However, during compilation of povray gcc is using -mnative which uses all hardware CPU features on the compiling machines. I'm currently using a core2duo and older atom machines which are not able to use the avx instruction set which may cause the "illegal instruction" error. The problem is that one need special binaries for special hardware or loosing performance. :-( I looked at the Ubuntu deb package creation rules which gives at least a hint how to change the call to configure. At the moment I'll try to create my own povray container, which is on github ocordes/docker-povray and hopefully on dockerhub ocordes/povray. Please have a look !

Cheers, Oliver

jmaxwilson commented 5 years ago

Thanks for bringing this to my attention, @ocordes . I'm certainly not an expert with gcc and compiling povray. These docker images were created primarily for use with the POV-Ray Extension for Visual Studio Code (https://github.com/jmaxwilson/vscode-povray).

If you can figure out a gcc configuration that will compile povray to work on your older machines, I can try to add an additional image tagged for older machines that can't use all the hardware features.