buddhi1980 / mandelbulber2

Official repository for Mandelbulber v2
GNU General Public License v3.0
910 stars 115 forks source link

Not sure if bug or op error... Odroid XU4 Armv7 compile errors #752

Open auriuman78 opened 4 years ago

auriuman78 commented 4 years ago

Hello, new to building and trying to learn code. This is my first build. I managed to get the build to start on my XU4 but get several parameter not supplied errors during the build on certain files. I've read anecdotal reports of others successfully compiling on XU4 so suspect op error but not certain.

System information (version)
Detailed description

Whenever using compile script posted in page, modified to remove sse2 instructions since I'm on arm32 processor, I get lots of compile errors while processing files. Rather than try to list all files or the output, I've piped stderr and stdout into mb2-build.log, attached. Also attached is the copied and modified shell script used to initiate the build, mb-devprep.txt (its an sh file, just sub sh for txt).

Steps to reproduce

PreReq's: Installed XU3/4 OpenCL support packages "mali-fbdev" and "clinfo" prior to these steps

  1. copy posted installation script from git into a file I named mb-devprep.sh
  2. edit mb-devprep.sh to remove the sse2 option for arm architecture building
  3. sudo execute mb-devprep.sh
  4. watch compile errors fall from sky like rain drops (most seem to be caused by lack of parameter declarations). All of the apt install operations succeed without errors, its the compiling that dies, usually at coloring or formula modules.

Attached files are 1: build log incl stderr AND 2: sh copied from git to download and compile MB2. mb2-build.log mb-devprep.txt

-->

buddhi1980 commented 4 years ago

It could be something wrong with CL/cl2.hpp in your system. There could be some early version of cl2.hpp. Try to modify file mandelbulber2/src/include_header_wrapper.hpp in line 52:

There is: #if __has_include("CL/cl2.hpp") || __has_include("OpenCL/cl2.hpp")

modify it to: #if __has_include("CL/cl2.hpp.blabla") || __has_include("OpenCL/cl2.hpp.blabla")

auriuman78 commented 4 years ago

buddhi, thanks for the advice. That led me to other similar errors related to an opengl file. The tip you gave me helped me to track these errors and was much appreciated. As each error came up and I resolved it using the files in the error messages to debug, it seemed the rabbit hole kept getting deeper and deeper.

I've been using a downloaded prebuilt Ubuntu 16.04 image and I suspect it has a great deal to do with my woes here. Its your comment on older versioning that has tipped me to think that I should just build my own ubuntu image. So I have gone back to the drawing board and decided to start from scratch with a clean xu4 armhf ubuntu 18.04 minimal install so that its all clean and ready to go.

If I have further issues I'll post but I have much confidence in starting fresh being able to cure this issue. I did learn more than I expected by tracing errors like this, super appreciative of the suggestion. For now I'll leave it open but in short order I'll be back to report results.