Skip to content

16 fpe code doesn t work on mac - #68

Open
jman025 wants to merge 9 commits into
mainfrom
16-fpe-code-doesn-t-work-on-mac
Open

jman025 wants to merge 9 commits into
mainfrom
16-fpe-code-doesn-t-work-on-mac

Conversation

@jman025

@jman025 jman025 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Otney Boyd Crawford added 2 commits June 24, 2026 14:43
Added function to cml_unit_sim.mk so that the -Wno-nonnull-compare only gets added
to TRICK_C/XXFLAGS in a Linux environment as the compile flag is not compatible with Clang
Fixed overloading and fpe compile errors for SIM_Test_table. Using SIM_Test_table as the
test case to get Mac working with CML. Currently seeing SWIG error where SWIG is attempting
to access private things within a class.

Refs #16
…D=1 on Mac

Also includes #ifdef SWIG fix for swig attempting to access private class information

Refs #16
@ninotarantino

Copy link
Copy Markdown
Contributor

This is a few commits behind so go ahead and rebase or merge main into this branch first.

Branch works on Linux as well.

Refs #16
Comment thread cmake/SetCMLCompileWarnings.cmake
Comment thread bin/test.py Outdated
Comment thread mkspecs/internal/cml_lib.mk Outdated
TRICK_LDFLAGS += -L${CML_LIBRARY_DIR}
ifeq (1, $(CML_USE_STATIC_LIB))
TRICK_LDFLAGS += -l:libcml.a
else ifeq ($(findstring Darwin,$(trick-gte TRICK_HOST_CPU)),)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could probably just make this a direct comparison with Darwin using trick-gte TRICK_HOST_TYPE instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to keep it as it is because trick-gte TRICK_HOST_CPU returns Darwin_25 on my Mac. I don't know if Darwin_* will change for different Mac versions in the future. Or we can specify Darwin_25 for now.

Comment thread mkspecs/internal/cml_unit_sim.mk
Comment thread models/dynamics/state_descriptors/range/include/range_computation.hh Outdated
Comment on lines +34 to +36
#ifdef SWIG
%immutable;
#endif

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added these in the Rocky 9 compatibility branch which was just merged. Go ahead and revert the ones on this branch and see if the ones I added are enough to get builds on mac working.

Comment thread models/utilities/math_utils/include/math_utils.hh Outdated
Comment thread models/utilities/math_utils/src/math_utils.cc Outdated
Comment thread models/utilities/table_interp_cpp/verif/SIM_02_simple_table_lookup/S_define Outdated
Comment thread trickified/makefile
Comment on lines -12 to -14
ifeq ($(shell pkg-config --exists libxml-2.0 && echo $$?),0)
export TRICKIFY_CXX_FLAGS += $(shell pkg-config libxml-2.0 --cflags)
endif

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably going to cause the Rocky build to fail because it won't be able to find libxml types that the headers need.

Otney Boyd Crawford added 3 commits August 26, 2026 17:23
- removed lines that got unit sims compile with the overloaded-virtual compiler flag error
- a quick check to only use GCC specific compiler warnings if a user is compiling with GCC
- removing a check to see if Trick exists from the test script

Other issues to potentially be fixed with a merge with main

Refs #16
@jman025
jman025 marked this pull request as ready for review August 28, 2026 18:13
@jman025
jman025 requested a review from a team August 28, 2026 18:13

This branch has not been deployed

No deployments
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.

2 participants