You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The flags are just the output of pkg-config --libs --cflags for the two libraries. The build script should probably be modified so it uses pkg-config by default to find these (I would send a pr but I'm not familiar enough with nim to know how to do that)
The text was updated successfully, but these errors were encountered:
VisenDev
changed the title
build script cannot find homebrew install gmp and mpfr on mac
build script cannot find homebrew installed gmp and mpfr on mac
Jan 2, 2025
@VisenDev First of all, welcome to our community! 🚀
The issue above looks a bit weird... I'm a Mac user myself (so all the compilation is done on macOS normally - M1 and Intel) but I haven't had any problem like this before.
The issue above looks a bit weird... I'm a Mac user myself (so all the compilation is done on macOS normally - M1 and Intel) but I haven't had any problem like this before.
Thanks, my guess would be that those libraries are installed in a such a way on your machine so that clang searches for them by default. (Or my homebrew install is just weird and it didn't add those paths to the compiler search paths)
The issue above looks a bit weird... I'm a Mac user myself (so all the compilation is done on macOS normally - M1 and Intel) but I haven't had any problem like this before.
Thanks, my guess would be that those libraries are installed in a such a way on your machine so that clang searches for them by default. (Or my homebrew install is just weird and it didn't add those paths to the compiler search paths)
That's very weird...
Apparently, I have the exact same Nim version as you, with HomeBrew having installed the exact same GMP/MPFR version (the paths are identical). For some reason, the header/library path is set correctly here but not for you... 🤔
I'll keep investigating. Thanks for bringing it up, needless to say! 😉
System info
In order to successfully compile I had to add these lines to the
compile()
procedure in build.nimsThe flags are just the output of
pkg-config --libs --cflags
for the two libraries. The build script should probably be modified so it uses pkg-config by default to find these (I would send a pr but I'm not familiar enough with nim to know how to do that)The text was updated successfully, but these errors were encountered: