Skip to content

Closes #5144: Clean up linking warning in make - #5145

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:5144-Clean_up_linking_warning_in_make
Dec 17, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:5144-Clean_up_linking_warning_in_make

Conversation

@1RyanK

@1RyanK 1RyanK commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

Fixed unused -L warnings during C++ compilation by separating compile and link flags

This PR updates the add-path macro in the Makefile to avoid passing -L (library search paths) to compilation steps. Previously, INCLUDE_FLAGS contained both -I and -L paths, but INCLUDE_FLAGS is used for compilation (clang++ -c). Since the -L flag is only meaningful at link time, Clang emitted warnings like:

warning: argument unused during compilation: '-L<path>' [-Wunused-command-line-argument]

What changed

  • INCLUDE_FLAGS now contains only -I include paths.
  • CHPL_FLAGS now contains the -L paths and corresponding --ldflags="-Wl,-rpath,...".
  • No functional changes to linked libraries; linking behavior remains the same.

Why this matters

  • Eliminates noisy compiler warnings during the Arrow helper builds.
  • Cleans up the build system so compile/link flags are used correctly.
  • Makes it easier to spot actual warnings in CI.

Closes #5144: Clean up linking warning in make

@1RyanK
1RyanK force-pushed the 5144-Clean_up_linking_warning_in_make branch 2 times, most recently from 2c8af19 to 80e11f8 Compare December 14, 2025 13:47
Comment thread make/Prologue.mk Resolved
Comment thread make/Prologue.mk Resolved
@1RyanK
1RyanK force-pushed the 5144-Clean_up_linking_warning_in_make branch from 3ef1a70 to 2497c3a Compare December 15, 2025 19:03
Comment thread make/Prologue.mk Resolved
@1RyanK
1RyanK force-pushed the 5144-Clean_up_linking_warning_in_make branch 2 times, most recently from 54db603 to 00e56c0 Compare December 15, 2025 19:27
@1RyanK
1RyanK force-pushed the 5144-Clean_up_linking_warning_in_make branch from 00e56c0 to 6871226 Compare December 17, 2025 12:55

@ajpotts ajpotts left a comment

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.

Thanks for fixing this!

@jaketrookman jaketrookman left a comment

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.

Looks good

Comment thread make/Prologue.mk Resolved
@ajpotts
ajpotts added this pull request to the merge queue Dec 17, 2025
Merged via the queue into Bears-R-Us:main with commit 9835fec Dec 17, 2025
ajpotts added a commit to ajpotts/arkouda that referenced this pull request Dec 18, 2025
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.

Clean up linking warning in make

5 participants