Closed IronhandedLayman closed 6 years ago
Agreed! I'll look into it again. For reference, this issue was briefly mentioned here as well: https://github.com/cpmech/gosl/issues/26
Done!
My all.bash
script should now autodetect the GCC version on macOS.
See changes here: https://github.com/cpmech/gosl/commit/c34297e62614b37a77d9a492fb7386f44e35fdb9
NOTE: I've tested with the most recent HomeBrew packages.
Thanks for your suggestion.
When attempting an install of gosl on MacOS using the instructions in the doc directory I get the following issue:
This is because the CGO Darwin flags in num/qpck/flags.go specifically point to a particular version of GCC that according to Homebrew is out of date. It is annoyingly difficult to get Homebrew to install multiple versions of a package, and besides this should be detected somehow. Maybe a
go generate
line to detect gcc version and populate? Maybe setting CGO_LDFLAGS from theall.bash
script? The current fix (editing line 12 of flags.go) requires a codehack to get everything to build and I think this user experience can be drastically improved.