HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy bugs >> running HYPHY on ppc64 GNU/Linux
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1119356089

Message started by avilella on Jun 21st, 2005 at 5:14am

Title: running HYPHY on ppc64 GNU/Linux
Post by avilella on Jun 21st, 2005 at 5:14am
Hi all,

I compiled HYPHY on a OpenPower 720 ppc64 GNU/Linux, but I'm having a problem when running it:

./HYPHYMP
options 1->1

Error:
Operation: < is not defined.

with options 2->1:
Error:
Operation: MAccess is not defined.

It seems there is a problem when asking for files.

Any guess?

   Albert.

Title: Re: running HYPHY on ppc64 GNU/Linux
Post by Sergei on Jun 21st, 2005 at 8:07am
Dear Albert,

wrote on Jun 21st, 2005 at 5:14am:
I compiled HYPHY on a OpenPower 720 ppc64 GNU/Linux, but I'm having a problem when running it:

./HYPHYMP
options 1->1

Error:
Operation: < is not defined.

with options 2->1:
Error:
Operation: MAccess is not defined.

It seems there is a problem when asking for files.


I have run into a similar problem with IBM's xLC. It is due to the fact that I made a (non-portable) assumption that 'char' types in C are signed by default, while on some systems they are unsigned by default (e.g. PPC systems).

Your compiler should have a command line option to force the 'char' type to be signed. In gcc, the option is -fsigned-char. If you turn that on and recompile, things should improve.

Cheers,
Sergei

Title: Re: running HYPHY on ppc64 GNU/Linux
Post by avilella on Jun 21st, 2005 at 8:50am
yep, that did the trick:

COMPILER_FLAGS=" -w -c -O3 -D__HYPHY_NO_CURL__ -fsigned-char -fpermissive -I`pwd`/Source -I`pw\d`/Source/SQLite ";

Thanks again,

   Albert.

Title: Re: running HYPHY on ppc64 GNU/Linux
Post by Sergei on Jun 21st, 2005 at 1:51pm
Dear Albert,

I will add the flag to the standard build script. Thanks for bringing this to my attention.

Cheers,
Sergei

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.