Re: [AMBER] problems compiling ambertool

From: Atro Tossavainen <atro.tossavainen+amber.helsinki.fi>
Date: Mon, 16 Mar 2009 10:18:58 +0000

>> (cd nab && make install )
>> cc -c -O -DSUN -DSYSV -DBINTRAJ -Dlex embed.c
>> "lex.dg_options.c", line 75: non-constant initializer: op "NAME"
>> cc: acomp failed for embed.c

I can only confirm this (Solaris 10, Sun Studio 11). Line 75 in either
file does not make sense to me in this context. Is there anything in
particular I should be looking for?

But see also this:

Solaris10machine $ gcc -c -O -DSUN -DSYSV -DBINTRAJ -Dlex embed.c
In file included from embed.c:130:
lex.dg_options.c:75: error: initializer element is not constant
lex.dg_options.c:75: error: (near initialization for `dgoout')

(on gcc 3.4.2)

Another thing to note (in general regarding Suns, possibly not related
to this) is that C99 support on Sun Studio depends on the OS release -
it's only available on Solaris 10. -xc99 is included in the compiler
regardless, but it produces an error message under S8 and S9.

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed Mar 18 2009 - 01:07:37 PDT
Custom Search