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

Unable to compile for / install on Fedora 41 #446

Open
mbert opened this issue Nov 27, 2024 · 5 comments
Open

Unable to compile for / install on Fedora 41 #446

mbert opened this issue Nov 27, 2024 · 5 comments

Comments

@mbert
Copy link

mbert commented Nov 27, 2024

I am aware that what I am reporting here is probably only the tip of the iceberg. New compilers and new defaults keep breaking stuff that was buildable before. But here we go.

cd Packaging/Sources/
sh 0_build_libdispatch.sh
[...]
[ 13%] Building C object src/CMakeFiles/dispatch.dir/apply.c.o
/home/mdietze/src/build/nextspace/Packaging/Sources/BUILD_ROOT/swift-corelibs-libdispatch-swift-5.9.2-RELEASE/src/apply.c:366:4: error: cast from 'dispatch_function_t' (aka 'void (*)(void * _Nullable)') to 'dispatch_apply_function_t' (aka 'void (*)(void *, unsigned long)') converts to incompatible function type [-Werror,-Wcast-function-type-mismatch]
  366 |                         (dispatch_apply_function_t)_dispatch_Block_invoke(work));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [src/CMakeFiles/dispatch.dir/build.make:90: src/CMakeFiles/dispatch.dir/apply.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:205: src/CMakeFiles/dispatch.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
[ 10%] Built target BlocksRuntime
[ 13%] Building C object src/CMakeFiles/dispatch.dir/apply.c.o
/home/mdietze/src/build/nextspace/Packaging/Sources/BUILD_ROOT/swift-corelibs-libdispatch-swift-5.9.2-RELEASE/src/apply.c:366:4: error: cast from 'dispatch_function_t' (aka 'void (*)(void * _Nullable)') to 'dispatch_apply_function_t' (aka 'void (*)(void *, unsigned long)') converts to incompatible function type [-Werror,-Wcast-function-type-mismatch]
  366 |                         (dispatch_apply_function_t)_dispatch_Block_invoke(work));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [src/CMakeFiles/dispatch.dir/build.make:90: src/CMakeFiles/dispatch.dir/apply.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:205: src/CMakeFiles/dispatch.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Since the build already fails at the first step I can't make a statement about subsequent steps. But I'd assume that things will not look any better.

To make things worse: Other than on Fedora 40 I can't even install the binary distribution on Fedora 41, because a number of dependencies are no longer available.

I understand that this is potentially a lot of unpleasant work, and it will keep repeating with each distro upgrade. Any plans to support Fedora 41?

@armm77
Copy link
Collaborator

armm77 commented Nov 27, 2024

hi @mbert , before investing time in research, the most logical thing is to wait for @trunkmaster to decide to change or upload the version of the libdispatch library, since in Fedora 41 there is version 6.0.2 and this would generate confusion with the version of the project.

@mbert
Copy link
Author

mbert commented Nov 28, 2024

Yes, sure. Just wanted to raise awareness. On Fc40 the binary distribution for Fc39 works fine. But on Fc41 there's no way ATM. And I know from experience having to compile the mainstream GNUstep libraries on Fc41 that there's lots of issues with the compilers shipping with it.

@trunkmaster
Copy link
Owner

trunkmaster commented Dec 3, 2024

@mbert you don't need to build libdispatch on Fedora - start building from step 1 ./1_build_libcorefoundation.sh.

@mbert
Copy link
Author

mbert commented Dec 3, 2024

Thank you. However there seem to be other problems on a system where nextspace has never been installed:

  • /Develop/Makefiles/GNUstep.sh does not exist in this location with a vanilla GS installation (can be symlinked though)
  • nextspace-gnustep-devel is required by nextspace-frameworks, but it is not built at this point

@trunkmaster
Copy link
Owner

Thank you. However there seem to be other problems on a system where nextspace has never been installed:

* /Develop/Makefiles/GNUstep.sh does not exist in this location with a vanilla GS installation (can be symlinked though)

You can't mix vanilla GS and NextSpace setup - filesystem layout differs.

* nextspace-gnustep-devel is required by nextspace-frameworks, but it is not built at this point

You need to install nextspace-gnustep first (steps 3-7 in Packaging/Sources).

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

3 participants