LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-18-2017, 07:47 AM   #16
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled

[QUOTE
Unpack mpfr-3.1.3.tar.xz, gmp-6.1.0.tar.xz, mpc-1.0.3.tar.gz into gcc-5.3.0/.
Rename to have gcc-5.3.0/{ mpfr/, gmp/, mpc/ }.[/QUOTE]

What is this rename ? I dont understand it
 
Old 04-18-2017, 07:56 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #16 : Renaming, use the 'mv' command → →

cd gcc-5.3/
tar xvf mpfr-3.1.3.tar.xz
mv mpfr-3.1.3/ mpfr
tar xvf gmp-6.1.0.tar.xz
mv gmp-6.1.0/ gmp
tar xvf mpc-1.0.3.tar.gz
mv mpc-1.0.3/ mpc


-
 
Old 04-18-2017, 07:59 AM   #18
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #16 : Renaming, use the 'mv' command → →

cd gcc-5.3/
tar xvf mpfr-3.1.3.tar.xz
mv mpfr-3.1.3/ mpfr
tar xvf gmp-6.1.0.tar.xz
mv gmp-6.1.0/ gmp
tar xvf mpc-1.0.3.tar.gz
mv mpc-1.0.3/ mpc


-


Don't I need to install them separately?

And all these files must be with in gcc-5.3.0 ?
 
Old 04-18-2017, 08:16 AM   #19
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
All files are unzipped and they are separately installed into gcc-5.3.0. They are renamed as mentioned earlier.

The following commands are used

mkdir build-gcc
cd build-gcc
../gcc-5.3.0/configure --prefix=/opt/gcc-5.3.0 --enable-languages=c,c++ --with-gmp=/opt/gmp-6.1.0 --with-mpfr=/opt/mpfr-3.1.5 --with-mpc=/opt/mpc-1.0.3 --disable-multilib

i get the following error

make[3]: *** No rule to make target `../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a', needed by `build/genmddeps'. Stop.
make[3]: Leaving directory `/opt/src/gcc-5.3.0/build-gcc/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/opt/src/gcc-5.3.0/build-gcc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/src/gcc-5.3.0/build-gcc'
make: *** [all] Error 2
 
Old 04-18-2017, 08:16 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #18.
Quote:
Don't I need to install them separately?
No. Would require a system path.
And later versions of gmp, mpfr will conflict with the system versions.

The required objects from gmp, mpfr, mpc are built into gcc-5.3 .
Which means : when installed, no external gmp, mpfr, mpc is required.

-
 
Old 04-18-2017, 08:27 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #19.

Wrong configure line. Do as post #2, please. Else you will fail.

Quote:
--with-gmp=/opt/gmp-6.1.0 --with-mpfr=/opt/mpfr-3.1.5 --with-mpc=/opt/mpc-1.0.3
Do not do this.


? Are you sure all the prerequisites are installed ?
# yum install bison findutils binutils-devel coreutils bzip2-devel zlib-devel
.... and a proper gcc/g++-compiler, 4.7 or later.

-

Last edited by knudfl; 04-18-2017 at 08:37 AM.
 
Old 04-18-2017, 08:48 AM   #22
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
i first extracted gcc 5.3.0

then the other three files in the same folder and renamed.

Now the folder gcc 5.3.0 have following files

[root@mqml gcc-5.3.0]# ls
ABOUT-NLS fixincludes libgo ltversion.m4
boehm-gc gcc libgomp MAINTAINERS
buil-gcc gmp libiberty maintainer-scripts
ChangeLog gmp-6.1.0.tar.bz2 libitm Makefile.def
ChangeLog.jit gnattools libjava Makefile.in
ChangeLog.tree-ssa gotools libmpx Makefile.tpl
compile include libobjc MD5SUMS
config INSTALL liboffloadmic missing
config.guess install-sh libquadmath mkdep
config-ml.in intl libsanitizer mkinstalldirs
config.rpath LAST_UPDATED libssp move-if-change
config.sub libada libstdc++-v3 mpc
configure libatomic libtool-ldflags mpc-1.0.3.tar.gz
configure.ac libbacktrace libtool.m4 mpfr
contrib libcc1 libvtv mpfr-3.1.5.tar.bz2
COPYING libcilkrts ltgcc.m4 NEWS
COPYING3 libcpp ltmain.sh README
COPYING3.LIB libdecnumber lt~obsolete.m4 symlink-tree
COPYING.LIB libffi lto-plugin ylwrap
COPYING.RUNTIME libgcc ltoptions.m4 zlib
depcomp libgfortran ltsugar.m4

[root@mqml gcc-5.3.0]#

#mkdir buil-gcc
#cd buil-gcc
# ../gcc-5.3.0/configure --prefix=/usr/local/gcc53 --program-suffix=53 --enable-languages=c,c++ --with-system-zlib --disable-multilib


I get the following error


bash: ../gcc-5.3.0/configure: No such file or directory
 
Old 04-18-2017, 09:39 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #22

build-gcc/ : Must be outside the gcc-5.3/ folder. See post #2.
No work can be done inside gcc-5.3/.

If you are using e.g. /opt/, it is /opt/{ gcc-5.3/, build-gcc/ }


-
 
Old 04-18-2017, 11:40 AM   #24
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
I have finished with configure, make and make install.

What is the next procedure? IS it all?
 
Old 04-18-2017, 11:50 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #24.

After make 'install' : ( Already answered. Post #15 )
cd /usr/bin/
ln -s /usr/local/gcc53/bin/gcc53
ln -s /usr/local/gcc53/bin/g++53

Using gcc53, examples :
1. export CC=gcc53 CXX=g++53 && ./configure && make
2. (cmake) : CC=gcc53 CXX=g++53 cmake ../


-
 
Old 04-18-2017, 11:52 AM   #26
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
root@mqml built-gcc]# cd /usr/bin/

[root@mqml bin]# ln -s /usr/local/gcc53/bin/gcc53

ln: creating symbolic link `./gcc53': File exists

[root@mqml bin]# ln -s /usr/local/gcc53/bin/g++53

ln: creating symbolic link `./g++53': File exists

[root@mqml bin]#


What's next?
 
Old 04-18-2017, 12:09 PM   #27
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #24.

Using gcc53, examples :
1. export CC=gcc53 CXX=g++53 && ./configure && make
2. (cmake) : CC=gcc53 CXX=g++53 cmake ../


-
[B]What is this?
[B]
 
Old 04-18-2017, 12:29 PM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #27.

Using : Examples how to use gcc53 and g++53 when compiling an application.

I assume there was a purpose to build a new compiler.
 
Old 04-18-2017, 12:42 PM   #29
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #27.

Using : Examples how to use gcc53 and g++53 when compiling an application.

I assume there was a purpose to build a new compiler.
I want to install GROMACS 2016.1.

I use the following commands

tar xfz gromacs-5.1.tar.gz
cd gromacs-5.1
mkdir build
cd build
cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON

For the command i get an error.
Gromacs 2016.1 requires compiler C++ 11 or higher version.



make
make check
sudo make install
source /usr/local/gromacs/bin/GMXRC
 
Old 04-18-2017, 03:09 PM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #29.

The cmake configuration command for gromacs-2016.x is : ( see post #25 )
Code:
CC=gcc53 CXX=g++53 cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON

-

Last edited by knudfl; 04-18-2017 at 03:11 PM.
 
  


Reply

Tags
gcc-4.9, gcc-5.3, gromacs



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
[SOLVED] SEGMENTATION FAULT using gcc 4.4.4 -O2 , works with gcc 4.1.0 -O2 or gcc 4.4.4 -O1 amir1981 Programming 36 07-26-2010 06:07 PM
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 02:52 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration