Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Upgrade Boost for KUKSA.val Server #593

Merged
merged 1 commit into from
Jul 17, 2023
Merged

Conversation

erikbosch
Copy link
Contributor

@erikbosch erikbosch commented Jul 6, 2023

Background reason:

Newer gcc versions give more warnings, and we treat warnings as errors. We build our Docker container using alpine:3.11, but if you try to build locally there is big risk that you have a newer gcc version and runs into problems. The problems can be fixed by changing include and upgrading Boost version, as newer Boost has added a cast to the line below:

/home/erik/kuksa.val/kuksa-val-server/build/_deps/boost-build/include/boost/thread/pthread/thread_data.hpp:61:19: error: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘long int’ [-Werror=sign-compare]
   61 |           if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
      |                   ^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors

Tests performed:

  • Building KUKSA.val Server and checking with kuksa-client that we can read and write a signal

Background reason:

Newer gcc versions give more warnings, and we treat warnings as errors.
We get a warning on boost that has been fixed in recent Boost versions

/home/erik/kuksa.val/kuksa-val-server/build/_deps/boost-build/include/boost/thread/pthread/thread_data.hpp:61:19: error: comparison of integer expressions of different signedness: ‘std::size_t’ {aka ‘long unsigned int’} and ‘long int’ [-Werror=sign-compare]
   61 |           if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
      |                   ^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
@erikbosch erikbosch marked this pull request as ready for review July 7, 2023 14:27
@erikbosch erikbosch requested a review from int0x27 July 13, 2023 11:01
@erikbosch erikbosch merged commit 7ea6026 into eclipse:master Jul 17, 2023
@erikbosch erikbosch deleted the erik_boost branch July 17, 2023 08:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant