CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   latest OpenFOAM-1.6.x from git failed to compile (https://www.cfd-online.com/Forums/openfoam-bugs/71346-latest-openfoam-1-6-x-git-failed-compile.html)

Ahmed January 3, 2010 11:39

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

mwild January 3, 2010 11:50

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

Ahmed January 3, 2010 13:06

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

chiven January 3, 2010 19:50

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 (Post 241316)
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.


pizzaice January 29, 2010 14:54

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

David_010 February 9, 2010 04:37

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


All times are GMT -4. The time now is 10:16.