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

latest OpenFOAM-1.6.x from git failed to compile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2010, 11:39
Default
  #21
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
it is a 68 Byts file, and its contents are

Pstream.C
IPread.C
OPwrite.C

LIB = $(FOAM_LIBBIN)/dummy/libPstream

these three files are available into the folder OpenFOAM/OpenFOAM-1.6.x/src/Pstream/dummy

Michael, I guess I understand what you mean, so if g++ cannot find these files it is because an environment variable or variables are not correctly defined.

After that failed compilation, I ran the foamInstallationTest utility, and there are critical variables that are incorrectly defined, here is the output
Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/ahmed/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/ahmed/OpenFOAM/ahmed-1.6.x yes no
$WM_THIRD_PARTY_DIR /home/ahmed/OpenFOAM/ThirdParty-1.6.x yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/ahmed/OpenFOAM/OpenFOAM-1.6.x yes yes yes

$FOAM_APPBIN ...6.x/applications/bin/linux64GccDPOpt no yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.6.x/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...6.x/applications/bin/linux64GccDPOpt no no
$WM_DIR .../ahmed/OpenFOAM/OpenFOAM-1.6.x/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...M/OpenFOAM-1.6.x/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.6.x/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...FOAM/ahmed-1.6.x/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Right now, I am a bit confused, these variables are assigned during the compilation based on the bashrc definitions and the settings.sh and no intervention from my side, what might have caused this to happen to me.
truly, I will be glad to receive your reply

Good luck to all, and thanks again
Ahmed is offline   Reply With Quote

Old   January 3, 2010, 11:50
Default
  #22
Member
 
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17
mwild is on a distinguished road
The only thing in your listing that is strange is FOAM_APPBIN. What does it point to? But anyways, I would be very surprised if that was the reason...

To me it seems as if wmake wasn't able to correctly read/preprocess Make/{options,files}. What does $FOAM_SRC/Pstream/dummy/Make/$WM_OPTIONS contain? Does the file filesMacros exist in there, and what are its contents?

Michael
mwild is offline   Reply With Quote

Old   January 3, 2010, 13:06
Default
  #23
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
I guess you are on the right track, the file filesMacros is an empty document (0 bytes)
Well it is not the only one, the files contained into the directory
$FOAM_SRC/Pstream/dummy/Make/$WM_OPTIONS are
1- dependencies 24B {dependencies up to date }
2- dependencyFiles 16B {DEPENDENCIES = }
3- dontIncludeDeps 0B
4- files 0B
5- filesMacros 0B
6- includeDeps 0B
7- localObjectFiles 17B {LOCAL_OBJECTS = }
8- objectFiles 11B {OBJECTS = }
9- options 0B
10- sourceFiles 10B {SOURCE = }
where the contents of the None Zero files is written between the curly braces


and here we have the env variables:-

ahmed@linux-z5ms:~> echo $FOAM_APPBIN
/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt

ahmed@linux-z5ms:~> echo $FOAM_SITE_APPBIN
/home/ahmed/OpenFOAM/site/1.6.x/bin/linux64GccDPOpt

ahmed@linux-z5ms:~> echo $FOAM_USER_APPBIN
/home/ahmed/OpenFOAM/ahmed-1.6.x/applications/bin/linux64GccDPOpt

ahmed@linux-z5ms:~> echo $WM_DIR
/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/wmake

ahmed@linux-z5ms:~> echo $FOAM_SRC
/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/src

ahmed@linux-z5ms:~> echo $FOAM_SRC/Pstram/dummy/Make/$WM_OPTIONS
/home/ahmed/OpenFOAM/OpenFOAM-1.6.x/src/Pstram/dummy/Make/linux64GccDPOpt
Ahmed is offline   Reply With Quote

Old   January 3, 2010, 19:50
Default
  #24
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Hi, Mattijs, even I revise the tecioOptions file as
HTML Code:
    TECIO_FLAGS = -DMAKEARCHIVE -DLINUX DLINUXI64 -DUSEENUM -DTHREED -U_WIN32
TECIO_INC =
TECIO_LIBS =
The /Make/linuxIA64GccDPOpt/options file don't change and keep as
HTML Code:
# 1 "options"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "options"
# 1 "tecioOptions" 1
 
    TECIO_FLAGS = -DMAKEARCHIVE -DLINUX -DUSEENUM -DTHREED -U_WIN32
# 15 "tecioOptions"
TECIO_INC =
TECIO_LIBS =
# 2 "options" 2
EXE_INC = $(TECIO_FLAGS) $(TECIO_INC)
 
LIB_LIBS = $(TECIO_LIBS)
But it is OK, I can use the OF-1.6, because I still keep this version. Thank you very much.

Chiven



Quote:
Originally Posted by mattijs View Post
Hi Chiven,

you can try moving the linuxIA64 clause to be the first one in the tecioOptions file.

The tecioOptions file gets included into the Make/options file. The result of this gets written to the Make/linuxIA64XXX/options file. Use this to see which options are being used.
chiven is offline   Reply With Quote

Old   January 29, 2010, 14:54
Default
  #25
New Member
 
Join Date: Nov 2009
Posts: 15
Rep Power: 16
pizzaice is on a distinguished road
Hi Everyone,

not sure whether this is related to the previous problems as I am very new to linux and compiling. I followed albertos manual to install OF1.6 on opensuse 11.2 but i get an error when compiling from git.

unfortunately i cannot comprehend where exactly the problem is located. could someone help me out?

here is the last bit of the log:
Code:
             -lspecie -lmeshTools -lOpenFOAM -lfiniteVolume -lOpenFOAM -liberty -ldl   -lm -o /home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/IFCLookUpTableGen
make[2]: Leaving directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/IFCLookUpTableGen'
make[2]: Entering directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
Making dependency list for source file mixtureAdiabaticFlameT.C
make[2]: Leaving directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[2]: Entering directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
SOURCE=mixtureAdiabaticFlameT.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/phi/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude   -fPIC Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o -L/home/phi/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt \
             -lspecie -lOpenFOAM -liberty -ldl   -lm -o /home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT
make[2]: Leaving directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: Leaving directory `/home/phi/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: Target `application' not remade because of errors.

cheers,

chris
pizzaice is offline   Reply With Quote

Old   February 9, 2010, 04:37
Default
  #26
Member
 
David
Join Date: Dec 2009
Location: Spain
Posts: 62
Rep Power: 16
David_010 is on a distinguished road
Hi Ahmed

I have the same error than you when I try to compile

wmake libso finiteVolume

after add a new boundary condition patch. Have you solved this probelm?

Tankyou very much

David
David_010 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
Latest git 1.6.x : cellDistFuncs.H podallaire OpenFOAM Bugs 4 December 11, 2009 08:03
Latest git 1.6.x: Crash when using inletOutlet for variable alpha1 in interFoam carsten OpenFOAM Bugs 6 September 23, 2009 09:46
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 18:38.