From owner-freebsd-arm@FreeBSD.ORG Tue Mar 17 07:10:00 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CA5937D1 for ; Tue, 17 Mar 2015 07:10:00 +0000 (UTC) Received: from mail-yh0-x232.google.com (mail-yh0-x232.google.com [IPv6:2607:f8b0:4002:c01::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7D152BA2 for ; Tue, 17 Mar 2015 07:10:00 +0000 (UTC) Received: by yhct68 with SMTP id t68so378601yhc.2 for ; Tue, 17 Mar 2015 00:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=DrdDQFQjLBieXsyz4o0vzIVOwGmnz7Rdu1lnRJG1zBk=; b=m/MKfMs86eTsclJtry96L1/mdLI09WRvE3uZJFpF82cKMJStk9BIimMCGgQ6+5MNiR 6z13nXTYz96H84wNVdkS5AUqOzMvn8bo4DSnj9/FVCxyi1u9g9F2hCuhBQPSra1PHp70 SqhEbmJTEnre2s2oXn/lUOTBb8o0Y0VPJIGgKqwqnjnk2C/jl2UMYI2pt/O/Id/XlKUs AbNnPYIgcxei1scvvzW7F9OgoQpT919jxeG286J2XtrLGdSMnao8GwXZoJHQAZmXh3Pu lFy7MwpXmZeDXqFsvIvqlPBBwPFe9I2NBaJdWxEb5Cj3NFhyEm2t3WGPcd7/skvnGl7Y MvQQ== MIME-Version: 1.0 X-Received: by 10.170.48.18 with SMTP id 18mr74923371ykq.112.1426576199583; Tue, 17 Mar 2015 00:09:59 -0700 (PDT) Received: by 10.170.182.81 with HTTP; Tue, 17 Mar 2015 00:09:59 -0700 (PDT) In-Reply-To: References: <5505CD50.2050503@ambient-md.com> Date: Tue, 17 Mar 2015 00:09:59 -0700 Message-ID: Subject: Re: Building Cross Compiler and u-boot From: Russell Haley To: Tim Kientzle , freebsd-arm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2015 07:10:00 -0000 I'll answer my own jails question: 15.3. Creating and Controlling Jails https://www.freebsd.org/doc/handbook/jails-build.html Cheers, Russ On Mon, Mar 16, 2015 at 11:54 PM, Russell Haley wrot= e: > Okay, I have to figure out how to get current running in a jail on > PC-BSD. I'm going to hit their forum. > > Tim, as per "You=E2=80=99re trying to use the cross-compiler for the nati= ve > bits." Okay, this is my latest: > > root@Jailbird:/usr/uboot# gmake SED=3Dgsed HOSTCC=3Dcc > CROSS_COMPILE=3Darm-none-eabi- ccwmx53js_config > Configuring a wireless module > Configuring for ccwmx53 board... > root@Jailbird:/usr/uboot# gmake SED=3Dgsed HOSTCC=3Dcc CROSS_COMPILE=3Dar= m-none-eabi- > Generating include/autoconf.mk > Shared object "libmpc.so.3" not found, required by "cc1" > Generating include/autoconf.mk.dep > Shared object "libmpc.so.3" not found, required by "cc1" > for dir in tools examples/standalone examples/api ; do gmake -C $dir > _depend ; done > gmake[1]: Entering directory '/usr/uboot/tools' > gmake[1]: Nothing to be done for '_depend'. > gmake[1]: Leaving directory '/usr/uboot/tools' > gmake[1]: Entering directory '/usr/uboot/examples/standalone' > gmake[1]: Nothing to be done for '_depend'. > gmake[1]: Leaving directory '/usr/uboot/examples/standalone' > gmake[1]: Entering directory '/usr/uboot/examples/api' > gmake[1]: Nothing to be done for '_depend'. > gmake[1]: Leaving directory '/usr/uboot/examples/api' > gmake -C tools all > gmake[1]: Entering directory '/usr/uboot/tools' > cc -g -Wall -idirafter /usr/uboot/include -idirafter > /usr/uboot/include2 -idirafter /usr/uboot/include -I /usr/uboot/libfdt > -I /usr/uboot/tools -DTEXT_BASE=3D0x77800000 -DUSE_HOSTCC > -D__KERNEL_STRICT_NAMES -O -c -o fdt.o > cc: error: no input files > Makefile:231: recipe for target 'fdt.o' failed > gmake[1]: *** [fdt.o] Error 1 > gmake[1]: Leaving directory '/usr/uboot/tools' > Makefile:402: recipe for target 'tools' failed > gmake: *** [tools] Error 2 > root@Jailbird:/usr/uboot# ls tools/ > .depend easylogo image.o logos > mkimage.o scripts > Makefile env img2brec.sh md5.o > mpc86x_clk.c setlocalversion > bddb envcrc.c img2srec.c mingw_support.c > ncb.c sha1.o > bin2header.c fdt_host.h imls mingw_support.h > netconsole ubsha1.c > bmp_logo.c gdb inca-swap-bytes.c mkimage.c > os_support.c updater > crc32.o gen_eth_addr.c jtagconsole mkimage.h > os_support.h > root@Jailbird:/usr/uboot# > > I know I've already said it but: oh, my poor little brain! > > Thanks guys! > Russ > > On Sun, Mar 15, 2015 at 10:32 PM, Russell Haley wr= ote: >> Ah, I didn't realize my jail had to be of the same branch as I was >> trying to cross compile. Thank you. >> >> Russ >> >> On Sun, Mar 15, 2015 at 9:25 PM, Tim Kientzle wrote: >>> >>>> On Mar 15, 2015, at 8:17 PM, Russell Haley wrot= e: >>>> >>>> Tim, >>>> >>>> root@Jailbird:/usr/src# cat /usr/src/contrib/elftoolchain/nm/nm.c | >>>> grep "libdwarf.h" >>>> #include >>>> >>>> root@Jailbird:/usr/src# ll /usr/include/libdwarf.h >>>> -r--r--r-- 1 root wheel 7385 Nov 11 13:03 /usr/include/libdwarf.h >>>> >>>> root@Jailbird:/usr/src# ll /usr/src/contrib/elftoolchain/libdwarf/libd= warf.h >>>> -rw-r--r-- 1 root wheel 33712 Mar 5 23:00 >>>> /usr/src/contrib/elftoolchain/libdwarf/libdwarf.h >>>> >>>> >>>> root@Jailbird:/usr/src# cat /usr/include/libdwarf.h | grep Dwarf_Block >>> >>> Apparently, you have a broken /usr/include/libdwarf.h. The >>> file on your system is from Nov 11, but a quick dig through SVN >>> logs shows that the Dwarf_Block declaration has been in >>> FreeBSD-CURRENT since at least Jan 2014. >>> >>> I suggest you try updating your build system from source. >>> >>> Cheers, >>> >>> Tim >>> >>> >>> >>>> root@Jailbird:/usr/src# cat >>>> /usr/src/contrib/elftoolchain/libdwarf/libdwarf.h | grep Dwarf_Block >>>> } Dwarf_Block; >>>> int dwarf_formblock(Dwarf_Attribute, Dwarf_Block **, Dwarf= _Error *); >>>> root@Jailbird:/usr/src# >>>> >>>> >>>> >>>> >>>> Thanks, >>>> >>>> Russ >>>> >>>> On Sun, Mar 15, 2015 at 7:52 PM, Tim Kientzle wrote= : >>>>> >>>>>> On Mar 15, 2015, at 12:25 PM, Russell Haley w= rote: >>>>>> >>>>>> Peter, >>>>>> >>>>>> Sorry, I was attacked by a wild kid who managed to send my unfinishe= d email... >>>>>> >>>>>> Here is the error I get when I run your command from head: >>>>>> make XDEV=3Darm XDEV_ARCH=3Darmv6 WITH_GCC=3D1 WITH_GCC_BOOTSTRAP=3D= 1 >>>>>> WITHOUT_CLANG=3D1 WITHOUT_CLANG_BOOTSTRAP=3D1 WITHOUT_CLANG_IS_CC=3D= 1 xdev >>>>>> xdev-links >>>>>> >>>>>> cc -O2 -pipe -I/usr/src/usr.bin/nm/../../contrib/elftoolchain/libe= lftc >>>>>> -I/usr/src/usr.bin/nm/../../contrib/elftoolchain/common -std=3Dgnu99 >>>>>> -fstack-protector -Qunused-arguments -c >>>>>> /usr/src/usr.bin/nm/../../contrib/elftoolchain/nm/nm.c >>>>>> /usr/src/usr.bin/nm/../../contrib/elftoolchain/nm/nm.c:920:34: error= : >>>>>> unknown type name 'Dwarf_Block' >>>>>> get_block_value(Dwarf_Debug dbg, Dwarf_Block *block) >>>>>> ^ >>>>> >>>>> On my system: >>>>> /usr/src/contrib/elftoolchain/nm/nm.c includes libdwarf.h. >>>>> >>>>> /usr/include/libdwarf.h defines Dwarf_Block >>>>> >>>>> /usr/include/libdwarf.h is installed from /usr/src/contrib/elftoolch= ain/libdwarf/libdwarf.h >>>>> >>>>> Can you check those on your system? >>>>> >>>>> Tim >>>>> >>>>> >>>