cancel
Showing results for 
Search instead for 
Did you mean: 

EPYC Discussions

thierry-FreeBSD
Journeyman III

Compilation error in AOCL-BLAS / pthread

Hello,

Trying to compile AOCL-BLAS (BLIS) on FreeBSD, with Clang-16, confname=x86_64, and --enable-threading=pthreads produces the hereunder compilation error:

Compiling obj/x86_64/aocl_dtl/test_dtl.o ('x86_64' CFLAGS for AOCL debug and trace code)
aocl_dtl/aoclos.c:92:10: fatal error: incompatible pointer to integer conversion returning 'pthread_t' (aka 'struct pthread *') from a function with result type 'AOCL_TID' (aka 'int') [-Wint-conversion]
 return pthread_self();
        ^~~~~~~~~~~~~~
1 error generated.
gmake[1]: *** [Makefile:697: obj/x86_64/aocl_dtl/aoclos.o] Error 1

Remark: with --enable-threading=openmp everything is fine.

0 Likes
5 Replies
shrjoshi
Staff

Hi @thierry-FreeBSD 

Thank you for writing to ServerGuru.
We will look into this issue and keep you updated on the same.

Hi @thierry-FreeBSD 

Can you please share the below details for understanding the issue better?
1. OS and kernel details.
2. H/w details
3. AOCL version details.
4. Complete configure command.

 

0 Likes

Hello @thierry-FreeBSD 

Reminder message : 
Can you please share the below details for understanding the issue better?
1. OS and kernel details.
2. H/w details
3. AOCL version details.
4. Complete configure command.

0 Likes
thierry-FreeBSD
Journeyman III

Hello,

Sorry for the delay. Here are the requested details:

1. FreeBSD 15.0-CURRENT - amd64

2. Alienware (Dell) 17R4

3. AOCL downloaded from GitHUB amd-blis-4.1_GH0.tar.gz

4. ./configure -p /usr/local --enable-threading=pthreads -e all --enable-cblas x86_64

 

0 Likes

Hi @thierry-FreeBSD 

FreeBSD OS is not officially supported by AOCL.
For smooth usage, we suggest you to use officially supported Operating Systems listed in section 2.1 of AOCL user guide 

0 Likes