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

Add NO_THREADS variable #238

Closed
wants to merge 1 commit into from
Closed

Add NO_THREADS variable #238

wants to merge 1 commit into from

Conversation

ffontaine
Copy link

Allow the user to disable building thread-test to avoid the following build failure without threads raised since version 38 and cff88dd:

thread-test.c:14:10: fatal error: pthread.h: No such file or directory
   14 | #include <pthread.h>
      |          ^~~~~~~~~~~

Fixes:

Allow the user to disable building thread-test to avoid the following
build failure without threads raised since version 38 and
cff88dd:

thread-test.c:14:10: fatal error: pthread.h: No such file or directory
   14 | #include <pthread.h>
      |          ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/277f783c33102a0cea7c82ca902119ab90f37ad4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
@frozencemetery
Copy link
Member

Why not just install pthreads on your platform?

@frozencemetery
Copy link
Member

For that matter, what platform are you using that doesn't expose pthreads? They're part of POSIX.

@ffontaine
Copy link
Author

Because threads are not always available/enabled on some embedded platforms. The build failures are raised by buildroot autobuilders.

@frozencemetery
Copy link
Member

If you're not going to tell me what platform you're working on, I'm not going to be able to help you.

I don't know anything about buildroot.org - and that's not something we set up, nor are we responsible for it. Clicking around suggests that it's trying to build on Fedora 37. As the maintainer for efivar in Fedora, I can confidently say that we do build there, and that Fedora obviously has pthreads.

arnout pushed a commit to buildroot/buildroot that referenced this pull request Feb 23, 2023
Add a thread dependency as Upstream quickly closed
rhboot/efivar#238 to fix the following build
failure without threads raised since bump to version 38 in commit
f24029b and
rhboot/efivar@cff88dd:

thread-test.c:14:10: fatal error: pthread.h: No such file or directory
   14 | #include <pthread.h>
      |          ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/f2da14f91dc602a32dd5b2b7bdf3d3aa43afa7f4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
arnout pushed a commit to buildroot/buildroot that referenced this pull request Mar 5, 2023
Add a thread dependency as Upstream quickly closed
rhboot/efivar#238 to fix the following build
failure without threads raised since bump to version 38 in commit
f24029b and
rhboot/efivar@cff88dd:

thread-test.c:14:10: fatal error: pthread.h: No such file or directory
   14 | #include <pthread.h>
      |          ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/f2da14f91dc602a32dd5b2b7bdf3d3aa43afa7f4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit c29f6d6)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants