On Sat, Aug 08, 2020 at 12:37:42PM +0400, Gleb Popov wrote:
> On Sat, Aug 8, 2020 at 1:29 AM Konstantin Belousov <kostik...@gmail.com>
> wrote:
> 
> > On Fri, Aug 07, 2020 at 08:42:12PM +0400, Gleb Popov wrote:
> > > Hello toolchain@
> > >
> > > I'm testing a new release of GHC (Haskell compiler) and it fails to link
> > to
> > > i386 architectures with
> > >
> > >
> > /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.1/libraries/ghc-prim/dist-install/build/
> > > libHSghc-prim-0.6.1-ghc8.10.1.so: undefined reference to
> > `__atomic_store_8'
> > >
> > /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.1/libraries/ghc-prim/dist-install/build/
> > > libHSghc-prim-0.6.1-ghc8.10.1.so: undefined reference to
> > `__atomic_load_8'
> > >
> > > Any suggestions on how to fix this?
> >
> > Either link to libatomic from recent gcc, or switch target cpu to something
> > that is pentium or newer.  I doubt that it is reasonable to run GHC on 486.
> >
> 
> By switching target CPU you mean passing -march=pentium?
For code generated by gcc or clang, yes.
If the reference to the symbol was generated by ghc, then I do not know.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to