Project

General

Profile

Bug #260

Compile fails on hppa (PA-RISC) at gmx_cyclecounter.h:378

Added by Nicholas Breen almost 11 years ago. Updated over 10 years ago.

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

Description

When compiling 4.0.2 on a PA-RISC machine, it fails in an asm block:

/bin/sh ../../libtool --tag=CC --mode=compile hppa-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../../src/gmxlib -I../../src -I../../../../include -DGMXLIBDIR=\"/usr/share/top\" -MT gmx_cyclecounter.lo -MD -MP -MF .deps/gmx_cyclecounter.Tpo -c -o gmx_cyclecounter.lo ../../../../src/gmxlib/gmx_cyclecounter.c
hppa-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../../src/gmxlib -I../../src -I../../../../include -DGMXLIBDIR=\"/usr/share/top\" -MT gmx_cyclecounter.lo -MD -MP -MF .deps/gmx_cyclecounter.Tpo -c ../../../../src/gmxlib/gmx_cyclecounter.c -fPIC -DPIC -o .libs/gmx_cyclecounter.o
In file included from ../../../../src/gmxlib/gmx_cyclecounter.c:32:
../../../../include/gmx_cyclecounter.h: In function 'gmx_cycles_read':
../../../../include/gmx_cyclecounter.h:378: error: 'gmx_time_cycle' undeclared (first use in this function)
../../../../include/gmx_cyclecounter.h:378: error: (Each undeclared identifier is reported only once
../../../../include/gmx_cyclecounter.h:378: error: for each function it appears in.)
../../../../include/gmx_cyclecounter.h:378: error: expected ';' before 'ret'
../../../../include/gmx_cyclecounter.h:379: error: 'ret' undeclared (first use in this function)
../../../../include/gmx_cyclecounter.h:379: error: invalid lvalue in asm output 0
make5: *** [gmx_cyclecounter.lo] Error 1

This is the only place in the source code that "gmx_time_cycle" appears. Should it be gmx_cycles_t instead? (I don't have shell access to this machine, so testing is proving difficult.)

History

#1 Updated by Erik Lindahl over 10 years ago

Fixed, will be in 4.0.3.

Also available in: Atom PDF