Skip to content

clang17 does not include header files #48621

Description

@Sqvid

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-testingTesting a PR or reproducing an issue needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions