From owner-freebsd-arm@FreeBSD.ORG Mon Jun 24 15:01:33 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D209582E for ; Mon, 24 Jun 2013 15:01:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) by mx1.freebsd.org (Postfix) with ESMTP id A471E1C82 for ; Mon, 24 Jun 2013 15:01:33 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id a13so24708320iee.20 for ; Mon, 24 Jun 2013 08:01:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=gjQi7Kknx4qQd498WoiQaVwkMIsGwtFdKpcJjcg54zY=; b=CxEfIxAYSeCgd2r0OJMg1zF8wE3C3qcWTaHnGQFchQUSPIXRIcjBiQf1ZaEs/1ItBt Nb+WlG4TJfxAjDUkfJUfOy8Vpqi35EO8gbR4FnomC1AydhiHkgeeSRQ80nEJAOpF5Dhh EdNyloxUh6gIfkdAR7SKyhpIhd4t452a0+wS1QZu1KCYC14s2AnPfCb6bLia+G3nXQEZ mO275rdWio+/8LoawpbC2fzvcBHwvX6mzuGg3lkShjj1WucQXbqyU6IcIzvAADm0oOel 1TtrPSld9yMei1hXIU2wDWkaf6aRrZl3b2mWOiVgyaBNGiKK6KiHRr6zvkTPFPfYjplp 5doA== X-Received: by 10.50.132.98 with SMTP id ot2mr5876133igb.38.1372086093337; Mon, 24 Jun 2013 08:01:33 -0700 (PDT) Received: from [10.0.0.53] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id ff19sm432653igb.0.2013.06.24.08.01.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Jun 2013 08:01:32 -0700 (PDT) Sender: Warner Losh Subject: Re: Raspberry pi not ready to self-host yet? Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <800732D1-B06A-40AE-AE69-F6170662B2AA@turbofuzz.com> Date: Mon, 24 Jun 2013 09:01:28 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <3B1B1A39-13AF-4718-A9D6-757D6FEFC27F@bsdimp.com> References: <800732D1-B06A-40AE-AE69-F6170662B2AA@turbofuzz.com> To: "Jordan K. Hubbard" X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQlpUs+VOxwheR8jhBzzEW9UlGIn4rKjeNmHLxaeOXTsgA9qYDF58zVwXcs7VLzaDIib8UZU Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jun 2013 15:01:33 -0000 On Jun 24, 2013, at 8:55 AM, Jordan K. Hubbard wrote: > Hi folks, >=20 > I followed the instructions in the repo at = https://github.com/daveish/freebsd-arm-tools.git and was able to create = a bootable SD image for my 512Mb PI in no time with very little hassle - = nice job there! >=20 > What I can't seem to manage, however, is to self-host after that. I = see someone has already filed = http://www.freebsd.org/cgi/query-pr.cgi?pr=3D178495 covering the failure = during buildworld, You see the same compilation error in = basic_string.tcc in various ports, like apr: >=20 > 0. Program arguments: /usr/bin/c++ -cc1 -triple = armv6-unknown-freebsd10.0 -S -disable-free -main-file-name cxx_db.cpp = -mrelocation-model pic -pic-level 2 -mdisable-fp-elim = -mconstructor-aliases -target-abi apcs-gnu -target-cpu arm1136jf-s = -msoft-float -mfloat-abi soft -target-feature +soft-float = -target-feature +soft-float-abi -target-feature -neon -coverage-file = /tmp/cxx_db-5qpGsC.s -resource-dir /usr/bin/../lib/clang/3.3 -D = _THREAD_SAFE -D PIC -I . -I ./../dist/.. -O2 -fdeprecated-macro = -fno-dwarf-directory-asm -fdebug-compilation-dir = /a/ports/databases/db42/work/db-4.2.52/build_unix -ferror-limit 19 = -fmessage-length 144 -mstackrealign -fno-signed-char = -fobjc-runtime=3Dgnustep -fobjc-default-synthesize-properties = -fcxx-exceptions -fexceptions -fsjlj-exceptions = -fdiagnostics-show-option -fcolor-diagnostics -backend-option = -vectorize-loops -o /tmp/cxx_db-5qpGsC.s -x c++ = ./../dist/../cxx/cxx_db.cpp=20 > 1. /usr/include/c++/4.2/bits/basic_string.tcc:978:43: current = parser token ';' > 2. /usr/include/c++/4.2/bits/basic_string.tcc:48:1 = : parsing = namespace 'std' > c++: error: unable to execute command: Segmentation fault (core = dumped) > c++: error: clang frontend command failed due to signal (use -v to see = invocation) do you have enough swap? Clang is a memory pig dog... > In the kernel, there seems to be something weird with the atomics = because linking always fails: >=20 > kern_event.o: In function `filt_timerattach': > /a/src/sys/kern/kern_event.c:555: undefined reference to = `__atomic_load_4' > /a/src/sys/kern/kern_event.c:559: undefined reference to = `__atomic_compare_exchange_4' > kern_event.o: In function `filt_timerdetach': > /a/src/sys/kern/kern_event.c:584: undefined reference to = `__atomic_fetch_sub_4' Now that's odd. I'll look into that... > I do appreciate that it's a heck of a lot easier to cross-compile for = these things, and great work getting things to this point, but = self-hosting is still one of the magical milestones you always hope an = embedded target will get to someday, assuming it actually has enough = grunt to do so (and I think the PI does). :) I've self-hosted FreeBSD on an Atmel AT91SAM9620 recently (arm v5 = board)... Seems odd that cross compile and native built give different = results. Will look into it. Btw, whats uname -p say for you? Warner=