Skip to content

ld: warning: ignoring duplicate libraries: '-lm'

Summary

I've been getting warnings when linking Haskell executables: AA.hs:

module Main where

main = pure()

results in:

> ghc AA.hs
[1 of 2] Compiling Main             ( AA.hs, AA.o ) [Source file changed]
[2 of 2] Linking AA [Objects changed]
ld: warning: ignoring duplicate libraries: '-lm'

This also seems to have broken CI for aarch64-darwin

Expected behavior

We should fix the warning

Environment

  • GHC version used: 9.6
  • Operating System: macOS
  • System Architecture: aarch64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information