From owner-freebsd-ia64@FreeBSD.ORG Wed Nov 10 13:32:35 2010 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E01E11065696 for ; Wed, 10 Nov 2010 13:32:35 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 9DB2A8FC1E for ; Wed, 10 Nov 2010 13:32:35 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1PGAmw-0002Aa-BT for freebsd-ia64@freebsd.org; Wed, 10 Nov 2010 13:32:34 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1PGAmw-0001uR-88 for freebsd-ia64@freebsd.org; Wed, 10 Nov 2010 13:32:34 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id oAADWXpP075245 for ; Wed, 10 Nov 2010 13:32:33 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id oAADWXWo075244 for freebsd-ia64@freebsd.org; Wed, 10 Nov 2010 13:32:33 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 10 Nov 2010 13:32:33 +0000 From: Anton Shterenlikht To: freebsd-ia64@freebsd.org Message-ID: <20101110133233.GA74882@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: freebsd-ia64@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: static linking error: ELF binary type "0" not known. Exec format error. Binary file not executable. X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2010 13:32:36 -0000 On ia64 r212643 I'm trying to link some fortran code against some fortran libraries. Running the resulting executable gives the above error: ia64% gfortran45 -c slatec-mach-check.f90 ia64% gfortran45 -static slatec-mach-check.o -lslatec ia64% file a.out a.out: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically linked, not stripped ia64% ./a.out > /dev/null ELF binary type "0" not known. ./a.out: Exec format error. Binary file not executable. ia64% On amd64 r214121 this works fine: amd64% gfortran45 -c slatec-mach-check.f90 amd64% gfortran45 -static slatec-mach-check.o -lslatec amd64% file a.out a.out: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 9.0 (900023), not stripped amd64% ./a.out > /dev/null amd64% Can't check on sparc64 because gcc45 doesn't build there right now. What could be the problem? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423