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

Native compilation error on Fedora Rawhide (42) #1865

Open
deamn opened this issue Feb 27, 2025 · 2 comments
Open

Native compilation error on Fedora Rawhide (42) #1865

deamn opened this issue Feb 27, 2025 · 2 comments

Comments

@deamn
Copy link

deamn commented Feb 27, 2025

Describe the bug
I try to compile native part on Fedora Rawhide and I have the following error. The same on Fedora 41 works well.
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_Call__JJII’:
[exec] os.c:10106:21: error: too many arguments to function ‘(jint ()(void))arg0’; expected 0, have 3
[exec] 10106 | rc = (jint)((jint (
)())arg0)(arg1, arg2, arg3);
[exec] | ~^~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_Call__JJJ’:
[exec] os.c:10118:21: error: too many arguments to function ‘(jint ()(void))arg0’; expected 0, have 2
[exec] 10118 | rc = (jint)((jint (
)())arg0)(arg1, arg2);
[exec] | ~^~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_XCheckIfEvent’:
[exec] os.c:10512:71: error: passing argument 3 of ‘XCheckIfEvent’ from incompatible pointer type [-Wincompatible-pointer-types]
[exec] 10512 | rc = (jboolean)XCheckIfEvent((Display )arg0, (XEvent )arg1, (Bool ()())arg2, (XPointer)arg3);
[exec] | ^~~~~~~~~~~~~~~~
[exec] | |
[exec] | int (
)(void)
[exec] In file included from /usr/include/gtk-3.0/gdk/gdkx.h:30,
[exec] from /usr/include/gtk-3.0/gtk/gtksocket.h:34,
[exec] from /usr/include/gtk-3.0/gtk/gtkx.h:29,
[exec] from os.h:60,
[exec] from os_structs.h:19,
[exec] from os.c:20:
[exec] /usr/include/X11/Xlib.h:2105:5: note: expected ‘int ()(Display , XEvent , char )’ but argument is of type ‘int ()(void)’
[exec] 2105 | Bool (
) (
[exec] | ^
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJ’:
[exec] os.c:10724:22: error: too many arguments to function ‘(jlong (
)(void))arg0’; expected 0, have 4
[exec] 10724 | rc = (jlong)((jlong (
)())arg0)(arg1, arg2, arg3, arg4);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJJJ’:
[exec] os.c:10736:22: error: too many arguments to function ‘(jlong ()(void))arg0’; expected 0, have 6
[exec] 10736 | rc = (jlong)((jlong (
)())arg0)(arg1, arg2, arg3, arg4, arg5, arg6);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] os.c: In function ‘Java_org_eclipse_swt_internal_gtk_OS_call__JJJJJJJJ’:
[exec] os.c:10748:22: error: too many arguments to function ‘(jlong ()(void))arg0’; expected 0, have 7
[exec] 10748 | rc = (jlong)((jlong (
)())arg0)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
[exec] | ~^~~~~~~~~~~~~~~~~~ ~~~~
[exec] *** GTK3 Build failed, aborting further actions..
[exec] make: *** [make_linux.mak:144: os.o] Error 1

To Reproduce
A standalone SWT snippet to reproduce the behavior (preferable)
(or)
Steps to reproduce the behavior.

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • [] All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)

  2. JRE/JDK version
    OpenJDK 21

Version since
4.29 and 4.34

Workaround (or) Additional context
Add any other context about the problem here.
Any known workarounds for the problem?

@akurtakov
Copy link
Member

I see Fedora applied https://src.fedoraproject.org/rpms/eclipse-swt/c/132ea6893f6c05bdba23a223744aca210e7165f7?branch=rawhide to fix build of their rpm. I believe one would have to see the full log in order to figure out what the problem(and a fix for it) is.

@deamn deamn closed this as completed Feb 28, 2025
@akurtakov akurtakov reopened this Feb 28, 2025
@akurtakov
Copy link
Member

I am reopening this one as it's very likely that the project will face the issue soon enough. If you can share full failing build log please do.

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

2 participants