From owner-freebsd-alpha@FreeBSD.ORG Sat Aug 9 13:51:48 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39FBB37B401 for ; Sat, 9 Aug 2003 13:51:48 -0700 (PDT) Received: from graf.pompo.net (lns-th2-2f-81-56-186-139.adsl.proxad.net [81.56.186.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7616843FE0 for ; Sat, 9 Aug 2003 13:51:47 -0700 (PDT) (envelope-from thierry@pompo.net) Received: by graf.pompo.net (Postfix, from userid 1001) id 77E4C750E; Sat, 9 Aug 2003 22:51:49 +0200 (CEST) Date: Sat, 9 Aug 2003 22:51:49 +0200 From: Thierry Thomas To: Liste FreeBSD-alpha Message-ID: <20030809205149.GA14947@graf.pompo.net> Mail-Followup-To: Liste FreeBSD-alpha Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-STABLE i386 Organization: Kabbale Eros X-PGP: 0xC71405A2 Subject: Problem with ld-elf.so: program does not launch. X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 20:51:48 -0000 Hello, I have ported metis-edf (cad/metis-edf) to FreeBSD, it runs fine on i386, but it aborts on alpha. On Bento, the log is at . More precisely, it builds, then there is a `make test', it eats all the CPU and never launches. Thanks to Oliver, I have got an access to an Alpha machine, built with -g, and ran it through gdb: if you set a breakpoint to main(), it never reaches it, and you have to ^C. A backtrace gives something like (gdb) bt #0 0x160039af4 in __remqu () from /usr/libexec/ld-elf.so.1 #1 0x160035f68 in r_debug_state () from /usr/libexec/ld-elf.so.1 #2 0x160035f68 in r_debug_state () from /usr/libexec/ld-elf.so.1 Error accessing memory address 0xfffffffffffffffd: Bad address. On i386, I have had to patch to link against /usr/lib/crt1.o, and that did the trick; on Alpha, there is a linker-warning: /usr/libexec/elf/ld: warning: type and size of dynamic symbol `_fini' are not defined If compiled with '-W -Wall', it reports a lot warnings, and I have fixed some of them, but it does not change anything. If linked with '--verbose', nothing special. I have no experience on this architecture, so any help or ideas are welcome! Best regards, -- Th. Thomas.