System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Can not compile iozone with aCC

 
SOLVED
Go to solution
Liam Curtis
Frequent Advisor

Can not compile iozone with aCC

Hi everyone. While trying to troubleshoot SAN performance (seen in another thread), I am trying to compile iozone 3_326 from www.iozone.org.

When I run aCC -Ae -v -O iozone.c, I first get:

Error 172: "iozone.c", line 1253 # Undeclared variable 'NAME'.

We did purchase the aCC compiler and it does work.


Any ideas or is there simply a depot I can grab somewhere?

thnx!

followed by a ton of errors. Any ideas or is there a depot that I can just download somewhere?
9 REPLIES
Steven Schweda
Honored Contributor

Re: Can not compile iozone with aCC

> When I run aCC -Ae -v -O iozone.c [...]

Why are you doing that?

> [...] from www.iozone.org.

Did you get the documentation, too? With the
"Building IOzone" instructions? Like:

Type: make
[...]

http://www.iozone.org/
http://www.iozone.org/docs/IOzone_msword_98.pdf
Liam Curtis
Frequent Advisor

Re: Can not compile iozone with aCC

Make was the first thing I tried--no go.

when I do a make, I get tons of these:

(Bundled) cc: "iozone.c", line 110: error 1705: Function prototypes are an ANSI feature.

Searched and found:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1254839345674+28353475&threadId=975114

--


so I tried using aCC and get tons of errors...


Error 699: "iozone.c", line 1814 # Error limit reached; halting compilation.
if(optarg[strlen(optarg)-1]=='g' ||

---

Believe me, I do try before I post....

Re: Can not compile iozone with aCC

what OS/platform are you trying to compile for?

I may have some old binaries tucked away somewhere...

HTH

Duncan

HTH

Duncan
Steven Schweda
Honored Contributor

Re: Can not compile iozone with aCC

> Believe me, I do try before I post....

If you provide the evidence, then no faith is
needed.

> when I do a make, I get tons of these:
>
>(Bundled) cc: "iozone.c", line 110: error 1705: Function prototypes are an ANSI feature.

Wrong C compiler. "type cc"?

> so I tried using aCC and get tons of
> errors...

Not using the proper build procedure might do
that.

Not having the real C compiler, I know
nothing, but I'd guess that there's a "cc"
somewhere which gets you the good compiler,
but it's not the first "cc" on your PATH. If
you can find it, then you might have some
chance with a command like:

CC=/path/to/the/good/cc make
or:
make CC=/path/to/the/good/cc

There might even be a chance with something
like:
make CC=aCC
or
make CC='aCC '

Or, you could use GCC, which would involve
even more work.
TTr
Honored Contributor

Re: Can not compile iozone with aCC

It compiles fine with the ansiC compiler. The acc is the c++ isn't it?
Solution

Re: Can not compile iozone with aCC

>We did purchase the aCC compiler and it does work.

When? If you got it recently, you would get both C and aC++.

>Error 172: "iozone.c", line 1253 # Undeclared variable 'NAME'.

Where should NAME be defined?

>when I do a make, I get tons of these:
(Bundled) cc: error 1705: Function prototypes are an ANSI feature.

You need to tell make that you are using aC++:
make CC="aCC -Ae" ...
Liam Curtis
Frequent Advisor

Re: Can not compile iozone with aCC

I am running HP-UX 11.11...

and as you can see I am no compiling expert ;)

we have the aCC bundle installed...I thought that the compiler did handle C...

hmm...
Liam Curtis
Frequent Advisor

Re: Can not compile iozone with aCC

"You need to tell make that you are using aC++:
make CC="aCC -Ae" ... "

Ahhh...my head can stop hurting now.

Thank you!!! that did it. Did not make the connection.

Thanks to all who replied


Liam Curtis
Frequent Advisor

Re: Can not compile iozone with aCC

"You need to tell make that you are using aC++:
make CC="aCC -Ae" ... "