Re: Undefined reference to __atomic_store_8

2020-08-13 Thread Tijl Coosemans
On Thu, 13 Aug 2020 17:38:41 +0400 Gleb Popov wrote: > Still, I'm curious where I can get __atomic_load_n in an i386 case, if I > don't want to pull in gcc? There's an implementation in libcompiler_rt but we don't build it. It doesn't look correct in this case because it seems to use FILDLL. ___

Re: Undefined reference to __atomic_store_8

2020-08-13 Thread Gleb Popov
On Wed, Aug 12, 2020 at 3:42 PM Tijl Coosemans wrote: > On Wed, 12 Aug 2020 09:44:25 +0400 Gleb Popov wrote: > > On Wed, Aug 12, 2020 at 9:21 AM Gleb Popov wrote: > >> Indeed, this looks like a culprit! When compiling using first command > line > >> (the long one) I get following warnings: > >>

Re: Undefined reference to __atomic_store_8

2020-08-12 Thread Tijl Coosemans
On Wed, 12 Aug 2020 17:35:17 +0300 Konstantin Belousov wrote: > On Wed, Aug 12, 2020 at 01:41:58PM +0200, Tijl Coosemans wrote: >> StgWord64 is uint64_t which is unsigned long long which is 4 byte >> aligned on i386. Clang wants 8 byte alignment to use the fildll >> instruction. > This all is ve

Re: Undefined reference to __atomic_store_8

2020-08-12 Thread Konstantin Belousov
On Wed, Aug 12, 2020 at 01:41:58PM +0200, Tijl Coosemans wrote: > On Wed, 12 Aug 2020 09:44:25 +0400 Gleb Popov wrote: > > On Wed, Aug 12, 2020 at 9:21 AM Gleb Popov wrote: > >> Indeed, this looks like a culprit! When compiling using first command line > >> (the long one) I get following warnings:

Re: Undefined reference to __atomic_store_8

2020-08-12 Thread Tijl Coosemans
On Wed, 12 Aug 2020 09:44:25 +0400 Gleb Popov wrote: > On Wed, Aug 12, 2020 at 9:21 AM Gleb Popov wrote: >> Indeed, this looks like a culprit! When compiling using first command line >> (the long one) I get following warnings: >> >> /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.1/libraries/ghc-prim/c

Re: Undefined reference to __atomic_store_8

2020-08-11 Thread Gleb Popov
On Wed, Aug 12, 2020 at 9:21 AM Gleb Popov wrote: > Indeed, this looks like a culprit! When compiling using first command line > (the long one) I get following warnings: > > /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.1/libraries/ghc-prim/cbits/atomic.c:369:10: > warning: misaligned atomic operatio

Re: Undefined reference to __atomic_store_8

2020-08-11 Thread Gleb Popov
On Wed, Aug 12, 2020 at 1:52 AM Tijl Coosemans wrote: > On Tue, 11 Aug 2020 15:56:35 +0400 Gleb Popov wrote: > > On Sun, Aug 9, 2020 at 7:43 PM Konstantin Belousov > > wrote: > > > > > I do not believe there were any change in the toolchain between p2 and > p7, > > > this is more likely indicate

Re: Undefined reference to __atomic_store_8

2020-08-11 Thread Tijl Coosemans
On Tue, 11 Aug 2020 15:56:35 +0400 Gleb Popov wrote: > On Sun, Aug 9, 2020 at 7:43 PM Konstantin Belousov > wrote: > > > I do not believe there were any change in the toolchain between p2 and p7, > > this is more likely indicates some fluctuation in the build. The only > > change that could be

Re: Undefined reference to __atomic_store_8

2020-08-11 Thread Konstantin Belousov
On Tue, Aug 11, 2020 at 03:56:35PM +0400, Gleb Popov wrote: > On Sun, Aug 9, 2020 at 7:43 PM Konstantin Belousov > wrote: > > > I do not believe there were any change in the toolchain between p2 and p7, > > this is more likely indicates some fluctuation in the build. The only > > change that cou

Re: Undefined reference to __atomic_store_8

2020-08-11 Thread Gleb Popov
On Sun, Aug 9, 2020 at 4:37 PM Tijl Coosemans wrote: > On Sun, 9 Aug 2020 15:36:51 +0400 Gleb Popov wrote: > > On Sat, Aug 8, 2020 at 5:30 PM Konstantin Belousov > > wrote: > >> For code generated by gcc or clang, yes. > >> If the reference to the symbol was generated by ghc, then I do not know.

Re: Undefined reference to __atomic_store_8

2020-08-11 Thread Gleb Popov
On Sun, Aug 9, 2020 at 7:43 PM Konstantin Belousov wrote: > I do not believe there were any change in the toolchain between p2 and p7, > this is more likely indicates some fluctuation in the build. The only > change that could be even remotely declared as possibly related is > EN-20:10.build r36

Re: Undefined reference to __atomic_store_8

2020-08-09 Thread Konstantin Belousov
On Sun, Aug 09, 2020 at 02:37:42PM +0200, Tijl Coosemans wrote: > On Sun, 9 Aug 2020 15:36:51 +0400 Gleb Popov wrote: > > On Sat, Aug 8, 2020 at 5:30 PM Konstantin Belousov > > wrote: > >> For code generated by gcc or clang, yes. > >> If the reference to the symbol was generated by ghc, then I do

Re: Undefined reference to __atomic_store_8

2020-08-09 Thread Tijl Coosemans
On Sun, 9 Aug 2020 15:36:51 +0400 Gleb Popov wrote: > On Sat, Aug 8, 2020 at 5:30 PM Konstantin Belousov > wrote: >> For code generated by gcc or clang, yes. >> If the reference to the symbol was generated by ghc, then I do not know. > > This doesn't seem to work. > > The code referencing __ato

Re: Undefined reference to __atomic_store_8

2020-08-09 Thread Gleb Popov
On Sat, Aug 8, 2020 at 5:30 PM Konstantin Belousov wrote: > For code generated by gcc or clang, yes. > If the reference to the symbol was generated by ghc, then I do not know. > This doesn't seem to work. The code referencing __atomic_load_n() is C and GHC buildsystem already passes -march=i686

Re: Undefined reference to __atomic_store_8

2020-08-08 Thread Tijl Coosemans
l 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' >>> >>>

Re: Undefined reference to __atomic_store_8

2020-08-08 Thread Konstantin Belousov
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 >

Re: Undefined reference to __atomic_store_8

2020-08-08 Thread Gleb Popov
t; > > > > /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-in

Re: Undefined reference to __atomic_store_8

2020-08-07 Thread Konstantin Belousov
/ > 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

Undefined reference to __atomic_store_8

2020-08-07 Thread Gleb Popov
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