Skip to content

Fix whirl2f.so hardcoded maccom.so dependency#54

Open
noafroboy wants to merge 1 commit intoopen64-compiler:developfrom
noafroboy:fix/whirl2f-be-so
Open

Fix whirl2f.so hardcoded maccom.so dependency#54
noafroboy wants to merge 1 commit intoopen64-compiler:developfrom
noafroboy:fix/whirl2f-be-so

Conversation

@noafroboy
Copy link

Summary

  • Replace hardcoded maccom.so references in osprey/be/whirl2f/Makefile.gbase with $(BE_SO)

Motivation

The xcalscan merge (commit 12cc654) replaced be.so with hardcoded maccom.so in whirl2f's Makefile. maccom.so is only the correct backend DSO name when BUILD_PRODUCT=MASTIFF. For the standard open-source build (BUILD_PRODUCT=OPEN64), the backend is be.so.

This causes whirl2f.so to link against a maccom.so symlink pointing to a nonexistent file, since only be.so gets built. whirl2c in the same directory already correctly uses $(BE_SO).

Changes

  • osprey/be/whirl2f/Makefile.gbase: Replace all maccom.so references with $(BE_SO), matching the pattern used by whirl2c

Test plan

  • make build with default BUILD_PRODUCT=OPEN64 — whirl2f.so links against be.so
  • whirl2f symlink points to the correct backend DSO

🤖 Generated with Claude Code

whirl2f's Makefile hardcoded 'maccom.so' as its backend DSO dependency,
but maccom.so is only the correct name when BUILD_PRODUCT=MASTIFF. For
the standard open-source build, the backend is named 'be.so'.

This caused a race condition in parallel builds: whirl2f.so would try
to link against a maccom.so symlink pointing to a nonexistent file in
the be directory, since 'be.so' (not 'maccom.so') is what gets built.

Fix by using $(BE_SO) — which resolves to 'be.so' or 'maccom.so'
depending on BUILD_PRODUCT — matching what whirl2c already does.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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