From owner-freebsd-current@FreeBSD.ORG Fri Feb 22 12:04:14 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 659BC5BA; Fri, 22 Feb 2013 12:04:14 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-la0-x236.google.com (la-in-x0236.1e100.net [IPv6:2a00:1450:4010:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 9E3A0A3A; Fri, 22 Feb 2013 12:04:13 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id gw10so538901lab.27 for ; Fri, 22 Feb 2013 04:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=yhGva/hFqkdtgSdJ6nWgcmjrRiB8pQUBg0CJtM86M6s=; b=gEJWfqkUYJs0T6iT5Xmg5MWzsR4Qas223IRiOpUmeDaZW9iC7Nft5S9ltRW+FdtSOZ 5B51l3oi9OPNQUSlVuImEXGyXRc/cZeqYs6RAD01n8rB1t0yy8s52fEptBsGyfjEG1zt QSE6gh+LqTuJjs5nu9KSxMu+4mhACCI+4Dl9b16fB3Ecj+lIQv9UdSohLRXF+ERGnGfE BSOQKGDM2sUnbuB255rRJkfRKc7Hb9KRdnMyVASMB5vxCfUmKVQwqxtdimWg9Q5kBQw4 vNB8pV0iZftX8f1Ft0cjysysfWBFqh7+yf46pZyGQ03z8afsAHjCf2ooUsDfqfejUw/N R+aQ== MIME-Version: 1.0 X-Received: by 10.152.113.164 with SMTP id iz4mr1509215lab.50.1361534651289; Fri, 22 Feb 2013 04:04:11 -0800 (PST) Received: by 10.112.80.133 with HTTP; Fri, 22 Feb 2013 04:04:11 -0800 (PST) In-Reply-To: <108875110.20130222104603@serebryakov.spb.ru> References: <108875110.20130222104603@serebryakov.spb.ru> Date: Fri, 22 Feb 2013 13:04:11 +0100 Message-ID: Subject: Re: r245741 (clang as cc) can not build binaries for GEODE processor From: Daniel Nebdal To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2013 12:04:14 -0000 On Fri, Feb 22, 2013 at 7:46 AM, Lev Serebryakov wrote: > Hello, freebsd-current. > > I have -CURRENT i386 installation which runs r245741 now. > Default compiler is clang: > >> cc --version > FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 > Target: i386-unknown-freebsd10.0 > Thread model: posix > > This system is used to build NanoBSD images (and ports for these > images) for my home router, which has AMD Geode CPU: > > Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class CPU) > > Build system has only one setting in /etc/src.conf and > /etc/make.conf: > > MALLOC_PRODUCTION=yes > > NanoBSD image build includes many options, and "CPUTYPE=geode" is > among them. > > Today I've rebuilt all ports (including samba36) and image (from > r247117). And new samba port (samba36-3.6.12) failed to start on > target system (with Geode CPU). It gets "SIGILL" (!!!). > > I was able to get core file by running "testparam" in NFS-mounted > R/W file system, but after that GDB (on build system, as NanoBSD > image doesn't contain one) says, that it could not access memory at > failure address to show disassembly: > >> gdb /usr/local/bin/testparm ~/testparm.core > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)... > Core was generated by `testparm'. > Program terminated with signal 4, Illegal instruction. > #0 0x010351d6 in ?? () > (gdb) x/i $pc > 0x10351d6: Cannot access memory at address 0x10351d6 > (gdb) bt > #0 0x010351d6 in ?? () > #1 0x00000000 in ?? () > (gdb) > > -- > // Black Lion AKA Lev Serebryakov > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" I'm not familiar with NanoBSD, but does it do the package builds for you - or do you do those by hand? If it's the latter, I don't quite understand how the compiler is supposed to know the target CPUTYPE? -- Daniel Nebdal