zynaddsubfx / zyn-fusion-build

Build Scripts For Zyn-Fusion
Do What The F*ck You Want To Public License
124 stars 40 forks source link

Linux cc build error #70

Closed rajansaini691 closed 3 years ago

rajansaini691 commented 3 years ago

Getting the following error while building on Arch:

[ 37%] Building C object src/CMakeFiles/zynadds sf/tlsf.c.o
cc: error: unrecognized command-line option ‘--system-header-prefix=FL/’

I know that clang supports this option while gcc doesn't, but I'm not very familiar with the build system here. Any help would be appreciated!

fundamental commented 3 years ago

Is this building with the build scripts here or is this building from the zynaddsubfx repo itself?

I wouldn't expect anything related to FLTK given the options set in these build scripts, but it's possible something is leaking through.

rajansaini691 commented 3 years ago

I think I used these build scripts; I ran ruby build-linux.rb. Do I need to install fltk?

fundamental commented 3 years ago

On 01-27, rajansaini691 wrote:

I think I used these build scripts; I ran ruby build-linux.rb. Do I need to install fltk?

You shouldn't need to. I'm mostly asking to verify system config for when I try to replicate the issue within docker. As long as I can replicate, then it should be possible to identify the mistake in zyn's CMakeLists.txt file(s).

fundamental commented 3 years ago

I'd make sure your system is up to date, then make a new build folder, and hopefully the issue disappears. Using an arch docker (specifically https://github.com/zynaddsubfx/zyn-fusion-build/blob/master/linux-system-testers/arch-zynaddsubfx.dockerfile ) I can not replicate the issue. I see the line in our cmake files which was introducing the compiler argument, but it only gets included if the compiler passes a test indicating it's a usable flag. With all the runs I was able to make the compiler flag was detected as unusable in gcc and thus did not get used.

Let me know if you have a method for replicating, but if I can't repeat the situation within a constrained setup like docker I'm stumped.