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

clang17 does not include header files #48621

Closed
Sqvid opened this issue Feb 9, 2024 · 3 comments
Closed

clang17 does not include header files #48621

Sqvid opened this issue Feb 9, 2024 · 3 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@Sqvid
Copy link
Contributor

Sqvid commented Feb 9, 2024

Is this a new report?

Yes

System Info

Void 6.6.16_1 x86_64 AuthenticAMD uptodate rrFFFFF

Package(s) Affected

clang17

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

Installing clang should pull in the standard library headers so that you can actually compile programs. However clang17 does not do this (one would need clang17-devel).

Actual behaviour

Clang17 pulls in no headers and as a result cannot be used to compile C/C++ programs. Clang15 is unaffected.

Observe the difference between xbps-query -Rf clang17 and xbps-query -Rf clang15

Steps to reproduce

  1. Install clang17
  2. Paste the following in main.c:
#include <stdio.h>

int main(void) {
	printf("Hello, World!\n");

	return 0;
}
  1. run clang main.c
  2. Obtain the error:
In file included from test.c:1:
/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found
   33 | #include <stddef.h>
      |          ^~~~~~~~~~
1 error generated.
  1. Cry.
@Sqvid Sqvid added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Feb 9, 2024
@chrysos349
Copy link
Contributor

this problem is being fixed atm.

@Calandracas606
Copy link

#48625

Install clang17-devel for the time being

@Calandracas606
Copy link

This has been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

4 participants