From owner-freebsd-arm@FreeBSD.ORG Fri Jan 27 23:29:54 2012 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DE87106566B for ; Fri, 27 Jan 2012 23:29:54 +0000 (UTC) (envelope-from erikses@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id E55498FC0A for ; Fri, 27 Jan 2012 23:29:53 +0000 (UTC) Received: by eekb47 with SMTP id b47so841580eek.13 for ; Fri, 27 Jan 2012 15:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=jGUIjiGb/8EhSWJTtOj1NCZ+l8W64VLcawel8+IbCNM=; b=SWDu5j4HBhqIOiylPquRjkjPrTc6n12D8BecH5I5k8Sf/D4N0IUzMpgLeQ9Et0U3v/ 3T3cc0XqJIIcdQcPXOvr6fhG/pj5qOo69xnheEwo80pm/oOOuhj9BXnBYjEJh8MyuatJ gXIqM6u+5cKVvfyjIhd52cgpNjZBzljAOmV+Y= Received: by 10.14.11.67 with SMTP id 43mr2884319eew.17.1327705621448; Fri, 27 Jan 2012 15:07:01 -0800 (PST) Received: from [192.168.16.2] (r5.toya.net.pl. [85.89.187.38]) by mx.google.com with ESMTPS id e12sm35431392eea.5.2012.01.27.15.06.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jan 2012 15:07:00 -0800 (PST) Message-ID: <4F232E11.9030208@gmail.com> Date: Sat, 28 Jan 2012 00:06:57 +0100 From: "erikses@gmail.com" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0 MIME-Version: 1.0 To: arm@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Can`t build big-endian kernel FreeBSD 9.0 RELEASE X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2012 23:29:54 -0000 Hi, i cant figure out why I cant cross-build *big-endian* kernel. first i make toolchain : $make TARGET=arm TARGET_ARCH=armeb toolchain then when I`m trying to build kernel I see: $make KERNCONF=AT91SAM9260EK TARGET=arm TARGET_ARCH=armeb buildkernel *cc -mlittle-endian *-c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=arm9 -ffreestanding -Wno-error /usr/src/sys/cam/cam_periph.c but when I`m building world using : $make TARGET=arm TARGET_ARCH=armeb buildworld i see: cc -O2 -pipe -I. -DGCCVER=\"4.2\" -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -DCROSS_COMPILE *-DTARGET_ENDIAN_DEFAULT=MASK_BIG_END *-I/usr/obj/arm.armeb/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89 -I/usr/obj/arm.armeb/usr/src/tmp/legacy/usr/include -L/usr/obj/arm.armeb/usr/src/tmp/legacy/usr/lib -o genemit genemit.o rtl.o read-rtl.o ggc-none.o vec.o min-insn-modes.o gensupport.o print-rtl.o errors.o libiberty.a -lm ./genemit /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/arm/arm.md insn-conditions.md > insn-emit.c what am I doing wrong ? target CPU is Atmel ARM AT91SAM9260, I`m using AT91SAM9G20 modified config Stanislaw.