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. |
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. |
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? |
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. |
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"? |
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:
Quote:
|
All times are GMT -4. The time now is 00:17. |