From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 10 18:50:04 2008 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D90B5106564A for ; Thu, 10 Apr 2008 18:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C6C488FC15 for ; Thu, 10 Apr 2008 18:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3AIo4Kw014619 for ; Thu, 10 Apr 2008 18:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3AIo4It014617; Thu, 10 Apr 2008 18:50:04 GMT (envelope-from gnats) Date: Thu, 10 Apr 2008 18:50:04 GMT Message-Id: <200804101850.m3AIo4It014617@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: Fernan Aguero X-Mailman-Approved-At: Thu, 10 Apr 2008 19:11:42 +0000 Cc: Subject: Re: amd64/122624: unusable mininal installation of FreeBSD-7.0 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fernan Aguero List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2008 18:50:04 -0000 The following reply was made to PR amd64/122624; it has been noted by GNATS. From: Fernan Aguero To: John Baldwin Cc: freebsd-amd64@freebsd.org, Fernan Aguero , freebsd-gnats-submit@freebsd.org Subject: Re: amd64/122624: unusable mininal installation of FreeBSD-7.0 Date: Thu, 10 Apr 2008 15:44:11 -0300 > On Thursday 10 April 2008 09:36:16 am Fernan Aguero wrote: > > > > >Number: 122624 > > >Category: amd64 > > >Synopsis: unusable mininal installation of FreeBSD-7.0 > > >Confidential: no > > >Severity: critical > > >Priority: high > > >Responsible: freebsd-amd64 > > >State: open > > >Quarter: > > >Keywords: > > >Date-Required: > > >Class: change-request > > >Submitter-Id: current-users > > >Arrival-Date: Thu Apr 10 13:40:00 UTC 2008 > > >Closed-Date: > > >Last-Modified: > > >Originator: Fernan Aguero > > >Release: 7.0-RELEASE > > >Organization: > > UNSAM > > >Environment: > > >Description: > > I've installed a fresh copy of FreeBSD-7.0-RELEASE (amd64) using the Disc1 > ISO. > > > > I did an expert installation, and selected 'Minimal' in the selection of > packages/distributions, because I already have a setup in the lab with a > build host having a CVS mirror of FreeBSD (a setup pretty similar to that > described in development(7)). > > > > Because of the minimal setup, /usr/src is empty. > > > > This in turn produces the following errors upong boot: > > ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/amd64/reloc.c:341 > > Abort trap (core dumped) > > > > This has the consequence that many executable files are missing. The most > important of which is 'make' which prevents us from doing anything > (installing ports, etc): > > /usr/bin/make: Exec format error. Binary file not executable > > > > This is solved if I edit /etc/fstab and mount a checkout of FreeBSD-7.0 > sources in /usr/src. But this is not a good solution. A minimal installation > from CD should produce a working installation! > ld-elf.so.1 doesn't use anything from /usr/src. The specific assert that is > failing is this: > > assert(ELF_R_TYPE(rela->r_info) == R_X86_64_JMP_SLOT); > > in reloc_plt() in src/libexec/rtld-elf/amd64/reloc.c. I wrote down that error on paper and typed it in the email ... but I'm sure it said /usr/src ... that's why I decided to set my /etc/fstab to mount freebsd-7.0 sources from another FreeBSD box and symlink /usr/src. > I wonder if you somehow have 32-bit binaries instead of 64-bit? > > -- > John Baldwin I wonder the same thing because after doing that, even though make was now OK (I was able to cd /usr/ports/sysutils/screen && make install), other commands failed (vi, Exec format error. Binary file not executable). This is a Dell PowerEdge SC1435 with two Opteron 2210 processors and 8 Gb RAM. I tried running brandelf on some executables, but brandelf itself would not run! We reinstalled the box from scratch, reformatting the disk and now choosing a Standard install (Developer: full sources, docs, no X and no games) to no avail. Fernan