|
[Sponsors] |
March 28, 2010, 17:28 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings ahmed,
My guess is that happened to you, after managing to get makeGcc to work properly OK, by my estimate, the problem you're having now is due to 3 missing files in mpfr that comes with the Third Party General package. See this post #13, where I've already made available a patch for creating the missing 3 files. Instructions on how to apply it are on that same post After that, try again the makeGcc command. Best regards, Bruno PS: you could have continued to use your previous thread |
|
March 29, 2010, 05:17 |
this is not the problem
|
#3 |
Senior Member
|
first thank you for your interest
i have already downloaded the whole compressed file and extract it it works good until the installation of mpfr-4.2.1. but when i try to install gcc-4.3.3 it ask me to specify the place pf gmo.h and mpfr.h so i type: $ /home/ahmed/OpenFOAM/ThirdPArty-1.6/gcc-4.3.3/configure --with-gmp-include=/home/ahmed --with-mpfr-include=/home/ahmed/OpenFOAM/ThirdParty-1.6/mpfr-4.2.1 it say correct version of mpg ------ yes correct version of mpfr-------no i tried /usr/local directory i tried /home/ahmed directory i tried --with-mpfr i tried --with mpfr-build |
|
March 29, 2010, 18:17 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Ahmed,
OK, you can make your life easier if you run: Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc cd $WM_THIRD_PARTY_DIR ./makeGcc gcc-4.3.3 2>&1 | tee make.log Now, IF you still want to do everything by hand, then to simplify your efforts, type the following two lines: Code:
ln -s $WM_THIRD_PARTY_DIR/gmp-4.2.4 $WM_THIRD_PARTY_DIR/gcc-4.3.3/gmp ln -s $WM_THIRD_PARTY_DIR/mpfr-2.4.1 $WM_THIRD_PARTY_DIR/gcc-4.3.3/mpfr Code:
cd $WM_THIRD_PARTY_DIR/gcc-4.3.3 mkdir build cd build ../configure --enable-languages=c,c++ --with-pkgversion='OpenFOAM' --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-system-zlib --prefix=$WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/$WM_ARCH Best regards, Bruno |
|
March 30, 2010, 11:31 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Ahmed,
If it wrote that in only a few seconds, that's because you've unpacked the binary packages of the ThirdParty (namely ThirdParty-1.6.linux*Gcc.gtgz). To force the rebuilding of gmp+mpfr+gcc, you'll have to remove the contents inside the "platforms" folders that exist inside each folder. You can do that by running: Code:
rm -rfi $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH rm -rfi $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH rm -rfi $WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/$WM_ARCH$WM_COMPILER_ARCH Best regards, Bruno |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 14:43 |
install gcc | Ahmed Khattab | OpenFOAM | 1 | March 16, 2010 18:15 |
Question on specify gcc compiler for OpenFOAM 15 | peterlai | OpenFOAM Installation | 2 | October 2, 2008 07:20 |
Gcc conflict install | inddzen | OpenFOAM Installation | 2 | December 11, 2007 16:00 |
Gerris software installation | mer | Main CFD Forum | 2 | November 12, 2005 08:50 |