Project

General

Profile

Bug #682

Gromacs 4.5.3 fails to compile on ppc

Added by Jussi Lehtola over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

Hi,

Gromacs 4.5.3 fails to compile on RHEL 4 for ppc. The error comes in

[ 77%] /usr/bin/gcc -O2 -g -pipe -m32 -fsigned-char -Wa,--noexecstack -fPIC -O3 -DNDEBUG -fPIC CMakeFiles/g_luck.dir/g_luck.c.o -o g_luck -rdynamic -ldl -lm libgmxpreprocess.so.6 ../mdlib/libmd.so.6 ../gmxlib/libgmx.so.6 -ldl -lm -lpthread -lfftw3f -lxml2
../gmxlib/libgmx.so.6: undefined reference to `__sync_lock_test_and_set'
../gmxlib/libgmx.so.6: undefined reference to `__sync_fetch_and_add'
../gmxlib/libgmx.so.6: undefined reference to `__sync_bool_compare_and_swap'
../gmxlib/libgmx.so.6: undefined reference to `__sync_lock_release'
../gmxlib/libgmx.so.6: undefined reference to `__sync_synchronize'
../gmxlib/libgmx.so.6: undefined reference to `__sync_add_and_fetch'
collect2: ld returned 1 exit status
make2: *** [src/kernel/g_luck] Error 1

The full logs are available at
http://koji.fedoraproject.org/koji/taskinfo?taskID=2740287


Related issues

Related to GROMACS - Bug #573: CMake doesn't detect Altivec supportClosed09/28/2010
Related to GROMACS - Bug #574: Using autoconf produces zero forces with AltivecClosed09/28/2010

History

#1 Updated by Rossen Apostolov about 8 years ago

Do you have the same problem with 4.5.4?

#2 Updated by Jussi Lehtola about 8 years ago

Yes, see
http://koji.fedoraproject.org/koji/getfile?taskID=3119344&name=build.log

/usr/bin/gcc -O2 -g -pipe -m32 -fsigned-char -Wa,--noexecstack -fPIC -O3 -DNDEBUG -fPIC CMakeFiles/g_luck.dir/g_luck.c.o -o g_luck -rdynamic -ldl -lm libgmxpreprocess.so.6 ../mdlib/libmd.so.6 ../gmxlib/libgmx.so.6 -ldl -lm -lpthread -lfftw3f -lxml2
../gmxlib/libgmx.so.6: undefined reference to `__sync_lock_test_and_set'
../gmxlib/libgmx.so.6: undefined reference to `__sync_fetch_and_add'
../gmxlib/libgmx.so.6: undefined reference to `__sync_bool_compare_and_swap'
../gmxlib/libgmx.so.6: undefined reference to `__sync_lock_release'
../gmxlib/libgmx.so.6: undefined reference to `__sync_synchronize'
../gmxlib/libgmx.so.6: undefined reference to `__sync_add_and_fetch'

#3 Updated by Rossen Apostolov over 7 years ago

Related question - are the Altivec kernels important for you? Because we consider dropping the support for them, see #574

#4 Updated by Jussi Lehtola over 7 years ago

No, they're not.

#5 Updated by Rossen Apostolov over 7 years ago

What version of gcc are you using? Is it possible that it doesn't have support for these primitives on ppc?

Rossen

Jussi Lehtola wrote:

Yes, see
http://koji.fedoraproject.org/koji/getfile?taskID=3119344&name=build.log

/usr/bin/gcc -O2 -g -pipe -m32 -fsigned-char -Wa,--noexecstack -fPIC -O3 -DNDEBUG -fPIC CMakeFiles/g_luck.dir/g_luck.c.o -o g_luck -rdynamic -ldl -lm libgmxpreprocess.so.6 ../mdlib/libmd.so.6 ../gmxlib/libgmx.so.6 -ldl -lm -lpthread -lfftw3f -lxml2
../gmxlib/libgmx.so.6: undefined reference to `__sync_lock_test_and_set'
../gmxlib/libgmx.so.6: undefined reference to `__sync_fetch_and_add'
../gmxlib/libgmx.so.6: undefined reference to `__sync_bool_compare_and_swap'
../gmxlib/libgmx.so.6: undefined reference to `__sync_lock_release'
../gmxlib/libgmx.so.6: undefined reference to `__sync_synchronize'
../gmxlib/libgmx.so.6: undefined reference to `__sync_add_and_fetch'

#6 Updated by Rossen Apostolov over 7 years ago

  • Target version set to 4.5.6

#7 Updated by Jussi Lehtola over 7 years ago

Well, this was on RHEL 4, so it was on the 3.4.6 series.

But RHEL 4 is EOL, so this bug is kind of obsolete.

#8 Updated by Rossen Apostolov over 7 years ago

  • Status changed from New to Closed

OK, closing then.

Also available in: Atom PDF