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

Support Clang on Linux #1013

Open
elde-n opened this issue Oct 23, 2024 · 1 comment
Open

Support Clang on Linux #1013

elde-n opened this issue Oct 23, 2024 · 1 comment

Comments

@elde-n
Copy link

elde-n commented Oct 23, 2024

Version

3.3.5 (snapshot), 3.3.4

Platform

Linux x64

JDK

OpenJDK Runtime Environment 21.0.5_p11 (build 21.0.5+11)

Module

Bug description

Build system requires 'gcc' for c and cxx compilation, this is a problem on my system that only has the clang compiler for c/cxx

Stacktrace or crash log output

init:
 [override] Build type: stable

check-dependencies:

-compile-generator:

compile-templates:

generate:

compile:

compile-tests:

compile-native:

compile-native-platform:
     [exec] bash: line 1: gcc: command not found

BUILD FAILED
/home/elden/.local/src/lwjgl3/build.xml:581: The following error occurred while executing this line:
/home/elden/.local/src/lwjgl3/config/linux/build.xml:162: exec returned: 1
@Spasi
Copy link
Member

Spasi commented Dec 7, 2024

Hey @elde-n,

The LWJGL build system is indeed hardcoded to require GCC on Linux. This has always bothered me, but I'm afraid I don't have the energy to address it. Maintaining the native builds of LWJGL and all of its dependencies on Linux has proven to be a living hell for me and I don't want to complicate it any further by adding support for Clang.

Right now at least. LWJGL 4 may provide an opportunity to revisit this.

@Spasi Spasi changed the title Fails to compile Support Clang on Linux Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants