CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Compiled UDF on IBM/AIX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2010, 11:22
Default Compiled UDF on IBM/AIX
  #1
New Member
 
Kevin
Join Date: Dec 2009
Posts: 14
Rep Power: 16
TypeSpeed is on a distinguished road
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.
TypeSpeed is offline   Reply With Quote

Old   March 3, 2010, 10:05
Default
  #2
New Member
 
Michael Felt
Join Date: Mar 2010
Posts: 3
Rep Power: 16
rootvg is on a distinguished road
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.
rootvg is offline   Reply With Quote

Old   March 3, 2010, 19:32
Default
  #3
New Member
 
Kevin
Join Date: Dec 2009
Posts: 14
Rep Power: 16
TypeSpeed is on a distinguished road
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?
TypeSpeed is offline   Reply With Quote

Old   March 5, 2010, 04:20
Default
  #4
New Member
 
Michael Felt
Join Date: Mar 2010
Posts: 3
Rep Power: 16
rootvg is on a distinguished road
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.
rootvg is offline   Reply With Quote

Old   March 5, 2010, 18:20
Default
  #5
New Member
 
Kevin
Join Date: Dec 2009
Posts: 14
Rep Power: 16
TypeSpeed is on a distinguished road
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"?
TypeSpeed is offline   Reply With Quote

Old   March 6, 2010, 11:18
Default
  #6
New Member
 
Michael Felt
Join Date: Mar 2010
Posts: 3
Rep Power: 16
rootvg is on a distinguished road
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.
rootvg is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 20:26.