trunkmaster / nextspace

NeXTSTEP-like desktop environment for Linux
https://trunkmaster.github.io
GNU General Public License v3.0
1.89k stars 69 forks source link

Build failure on Fedora 36 on 0.build_libraries.sh script #418

Closed ngoomie closed 5 months ago

ngoomie commented 2 years ago

Hello! I was trying to build NeXTSTEP on a relatively fresh Fedora 36 install (it's been used for barely even a week and has few extra packages installed), and was greeted with these errors:

+ make -j16
[  3%] Building C object src/BlocksRuntime/CMakeFiles/BlocksRuntime.dir/data.c.o
[  6%] Generating ../dispatch/module.modulemap, ../private/module.modulemap
[ 10%] Building C object src/BlocksRuntime/CMakeFiles/BlocksRuntime.dir/runtime.c.o
clang-14: error: optimization flag '-ffat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]
make[2]: *** [src/BlocksRuntime/CMakeFiles/BlocksRuntime.dir/build.make:76: src/BlocksRuntime/CMakeFiles/BlocksRuntime.dir/data.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
clang-14: error: optimization flag '-ffat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]
make[2]: *** [src/BlocksRuntime/CMakeFiles/BlocksRuntime.dir/build.make:90: src/BlocksRuntime/CMakeFiles/BlocksRuntime.dir/runtime.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:259: src/BlocksRuntime/CMakeFiles/BlocksRuntime.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] Built target module-maps
make: *** [Makefile:136: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.xb95pM (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.xb95pM (%build)
================================================================================
 Building of Grand Central Dispatch library RPM FAILED!
================================================================================
Aborting...

Not quite sure what to do from here, so I would appreciate some help assuming this is a problem on my end. I'm also not really sure what other information would potentially be required here, so by all means tell me if something else is needed. I can also attempt to re-build and send all the terminal output if desired. Thanks in advance for your time!

daemonspudguy commented 2 years ago

The dev is in Ukraine and hasn't been seen doing much since February due to the war.

ngoomie commented 2 years ago

Ah, I see. I hope they're doing alright, all things considering.

mikedebian commented 2 years ago

Before running that command, export these two commands

export CFLAGS="-Wno-error"

export CXXFLAGS="-Wno-error"

trunkmaster commented 10 months ago

@ngoomie I've improved building from sources scripts (Packaging/Sources). You may try to build it once more. One of the essential changes was switching to new version of dispatch and CoreFoundation sources. If you still have Fedora 36 you may try to buld it again and share your results.

NOTE: Packaging/RedHat scripts is not ready yet, but Packaging/Sources supports build on RedHat-based distribution. It doesn't build rpm packages, but make install of binaries and resources.

trunkmaster commented 7 months ago

@ngoomie ?

trunkmaster commented 5 months ago

No feedback for a long time - closing issue. Please reopen if needed.