Operating System - HP-UX
1825737 Members
2497 Online
109687 Solutions
New Discussion

Makefile error for aCC compiler

 
suresh_45
New Member

Makefile error for aCC compiler

Hi,
As part of my application development, I've used 'mkmf' tool on HP-UX11.11 to create makefile. I am using aCC compiler. Once I got the makefile from the tool , I've changed 'LD'(cc) value in Makefile to point to aCC so that it can compile *.cpp files. But when I do make, I am getting the following error...

Error:
$ make
CC -O -c test.cpp
Make: Cannot load CC. Stop.
*** Error exit code 1

Can anyone please let me know if any work around for this.From the web, i got to know that by using GNU make, I can get away with it. But I cant use gmake since I am developing application using aCC compiler.
Kindly let me know any solution for this.
Thanks in advance,
Suresh
3 REPLIES 3
D Block 2
Respected Contributor

Re: Makefile error for aCC compiler

Suresh, it sounds like a generic err exit code.

can you type this command in by hand ?
does it work by the command-line you type in?

you might have to trace your make fine:
make -n

and play with - what it might exeucte ..

can you do this:

$ type CC

what it returns .. can you define this in your make file .. and run again: $ make -n main
or make -n

can you see us, the make file contents ?
also, do you have HP's aCC or CC installed?




Golf is a Good Walk Spoiled, Mark Twain.
Stephen Keane
Honored Contributor

Re: Makefile error for aCC compiler

Shouldn't that read

# aCC -O -c test.cpp

rather than

# CC -O -c test.cpp

Is you definition of $(CC) correct?
ranganath ramachandra
Esteemed Contributor

Re: Makefile error for aCC compiler

it looks like you changed the makefile from
$(LD) ...
to
$aCC ...

in makefiles you should always enclose the variable name within braces as
$(aCC)
else make will only try to take the value of the 'a' that follows the '$'. if $a is null, you finally get only 'CC'.

by the way you should not be using the hp CC compiler now, it is not supported anymore.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo