You need to install the gmp library (http://gmplib.org/). -- Rick Altherr [EMAIL PROTECTED]
"He said he hadn't had a byte in three days. I had a short, so I split it with him."
-- Slashdot signature On Oct 11, 2007, at 1:05 AM, leehj wrote:
Added more complete error from config.log in Build (objdir) folder configure:2341:17: error: gmp.h: No such file or directory configure: In function 'main': configure:2345: error: 'choke' undeclared (first use in this function)configure:2345: error: (Each undeclared identifier is reported only onceconfigure:2345: error: for each function it appears in.) configure:2345: error: expected ';' before 'me' configure: failed program was: #line 2340 "configure" #include "confdefs.h" #include "gmp.h" int main() {#if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR< 1) choke me #endif Thanks -Jason Hi, I have actually have the same error of :- configure:2341:17: error: gmp.h: No such file or directorywhen I tried compiling gcc-4.2.1 with a separate BUILD folder apart from itssource file folder. I did ../configure --prefix=/local/gcc/gcc-4.2.1/but when I do a make bootstrap, the above error is displayed in config.log.And i just coudl not proceed. Please advise what I could do. Thanks. Rgrds, Jason Eric Weddington wrote:-----Original Message----- From: Rich Teer [mailto:[EMAIL PROTECTED] Sent: Friday, August 31, 2007 5:00 PM To: Eric Weddington Cc: [email protected] Subject: RE: [avr-libc-dev] Probs building avr-gcc On Wed, 29 Aug 2007, Eric Weddington wrote:Wow! You're one of the few pioneers to build and use theAVR toolchain onSolaris!Cool! :-)Considering that binutils 2.18 just came out *yesterday*,and the otherdistro maintainers (myself and Joerg Wunsch) haven't had achance to try itout yet, you would be going into new territory. A slightlysafer bet is touse binutils 2.17 with gcc 4.2.1. That combination has hada bit moretraffic.binutils 2.18 compiled and installed without fuss, so I'm pretty surethat's not the problem.The most common build error is configuring gcc in its ownsource directory.But you're following the directions in the avr-libc usermanual, so I assumethat you have avoided doing this? Was your configuration successful?Yes, and I think so.Can you attach the output from configure and from make sowe can have morecontext?Here it is; I'm installing into /usr/local, so I don't set $PREFIX. NOte that I use gmake instead of make. Take a deep breath 'cause there's lots of it! :-) [EMAIL PROTECTED] pwd /home/rich/tools/gcc-4.2.1 [EMAIL PROTECTED] mkdir obj-avr [EMAIL PROTECTED] cd obj-avr [EMAIL PROTECTED] ../configure --target=avr --enable-languages=c --disable-nls --disable-libssp --with-dwarf2 creating cache ./config.cache checking host system type... i386-pc-solaris2.11 checking target system type... avr-unknown-none checking build system type... i386-pc-solaris2.11 checking for a BSD compatible install... /usr/bin/ginstall -c checking whether ln works... yes checking whether ln -s works... yes checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for gnatbind... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16 checking for correct version of gmp.h... noGCC now depends on the GMP and MPFR packages. <http://gmplib.org/> <http://www.mpfr.org/>Building and installation of these libraries is pretty easy. MPFR dependson GMP, so build GMP first: ./configure --disabled-shared 2>&1 | tee gmp-configure.log make 2>&1 | tee gmp-make.log make check 2>&1 | tee gmp-make-check.log make install 2>&1 | tee gmp-make-install.log Then MPFR: ./configure --with-gmp=/usr/local --disable-shared 2>&1 | tee mpfr-configure.log make 2>&1 | tee mpfr-make.log make check 2>&1 | tee mpfr-make-check.log make install 2>&1 | tee mpfr-make-install.log Then you have to tell GCC where these libraries reside, during the configure process: ../gcc-$version/configure \ --prefix=$installdir \ --target=$target \ --enable-languages=c,c++,objc \ --with-dwarf2 \ --enable-win32-registry=WinAVR-$release \ --disable-nls \ --with-gmp=/usr/local \ --with-mpfr=/usr/local \ --enable-doc \ --disable-shared \ 2>&1 | tee $package-configure.log(Ignore the win32/WinAVR flag. And don't build the objc front-end withoutthe patch I have.) See if this gets you any farther. HTH, Eric Weddington _______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev-- View this message in context: http://www.nabble.com/Probs-building-avr-gcc-tf4350769.html#a13151217 Sent from the AVR - Libc - Dev mailing list archive at Nabble.com. _______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
