CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Compiled UDF on IBM/AIX (https://www.cfd-online.com/Forums/fluent/73228-compiled-udf-ibm-aix.html)

TypeSpeed March 2, 2010 11:22

Compiled UDF on IBM/AIX
 
Hello,
I am using compiled UDF on IBM/AIX platform. After I add the file and click "build".
I get the following error information:
"
make: The error code from the last command is 2
stop.
"
Can anyone know what could cause the error?
Thank you.

rootvg March 3, 2010 10:05

I do not know what UDF is, I do know make, and config processes.

Most frequently an error message from make means it was compiling, or linking a file, and the compiler or linker reported an error.

To really help you one would need more than just the last gasp from the make command.

TypeSpeed March 3, 2010 19:32

Thank you for your reply.
It is great that you know make, and config processes
I use the compiled UDF. When I review the makelog file, it shows

"/bin/shell/ cc: not found",

does it mean FLUENT can not find the compiler?

rootvg March 5, 2010 04:20

Yes. And possibly because no compiler is installed.

There are basically two compilers for AIX. Either gcc or IBM prodict called xlC and vac (and vacpp for C++).

If the IBM compiler is installed you need to add /usr/vac/bin and/or /usr/vacpp/bin to your PATH variable.

From the command line:
PATH=${PATH}:/usr/vac/bin:/usr/vacpp/bin
export PATH

For gcc it is probably:
PATH=${PATH}:/usr/local/bin
export PATH

Also take a look at my AIX portal - http://www.rootvg.net - 9 years of public support.

TypeSpeed March 5, 2010 18:20

Thank you for your reply.

I think your answer is to the point. But the gcc compiler's command is gcc, not cc. Why does it show "cc: not found"?

rootvg March 6, 2010 11:18

I would need to see the build script to see that.

make is looking for a compiler - so it says it cannot find cc: in in's error message.

a script, usually named configure, is run on a new platform to create the makefile.

In amy case - I mention gcc as a compiler because that is a very common compiler on linux/unix systems. I am assuming that whoever, or whatever, created/wrote the input file to the command make (the Makefile usually) knows this.

I dont have a compiler installed on my current system (the first lslpp command, but I do have runtime support installed (second command)).

Quote:

michael@x054:[/data/home/michael]lslpp -L | grep vac
michael@x054:[/data/home/michael]lslpp -L | grep -i xlc
xlC.aix61.rte 10.1.0.2 C F XL C/C++ Runtime for AIX 6.1
xlC.cpp 9.0.0.0 C F C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 C F C for AIX Preprocessor
xlC.msg.en_US.rte 10.1.0.2 C F XL C/C++ Runtime
xlC.rte 10.1.0.2 C F XL C/C++ Runtime
xlC.sup.aix50.rte 9.0.0.1 C F XL C/C++ Runtime for AIX 5.2
Generally yhe gcc compier is packaged as an rpm. use rpm -q -a to see what is installed using rpm
Quote:

michael@x054:[/data/home/michael]rpm -q -a
cdrecord-1.9-7
mkisofs-1.13-4
AIX-rpm-6.1.3.0-1
tcl-8.3.3-1
tk-8.3.3-1
expect-5.32-1
Again, no compiler.


All times are GMT -4. The time now is 00:17.