Repository navigation
Support for macOS platform - #10
Open
raphael-nabet wants to merge 4 commits into
Open
raphael-nabet wants to merge 4 commits into
raphael-nabet wants to merge 4 commits into
Conversation
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MacOS support on arm64
Hi @nitawa ,
To ensure that KERNEL is compatible with the build of SALOME on macOS, we modified some elements:
Build and runtime fixes for macOS (clang, libc++, no glibc extensions). All the changes apply on macOS
only.
Threads:
pthread_tis a pointer on macOSComponent_i.cxx,SALOME_ParallelComponent_i.cxx:_ThreadId > 0is an ordered comparison of apointer with 0, rejected by clang. On macOS it is replaced by a non-null test and
pthread_equal()inKill/Stop/Suspend/Resume/CpuUsed.
Semaphores: unnamed POSIX semaphores are not implemented
sem_init()fails on macOS.SALOMESDS::KeyWaiterandSALOMETraceCollectoruse a GCDdispatch_semaphore_tinstead. InSALOMETraceCollector, the semaphore of a previous instance isreleased before a new one is created.
glibc-only functions
Container_i.cxx: the environment is read with*_NSGetEnviron()inGetOSEnvironment(), asenvironis not available to dylibs.SALOME_ExternalServerLauncher.cxx:get_current_dir_name()replaced bygetcwd(nullptr, 0).Calcium / DSC
CalciumC.c: clang rejects implicit function declarations. Added the C prototypes of theecp_*functions defined in C++ by
CALCIUM_C2CPP_INTERFACE_CXX_.calcium.i: explicitPyArrayObject*cast inarray_type().Link
TestContainer: the libraries already linked on Windows are also linked on macOS, where dylibs mustresolve all their symbols at link time.
Depends on SalomePlatform/salome_bootstrap#3 (
BaseTraceCollector::_semas adispatch_semaphore_t).