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

No errors in wmake compilation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2010, 06:43
Default No errors in wmake compilation
  #1
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
AlmostSurelyRob will become famous soon enough
Hello,

I was wondering if you could give me a hand on the configuration of my compilation script. I am using OpenFOAM 1.7.1 and interFoam solver. More precisely I am trying to make some changes to interFoam.

So I create a user projects directory as suggested in documentation, copy interFoam source files there and I use the supported Allwmake script to compile.

Everything seems to work and I get my executable in $FOAM_USER_APPBIN.

What I am worried is that errors are not displayed in a way to which I am accustomed. If I just type some meaningless line (random letters) and run wmake it will just state that there is an error but it will not give the precise information on file and line.

Code:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/transportModels     -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/incompressible/lnInclude     -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/transportModels/interfaceProperties/lnInclude     -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/turbulenceModels/incompressible/turbulenceModel     -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/c111269/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude   -fPIC Make/linux64GccDPOpt/cyclicInterFoam.o -L/home/c111269/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt \
             -linterfaceProperties     -lincompressibleTransportModels     -lincompressibleTurbulenceModel     -lincompressibleRASModels     -lincompressibleLESModels     -lfiniteVolume -lOpenFOAM -liberty -ldl   -lm -o /home/c111269/OpenFOAM/c111269-1.7.1/applications/bin/linux64GccDPOpt/cyclicInterFoam
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../lib64/crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [/home/c111269/OpenFOAM/c111269-1.7.1/applications/bin/linux64GccDPOpt/cyclicInterFoam] Error 1
My g++ version is
Code:
$g++ --version
g++ (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Is there any way to tell wmake to report where the errors appear?
AlmostSurelyRob is offline   Reply With Quote

Old   December 4, 2010, 09:29
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Robert,

I was only able to reproduce the error you got by changing the name of the main function. Other than that, I still got proper error messages indicating the line where I did my evil deed

So, try adding some crazy line before the main function line, or add inside the main function and you should get a proper error report!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 7, 2010, 03:36
Default
  #3
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
AlmostSurelyRob will become famous soon enough
You are absolutely right and my problem seems to have had a completely imaginary nature. Sorry for bothering you and many thanks for the reply. I guess I was trying to overcomplicate the simple. I adapted VIM to work as my IDE for OpenFOAM but I still haven't sorted out all the features of the set-up.
AlmostSurelyRob 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 13:28
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 03:05.