From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30895 invoked by alias); 15 Jun 2006 11:27:49 -0000 Received: (qmail 30886 invoked by uid 22791); 15 Jun 2006 11:27:48 -0000 X-Spam-Check-By: sourceware.org Received: from smtp112.sbc.mail.mud.yahoo.com (HELO smtp112.sbc.mail.mud.yahoo.com) (68.142.198.211) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 15 Jun 2006 11:27:42 +0000 Received: (qmail 80173 invoked from network); 15 Jun 2006 11:27:40 -0000 Received: from unknown (HELO ?68.125.161.25?) (timothyprince@sbcglobal.net@68.125.161.25 with plain) by smtp112.sbc.mail.mud.yahoo.com with SMTP; 15 Jun 2006 11:27:40 -0000 Message-ID: <4491442A.6060407@sbcglobal.net> Date: Thu, 15 Jun 2006 11:27:00 -0000 From: Tim Prince Reply-To: tprince@myrealbox.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: sean yang CC: gcc-help@gcc.gnu.org Subject: Re: gcc4.0.2---gfortran can't be compiled References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg00128.txt.bz2 sean yang wrote: > Is this aproblem for gcc 4.0.2 or gmp4.2.1? > > Here I first list the numerical libraries. > objgcc>ls /usr/local/lib > -rw-r--r-- 1 root root 1180872 Jun 14 22:31 libmpfr.a > -rwxr-xr-x 1 root root 794 Jun 14 22:31 libmpfr.la > -rw-r--r-- 1 root root 503858 Jun 14 21:55 libgmp.a > -rwxr-xr-x 1 root root 783 Jun 14 21:55 libgmp.la > lrwxrwxrwx 1 root root 15 Jun 14 21:55 libgmp.so -> libgmp.so.3.4.1 > lrwxrwxrwx 1 root root 15 Jun 14 21:55 libgmp.so.3 -> libgmp.so.3.4.1 > -rwxr-xr-x 1 root root 241173 Jun 14 21:55 libgmp.so.3.4.1 > > Now, I list what I did for gcc4.0.2, > objgcc> ../gcc-4.0.2/configure --with-gmp=/usr/local > --with-mpfr=/usr/local --enable-languages=c,c++,f95 1>/dev/null > objgcc>make 1>/dev/null > ... > /home/syang/software/objgcc/gcc/f951: symbol lookup error: > /home/syang/software/objgcc/gcc/f951: undefined symbol: > __gmp_get_memory_functions > make[2]: *** [selected_int_kind.lo] Error 1 Your --with-gmp and --with-mpfr options look strange to me. Did you find reliable documentation somewhere showing they could be used this way? For myself, I don't want any confusion about mpfr and gmp versions, so I removed all old versions, both static and dynamic, before installing the current ones. I think gcc-4.0.2 is too old to have been tested with the current gmp. I would infer that, if you want to use these versions, you shouldn't be building fortran. configure --enable-languages='c c++' for example. You should note the gfortran developers have disrecommended 4.0 strongly, current released gcc is 4.1.1, and gfortran-4.2 is more reliable than 4.0, besides giving some advantages for the pain.