Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

./boost/thread/pthread/thread_data.hpp:60:5: error: missing binary operator before token "(" 60 | #if PTHREAD_STACK_MIN > 0 #8

Closed
mathnovel opened this issue Apr 17, 2023 · 4 comments

Comments

@mathnovel
Copy link
Owner

No description provided.

@mathnovel
Copy link
Owner Author

prusa3d/PrusaSlicer#8145

say that newer boost version would be ok,but i didn't try now

@mathnovel
Copy link
Owner Author

mathnovel commented Apr 17, 2023

why error occur ,look at BitcoinUnlimited/BitcoinUnlimited@878546a

build: Fix boost depends build with glibc >= 2.34
Summary

In glibc >= 2.34 PTHREAD_STACK_MIN has been made dynamic which causes
Boost 1.70 to fail to build.

This has been fixed in boostorg/thread#297 for
Solaris which also uses a function call for PTHREAD_STACK_MIN.

See:

Test plan

  • Use a build OS that includes glibc >= 3.34 (eg Ubuntu 22.04)
  • cd depends
  • make HOST=x86_64-pc-linux-gnu

@mathnovel
Copy link
Owner Author

my raspberry pi glibc version

ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

= 2.34

@mathnovel
Copy link
Owner Author

yes,i try boost1.82, lib thread can be compiled

Repository owner locked and limited conversation to collaborators Apr 28, 2023
@mathnovel mathnovel converted this issue into discussion #28 Apr 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant