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

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

Open
ngoomie opened this issue Aug 23, 2022 · 5 comments
Open

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

ngoomie opened this issue Aug 23, 2022 · 5 comments

Comments

@ngoomie
Copy link

ngoomie commented Aug 23, 2022

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
Copy link

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

@ngoomie
Copy link
Author

ngoomie commented Sep 15, 2022

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

@mikedebian
Copy link

Before running that command, export these two commands

export CFLAGS="-Wno-error"

export CXXFLAGS="-Wno-error"

@trunkmaster
Copy link
Owner

@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
Copy link
Owner

@ngoomie ?

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

4 participants