Date: Fri, 22 Feb 2013 13:04:11 +0100 From: Daniel Nebdal <dnebdal@gmail.com> To: lev@freebsd.org Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: r245741 (clang as cc) can not build binaries for GEODE processor Message-ID: <CA%2Bt49PKwRUA97q9UV5Y3X7BUVKOWOJ9FhiGq2YgqnfV687ur_g@mail.gmail.com> In-Reply-To: <108875110.20130222104603@serebryakov.spb.ru> References: <108875110.20130222104603@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 22, 2013 at 7:46 AM, Lev Serebryakov <lev@freebsd.org> 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 <lev@FreeBSD.org> > > _______________________________________________ > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bt49PKwRUA97q9UV5Y3X7BUVKOWOJ9FhiGq2YgqnfV687ur_g>