|
[Sponsors] |
March 2, 2010, 11:22 |
Compiled UDF on IBM/AIX
|
#1 |
New Member
Kevin
Join Date: Dec 2009
Posts: 14
Rep Power: 16 |
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. |
|
March 3, 2010, 10:05 |
|
#2 |
New Member
Michael Felt
Join Date: Mar 2010
Posts: 3
Rep Power: 16 |
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. |
|
March 3, 2010, 19:32 |
|
#3 |
New Member
Kevin
Join Date: Dec 2009
Posts: 14
Rep Power: 16 |
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? |
|
March 5, 2010, 04:20 |
|
#4 |
New Member
Michael Felt
Join Date: Mar 2010
Posts: 3
Rep Power: 16 |
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. |
|
March 5, 2010, 18:20 |
|
#5 |
New Member
Kevin
Join Date: Dec 2009
Posts: 14
Rep Power: 16 |
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"? |
|
March 6, 2010, 11:18 |
|
#6 | ||
New Member
Michael Felt
Join Date: Mar 2010
Posts: 3
Rep Power: 16 |
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:
|
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
Help! Compiled UDF problem 4 Wave tank tutorial | Shane | FLUENT | 1 | September 3, 2010 02:32 |
Why udf can not be compiled in my pc? | Xinqiang | FLUENT | 0 | June 10, 2009 14:32 |
difference between udf compiled and udf interprete | chandra sekhar | FLUENT | 2 | April 11, 2006 00:04 |
how to quit compiled or interprited UDF | tian | FLUENT | 0 | April 8, 2003 23:53 |