From er|nm@hodge@@ @end|ng |rom gm@||@com  Wed Feb 27 18:06:22 2019
From: er|nm@hodge@@ @end|ng |rom gm@||@com (Erin Hodgess)
Date: Wed, 27 Feb 2019 10:06:22 -0700
Subject: [Rd] Problem with compiling OpenBLAS to work with R
Message-ID: <CACxE24kZSEVgfah=fGXqx0jzrGoc6RBwUSgBWTMgoyi4q0z84A@mail.gmail.com>

Hello!

I'm not sure if this is the right place to post this, so apologies
in advance if I'm not in the right list.

I downloaded the OpenBLAS and am following Avraham Adler's great
instructions.  However, when I run make, things go well to a certain point,
and then go bad:

make
[snip]

touch cygopenblas_haswellp-r0.3.5.a
make -j 1 -C test all
make[1]: Entering directory
'/home/erinm/OPB_HOME/xianyi-OpenBLAS-eebc189/test'
gfortran -O2 -Wall -frecursive -m64 -mavx2   -o sblat1 sblat1.o
../cygopenblas_haswellp-r0.3.5.a  -L/usr/lib/gcc/x86_64-pc-msys/7.3.0
-L/usr/lib/gcc/x86_64-pc-msys/7.3.0/../../../../x86_64-pc-msys/lib/../lib
-L/usr/lib/../lib
-L/usr/lib/gcc/x86_64-pc-msys/7.3.0/../../../../x86_64-pc-msys/lib
-L/usr/lib/w32api  -lmsys-2.0
D:/msys64/usr/lib/../lib/libpthread.a(t-d001088.o):fake:(.text+0x2):
undefined reference to `__imp_pthread_mutex_destroy'
D:/msys64/usr/lib/../lib/libpthread.a(t-d001090.o):fake:(.text+0x2):
undefined reference to `__imp_pthread_mutex_init'
D:/msys64/usr/lib/../lib/libpthread.a(t-d001091.o):fake:(.text+0x2):
undefined reference to `__imp_pthread_mutex_lock'
D:/msys64/usr/lib/../lib/libpthread.a(t-d001094.o):fake:(.text+0x2):
undefined reference to `__imp_pthread_mutex_trylock'
D:/msys64/usr/lib/../lib/libpthread.a(t-d001095.o):fake:(.text+0x2):
undefined reference to `__imp_pthread_mutex_unlock'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:134: sblat1] Error 1
make[1]: Leaving directory
'/home/erinm/OPB_HOME/xianyi-OpenBLAS-eebc189/test'
make: *** [Makefile:124: tests] Error 2


I think it has something to do with the threads/pthreads but am not sure
how to fix it.  Any suggestions much appreciated.

Thanks,
Sincerely,
Erin

Erin Hodgess, PhD
mailto: erinm.hodgess at gmail.com

	[[alternative HTML version deleted]]



[Rd] Problem with compiling OpenBLAS to work with R
Erin Hodgess