Linux - Kernel This forum is for all discussion relating to the Linux kernel.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
04-18-2017, 07:47 AM
#16
Member
Registered: Apr 2017
Posts: 36
Original Poster
Rep:
[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
04-18-2017, 07:56 AM
#17
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
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
-
04-18-2017, 07:59 AM
#18
Member
Registered: Apr 2017
Posts: 36
Original Poster
Rep:
Quote:
Originally Posted by
knudfl
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 ?
04-18-2017, 08:16 AM
#19
Member
Registered: Apr 2017
Posts: 36
Original Poster
Rep:
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
04-18-2017, 08:16 AM
#20
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
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.
-
04-18-2017, 08:27 AM
#21
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
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 .
04-18-2017, 08:48 AM
#22
Member
Registered: Apr 2017
Posts: 36
Original Poster
Rep:
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
04-18-2017, 09:39 AM
#23
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
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/ }
-
04-18-2017, 11:40 AM
#24
Member
Registered: Apr 2017
Posts: 36
Original Poster
Rep:
I have finished with configure, make and make install.
What is the next procedure? IS it all?
04-18-2017, 11:50 AM
#25
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
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 ../
-
04-18-2017, 11:52 AM
#26
Member
Registered: Apr 2017
Posts: 36
Original Poster
Rep:
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?
04-18-2017, 12:09 PM
#27
Member
Registered: Apr 2017
Posts: 36
Original Poster
Rep:
Quote:
Originally Posted by
knudfl
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]
04-18-2017, 12:29 PM
#28
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
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.
04-18-2017, 12:42 PM
#29
Member
Registered: Apr 2017
Posts: 36
Original Poster
Rep:
Quote:
Originally Posted by
knudfl
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
04-18-2017, 03:09 PM
#30
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
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 .
All times are GMT -5. The time now is 12:15 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News