Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
building on AIX (Read 3049 times)
konrad
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 53
building on AIX
Nov 24th, 2005 at 8:46am
 
Hi Sergei,

I'm trying to build hyphy (SP) on an AIX cluster. sh on this cluster invokes ksh, which has a problem with the syntax in build.sh, so I used bash:

> bash build.sh SP
AIX
COMPILER=xlC, xlc
COMPILER_FLAGS= -c -qchar=signed -O5 -D__HYPHY_NO_CURL__
+--------------------------------------+
|Building a single threaded HYPHYKernel|
+--------------------------------------+
Building HYNetInterface.cpp
    1500-036: (I) The NOSTRICT option (default at OPT(3)) has the potential to alter the semantics of a program.  Please refer to documentation on the STRICT/NOSTRICT option for more information.

I get the above warning several times, then:

Building likefunc.cpp
"likefunc.cpp", line 6291.45: 1540-1102 (W) "D" might be used before it is set.
"likefunc.cpp", line 6552.45: 1540-1102 (W) "D" might be used before it is set.
"likefunc.cpp", line 11426.44: 1540-0274 (S) The name lookup for "round" did not find a declaration.
Error during compilation

Any suggestions?

thanks,
Konrad
Back to top
 
WWW WWW  
IP Logged
 
avilella
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 35
Re: building on AIX
Reply #1 - Nov 26th, 2005 at 1:08am
 
You can try with:

COMPILER_FLAGS=" -c -qchar=signed -O3 -D__HYPHY_NO_CURL__ -qstrict";
COMPILER_LINK_FLAGS=" -qchar=signed -D__HYPHY_NO_CURL__ -bmaxdata:0x80000000";
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: building on AIX
Reply #2 - Nov 27th, 2005 at 2:40pm
 
Hey Konrad,

It sounds like the [b]math.h[/b] on your AIX distro does not contain the [i]round[/i] function. I suggest perhaps doing a grep on the include directory to find the file which has [i]round[/i] in it and then adding the appropriate "include" statement in the 'likefunc.h'.

Alternatively, you can edit the call to [i]round(x)[/i] to instead be [i](long)(x+0.5)[/i].

Cheers,
Sergei



Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged