From owner-freebsd-arm@FreeBSD.ORG Tue Mar 5 23:05:37 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 78A4AEAF for ; Tue, 5 Mar 2013 23:05:37 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from cpsmtpb-ews04.kpnxchange.com (cpsmtpb-ews04.kpnxchange.com [213.75.39.7]) by mx1.freebsd.org (Postfix) with ESMTP id CCB6124E for ; Tue, 5 Mar 2013 23:05:36 +0000 (UTC) Received: from cpsps-ews05.kpnxchange.com ([10.94.84.172]) by cpsmtpb-ews04.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 6 Mar 2013 00:03:03 +0100 Received: from CPSMTPM-TLF101.kpnxchange.com ([195.121.3.4]) by cpsps-ews05.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 6 Mar 2013 00:03:03 +0100 Received: from sjakie.klop.ws ([212.182.167.131]) by CPSMTPM-TLF101.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 6 Mar 2013 00:04:28 +0100 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id A6ACC61A5 for ; Wed, 6 Mar 2013 00:04:23 +0100 (CET) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Subject: Re: ARM EABI test image References: <20130302172556.5b59e122@bender> Date: Wed, 06 Mar 2013 00:04:22 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.14 (FreeBSD) X-OriginalArrivalTime: 05 Mar 2013 23:04:28.0750 (UTC) FILETIME=[CA0796E0:01CE19F5] X-RcptDomain: 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: Tue, 05 Mar 2013 23:05:37 -0000 On Sat, 02 Mar 2013 18:21:28 +0100, Ronald Klop wrote: > On Sat, 02 Mar 2013 05:25:56 +0100, Andrew Turner > wrote: > >> Hello, >> >> I have built an updated ARM EABI test image for Raspberry Pi [1]. >> >> The only known issue is c++ exception handling is broken when >> using in a dynamically linked executable. Static executables should >> work with c++ exceptions. >> >> To test it you will have to extract it using unxz and dd it to an sd >> card, for example, with a USB to SD adapter on /dev/da0: >> $ unxz bsd-pi-eabi-r247609.img.xz >> $ dd if=bsd-pi-eabi-r247609.img of=/dev/da0 >> >> If you don't have a Raspberry Pi but would like to try it on your board >> you can add -DWITH_ARM_EABI to the make commands you use to build and >> install world and the kernel. > > Is this also interesing on the older SHEEVAPLUG? > If yes, I can test it somewhere next week. > > Ronald. > >> >> Can people try this as I would like to know if anything else is broken >> as this will become the default ABI for 10. >> >> Andrew >> >> [1] http://people.freebsd.org/~andrew/rpi/bsd-pi-eabi-r247609.img.xz I get this error. I cross-compile 10-CURRENT/arm for SHEEVAPLUG on 9-STABLE/amd64. 10-CURRENT is just svn up'ed. I don't have special vars set for clang, so it compiles with gcc AFAIK. No src.conf. Using these env vars for buildworld: export TARGET_ARCH=arm export KERNCONF=SHEEVAPLUG export WITH_NAND=yes export WITH_ARM_EABI=yes ... cc -O -pipe -DLOADER_DISK_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NANDFS_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_NFS_SUPPORT -I/usr/src/sys/boot/arm/uboot/../../fdt -I/usr/obj/arm.arm/usr/src/sys/boot/arm/uboot/../../fdt -DLOADER_FDT_SUPPORT -DBOOT_FORTH -I/usr/src/sys/boot/arm/uboot/../../ficl -I/usr/src/sys/boot/arm/uboot/../../ficl/arm -DLOADER_DISK_SUPPORT -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -I/usr/src/sys/boot/arm/uboot/../../common -I. -ffreestanding -I/usr/src/sys/boot/arm/uboot/../../uboot/common -I/usr/src/sys/boot/arm/uboot/../../uboot/lib -I/usr/obj/arm.arm/usr/src/sys/boot/arm/uboot/../../uboot/lib -I/usr/src/sys/boot/arm/uboot/../../../../lib/libstand/ -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -nostdlib -static -T ldscript.generated -T /usr/src/sys/boot/arm/uboot/ldscript.arm -o ubldr start.o conf.o vers.o boot.o commands.o console.o devopen.o interp.o interp_backslash.o interp_parse.o ls.o misc.o module.o panic.o load_elf32.o reloc_elf32.o dev_net.o disk.o part.o crc32.o interp_forth.o main.o metadata.o /usr/obj/arm.arm/usr/src/sys/boot/arm/uboot/../../ficl/libficl.a /usr/obj/arm.arm/usr/src/sys/boot/arm/uboot/../../uboot/lib/libuboot.a /usr/obj/arm.arm/usr/src/sys/boot/arm/uboot/../../fdt/libfdt.a -lstand /usr/obj/arm.arm/usr/src/tmp/usr/lib/libstand.a(udivmoddi4.o): In function `__udivmoddi4': udivmoddi4.c:(.text+0x154): undefined reference to `__ctzsi2' udivmoddi4.c:(.text+0x16c): undefined reference to `__clzsi2' udivmoddi4.c:(.text+0x178): undefined reference to `__clzsi2' udivmoddi4.c:(.text+0x214): undefined reference to `__ctzsi2' udivmoddi4.c:(.text+0x240): undefined reference to `__clzsi2' udivmoddi4.c:(.text+0x24c): undefined reference to `__clzsi2' udivmoddi4.c:(.text+0x2c0): undefined reference to `__clzsi2' udivmoddi4.c:(.text+0x2cc): undefined reference to `__clzsi2' /usr/obj/arm.arm/usr/src/tmp/usr/lib/libstand.a(udivsi3.o): In function `__aeabi_uidiv': udivsi3.c:(.text+0x1c): undefined reference to `__clzsi2' /usr/obj/arm.arm/usr/src/tmp/usr/lib/libstand.a(udivsi3.o):udivsi3.c:(.text+0x28): more undefined references to `__clzsi2' follow *** [ubldr] Error code 1 1 error *** [all] Error code 2 1 error *** [all] Error code 2 1 error *** [all] Error code 2 1 error *** [sys.all__D] Error code 2 1 error *** [everything] Error code 2 1 error *** [buildworld] Error code 2 1 error If you need more info please tell. Ronald.