gms-bbg / gamess-issues

GAMESS issue tracking
7 stars 1 forks source link

Linking fails on Ubuntu 18.04 with openblas #9

Open pjmartel opened 5 years ago

pjmartel commented 5 years ago

Gamess linking with 'lked' fails with the following error message:

/usr/lib/x86_64-linux-gnu//libopenblas.a(memory.o): In function `openblas_fork_handler':
(.text+0x220): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status

The OpenBlas library was installed as a binary packaged managed by Ubuntu.

Quick Fix: replaced line 1237 of lked:

      set MSG_LIBRARIES="$GMS_BUILD_DIR/ddi/libddi.a $MPILIBS -lpthread"

with

      set MSG_LIBRARIES="$GMS_BUILD_DIR/ddi/libddi.a $MPILIBS -pthread"