LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-06-2012, 03:37 PM   #1
prasanmouli
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
Problems installing mpc-0.8.1 as a part of AVR-GCC installation


I've been installing software packages as a part of developing for the AVR micro-controllers. In the process, I successfully built and installed gmp-4.3.2 and mpfr.2.4.2. While installing mpc-0.8.1, I am encountering problems.
Can someone please explain how to resolve the errors?


This is what it looked like in the terminal:


root@ubuntu:/home/prasan/Downloads/mpc-0.8.1# ./configure --prefix=/home/prasan/mpc --with-gmp=/home/prasan/gmp --with-mpfr=/home/prasan/mpfr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for CC and CFLAGS in gmp.h... yes CC=gcc -std=gnu99 CFLAGS=-O2 -pedantic -m64 -mtune=core2
checking for CC=gcc -std=gnu99 and CFLAGS=-O2 -pedantic -m64 -mtune=core2... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for __gmpz_init in -lgmp... yes
checking for MPFR... yes
checking for recent GMP... yes
checking for recent MPFR... yes
checking for ANSI C header files... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for gettimeofday... yes
checking for localeconv... yes
checking for setlocale... yes
checking for dup... yes
checking for dup2... yes
checking for fileno... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
root@ubuntu:/home/prasan/Downloads/mpc-0.8.1# make
make all-recursive
make[1]: Entering directory `/home/prasan/Downloads/mpc-0.8.1'
Making all in src
make[2]: Entering directory `/home/prasan/Downloads/mpc-0.8.1/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/home/prasan/gmp/include -I/home/prasan/mpfr/include -O2 -pedantic -m64 -mtune=core2 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c -o acos.lo acos.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/home/prasan/gmp/include -I/home/prasan/mpfr/include -O2 -pedantic -m64 -mtune=core2 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c acos.c -fPIC -DPIC -o .libs/acos.o
acos.c: In function ‘mpc_acos’:
acos.c:192:19: error: ‘GMP_RNDA’ undeclared (first use in this function)
acos.c:192:19: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [acos.lo] Error 1
make[2]: Leaving directory `/home/prasan/Downloads/mpc-0.8.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/prasan/Downloads/mpc-0.8.1'
make: *** [all] Error 2
root@ubuntu:/home/prasan/Downloads/mpc-0.8.1# make install
Making install in src
make[1]: Entering directory `/home/prasan/Downloads/mpc-0.8.1/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/home/prasan/gmp/include -I/home/prasan/mpfr/include -O2 -pedantic -m64 -mtune=core2 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c -o acos.lo acos.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/home/prasan/gmp/include -I/home/prasan/mpfr/include -O2 -pedantic -m64 -mtune=core2 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c acos.c -fPIC -DPIC -o .libs/acos.o
acos.c: In function ‘mpc_acos’:
acos.c:192:19: error: ‘GMP_RNDA’ undeclared (first use in this function)
acos.c:192:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [acos.lo] Error 1
make[1]: Leaving directory `/home/prasan/Downloads/mpc-0.8.1/src'
make: *** [install-recursive] Error 1
root@ubuntu:/home/prasan/Downloads/mpc-0.8.1# make check
Making check in src
make[1]: Entering directory `/home/prasan/Downloads/mpc-0.8.1/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/home/prasan/gmp/include -I/home/prasan/mpfr/include -O2 -pedantic -m64 -mtune=core2 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c -o acos.lo acos.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/home/prasan/gmp/include -I/home/prasan/mpfr/include -O2 -pedantic -m64 -mtune=core2 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c acos.c -fPIC -DPIC -o .libs/acos.o
acos.c: In function ‘mpc_acos’:
acos.c:192:19: error: ‘GMP_RNDA’ undeclared (first use in this function)
acos.c:192:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [acos.lo] Error 1
make[1]: Leaving directory `/home/prasan/Downloads/mpc-0.8.1/src'
make: *** [check-recursive] Error 1
 
Old 06-06-2012, 06:17 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You saw this on the MPC mailing list --> http://lists.gforge.inria.fr/piperma...il/000678.html didn't you? I think this is fixed in the latest release of MPC, for sure it is fixed in the MPC development code.
 
1 members found this post helpful.
Old 06-07-2012, 09:43 AM   #3
prasanmouli
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
configuring works fine now. make install throws errors.

Quote:
Originally Posted by weibullguy View Post
You saw this on the MPC mailing list --> http://lists.gforge.inria.fr/piperma...il/000678.html didn't you? I think this is fixed in the latest release of MPC, for sure it is fixed in the MPC development code.
I downloaded the latest version of mpc and used the ./configure, make and make check commands did not throw any errors. When I tried make install, I got this


make[1]: Entering directory `/home/prasan/Downloads/mpc-0.9/src'
make[2]: Entering directory `/home/prasan/Downloads/mpc-0.9/src'
test -z "/home/prasan/mpc/lib" || /bin/mkdir -p "/home/prasan/mpc/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c libmpc.la '/home/prasan/mpc/lib'
libtool: install: /usr/bin/install -c .libs/libmpc.so.2.0.0 /home/prasan/mpc/lib/libmpc.so.2.0.0
libtool: install: (cd /home/prasan/mpc/lib && { ln -s -f libmpc.so.2.0.0 libmpc.so.2 || { rm -f libmpc.so.2 && ln -s libmpc.so.2.0.0 libmpc.so.2; }; })
libtool: install: (cd /home/prasan/mpc/lib && { ln -s -f libmpc.so.2.0.0 libmpc.so || { rm -f libmpc.so && ln -s libmpc.so.2.0.0 libmpc.so; }; })
libtool: install: /usr/bin/install -c .libs/libmpc.lai /home/prasan/mpc/lib/libmpc.la
/usr/bin/install: cannot stat `.libs/libmpc.lai': No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/prasan/Downloads/mpc-0.9/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/prasan/Downloads/mpc-0.9/src'
make: *** [install-recursive] Error 1


I am new to Linux. So, what do make[2], make[1], make mean? I have three files in ./mpc-0.9/src named Makefile, Makefile.am, Makefile.in. Do they relate to that?
Also, I found the functions (if I am right) install-libLTLIBRARIES and install-am in Makefile but not install-recursive. Help please!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error building GMP, MPFR, MPC libs with gcc 4.7.0 in cygwin lb_dbd Linux - Newbie 2 04-11-2012 04:23 PM
[SOLVED] GCC Pass 1 ERROR ( mpc.h: No such file or directory ) dgashu Linux From Scratch 3 09-18-2011 12:54 PM
Undefined reference to main error in winavr gcc plugin in avr studio zack670303 Programming 1 02-26-2009 12:52 PM
gcc for avr jani_fedora Programming 2 03-31-2008 03:12 PM
problems with the ./configure part, installing gcc-3.4.4 hyssing_ Linux - Newbie 2 08-21-2005 04:22 PM

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

All times are GMT -5. The time now is 04:59 PM.

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