From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24370 invoked by alias); 7 Jan 2008 00:08:09 -0000 Received: (qmail 24360 invoked by uid 22791); 7 Jan 2008 00:08:08 -0000 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Jan 2008 00:07:37 +0000 Received: by fg-out-1718.google.com with SMTP id d23so3958932fga.28 for ; Sun, 06 Jan 2008 16:07:34 -0800 (PST) Received: by 10.86.87.5 with SMTP id k5mr19504326fgb.51.1199664454712; Sun, 06 Jan 2008 16:07:34 -0800 (PST) Received: from e177102136.adsl.alicedsl.de ( [85.177.102.136]) by mx.google.com with ESMTPS id e9sm11578907muf.0.2008.01.06.16.07.32 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 06 Jan 2008 16:07:33 -0800 (PST) From: Daniel Franke To: fortran@gcc.gnu.org Subject: x86_64, libgfortran: unrecognized file format (was: for Daniel) Date: Mon, 07 Jan 2008 20:57:00 -0000 User-Agent: KMail/1.9.7 Cc: Granville Sewell , gcc-help@gcc.gnu.org References: <200801062338.m06NcjJ3003948@banach.math.utep.edu> In-Reply-To: <200801062338.m06NcjJ3003948@banach.math.utep.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801070107.25162.franke.daniel@gmail.com> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00056.txt.bz2 On Monday 07 January 2008 00:38:45 Granville Sewell wrote: > Without the -static switch (using gfortran), I get: > > /usr/local/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../. >./lib64/libgfortran.so: file not recognized: File format not recognized > collect2: ld returned 1 exit status You build gcc yourself? How did you configure it (gfortran -v)? Something seems to be horribly messed up on your side?! I'm CC-ing gcc-help, maybe someone there has encountered this before. > There is a libgfortran.a file in the same lib directory, by the way. I > don't understand the difference between the *.a and *.so libraries. *.so - shared objects, used for dynamic linking, loaded at runtime *.a - archives, linked into the binary statically