Hi, > Hello, > I'm trying to start a little haskell project for the first time in a few > months. > This is the first time I'm trying to run ghc on OpenBSD > I'm not sure what ghc's problem is, I've pasted the error message below > along with the version of ld and dmesg > > I'm pretty sure that this is an openbsd problem.
It's more a problem of ghc (8.2) trying to make guesses about the installed toolchain in a way that doesn't work correctly on OpenBSD. > The only "fix" I was able > to find was this: https://gitlab.haskell.org/ghc/ghc/issues/8825 > However, setting the locale had no effect. > I have also copied the version of ghc and the output of locale below. > > I appreciate any kind of help. > > --- ghc output --- > [1 of 1] Compiling Main ( Main.hs, Main.o ) > Linking Main ... > > <no location info>: error: > Warning: Couldn't figure out linker information! > Make sure you're using GNU ld, GNU gold or the built in OS X > linker, etc. That error isn't an error but just a warning which gets misinterpreted by (probably) the ghc driver. If you check the exit code of ghc, you'll notice that it's 0. And if you ls -l, you'll see a perfect 'Main' executable. I think this should be fixed in ghc-8.6, but I can't check it now, because I managed to brick my build machine. I hope to fix it next monday and continue to work on a update of our ghc port. Ciao, Kili ps: please note that I'm not subscribed to misc@ with my 'real' mail account, only with a crappy gmail account I'm only reading on my tablet (from which I forwarded your mail to my real address). So better cc' me if you've any other questions ;-)