Skip to content

perf: TipInstability()#37

Merged
ms609 merged 6 commits into
mainfrom
tip-instab-in-c
Jun 19, 2026
Merged

perf: TipInstability()#37
ms609 merged 6 commits into
mainfrom
tip-instab-in-c

Conversation

@ms609

@ms609 ms609 commented Jun 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

ms609 and others added 6 commits June 19, 2026 17:57
The previous commit shipped src/tip_instability.cpp and registered
TIP_INSTABILITY in Rogue_init.c, but Makevars still listed only the C
objects, so the new C++ object was compiled but never put on the link
line. On macOS (-undefined dynamic_lookup) the .so links cleanly with
the symbol unresolved, then dlopen fails at load:

  symbol not found in flat namespace '_TIP_INSTABILITY'

Add tip_instability.o to OBJECTS and set CXX_STD = CXX17 (matches
DESCRIPTION SystemRequirements). Local Windows builds passed only
because they used the working-tree Makevars.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The previous commit shipped src/tip_instability.cpp and registered
TIP_INSTABILITY in Rogue_init.c, but Makevars still listed only the C
objects, so the new C++ object was compiled but never put on the link
line. On macOS (-undefined dynamic_lookup) the .so links cleanly with
the symbol unresolved, then dlopen fails at load:

  symbol not found in flat namespace '_TIP_INSTABILITY'

Add tip_instability.o to OBJECTS and set CXX_STD = CXX17 (matches
DESCRIPTION SystemRequirements). Local Windows builds passed only
because they used the working-tree Makevars.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rinternals.h defines `#define length(x) Rf_length(x)` globally.
When <vector> is included after <Rinternals.h>, that macro fires inside
libc++'s __locale:792 (`length` method), producing errors:

  too many arguments provided to function-like macro invocation
  '__abi_tag__' attribute only applies to structs/variables/...

Fix: include all C++ standard headers before any R headers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ms609 ms609 merged commit 08493cb into main Jun 19, 2026
10 checks passed
@ms609 ms609 deleted the tip-instab-in-c branch June 19, 2026 19:06
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.

1 participant