|
[Sponsors] |
July 21, 2012, 19:21 |
|
#21 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
OK, I had built mine with Gcc 4.6, so I apparently also had even more issues than your build has.
I've switched to Gcc 4.4.6 as well on my Ubuntu 11.10. For that, I've modified OpenFOAM's "etc/bash" to have these settings: Code:
export WM_CC='gcc-4.4' export WM_CXX='g++-4.4' Code:
LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed
__________________
|
|
July 21, 2012, 19:39 |
|
#22 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
If I hadn't inspected the "make.log" sooner, it would have been a wasted hour... here's the necessary patch, which without the settings from bashrc won't propagate to wmake (swap "linux64Gcc" to "linuxGcc" for 32bit):
Code:
diff --git a/wmake/rules/linux64Gcc/c b/wmake/rules/linux64Gcc/c index f4114be..33e81aa 100644 --- a/wmake/rules/linux64Gcc/c +++ b/wmake/rules/linux64Gcc/c @@ -2,7 +2,7 @@ cWARN = -Wall -cc = gcc -m64 +cc = $(WM_CC) -m64 include $(RULES)/c$(WM_COMPILE_OPTION) diff --git a/wmake/rules/linux64Gcc/c++ b/wmake/rules/linux64Gcc/c++ index b68f2f7..6fa973e 100644 --- a/wmake/rules/linux64Gcc/c++ +++ b/wmake/rules/linux64Gcc/c++ @@ -2,7 +2,7 @@ c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -CC = g++ -m64 +CC = $(WM_CXX) -m64 include $(RULES)/c++$(WM_COMPILE_OPTION) @@ -17,5 +17,5 @@ cpptoo = $(Ctoo) LINK_LIBS = $(c++DBUG) -LINKLIBSO = $(CC) $(c++FLAGS) -shared -LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed +LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed +LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed Code:
wclean all rm -r lib/linux64GccDPOpt rm -r applications/bin/linux64GccDPOpt Code:
export WM_NCOMPPROCS=4
__________________
|
|
July 21, 2012, 20:32 |
|
#23 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Yuri,
OK, I've finished confirming this. With the info from the last 2 posts, you should succeed in building everything. Keep in mind:
Bruno
__________________
|
|
July 21, 2012, 20:38 |
|
#24 |
New Member
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14 |
That is a great news, Bruno! I'm trying to compiling the OF also, utilizing yours implementations, I rope that this time it will work.
I will post the results here soon. |
|
July 22, 2012, 14:17 |
|
#25 |
New Member
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14 |
Hi Bruno,
I really want to thank you so much for your support! The OF17x compilation worked. In addition to your corrections, I changed the variable WM_ARCH_OPTION, which was set by default 64, but my Ubuntu is 32 bits. Could be this one of the reasons for the previous failures? After this, I finally compiled successfully the fireFoam.1.7.x_0.4! So, the big deal was really the OF17x compilation. Thanks again for your help! |
|
December 18, 2012, 11:55 |
Hii
|
#26 |
New Member
Mak
Join Date: Jul 2010
Location: United States
Posts: 10
Rep Power: 16 |
Hi,
I am getting error while compiling the OF 1.7.x. I have followed till the previous step but unable to understand comment #22 . Which files i have to swap as i am using ubuntu 32bit If possible can you change in the git repository It will be of great help ... Thank You Regards, Trinath Rao |
|
December 22, 2012, 19:06 |
|
#27 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Trinath Rao,
Quote:
If I'm not mistaken, this is what it should be like for "linuxGcc": Quote:
Bruno
__________________
|
|||
December 24, 2012, 05:21 |
Compiled !!
|
#28 |
New Member
Mak
Join Date: Jul 2010
Location: United States
Posts: 10
Rep Power: 16 |
Hi Bruno,
Thank you for replying my query. I build openfoam 1.7.x successfully. and started working perfectly. Merry Christmas and Very Happy New Year 2013 !!! Thanks a lot...!! Regards, Trinath Rao |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fireFoam and basicThermo | prapanj | OpenFOAM Running, Solving & CFD | 26 | November 8, 2016 08:47 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 06:40 |
DNS, FireFoam, adaptive mesh | fgal | OpenFOAM Running, Solving & CFD | 3 | July 5, 2010 14:09 |
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 | sponiar | OpenFOAM Running, Solving & CFD | 3 | February 26, 2008 07:31 |
Discussing UDF and C++ Compiling | Big Stone | FLUENT | 9 | April 12, 2004 16:07 |