From owner-freebsd-arm@FreeBSD.ORG Fri Apr 18 19:36:35 2014 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A476FB47 for ; Fri, 18 Apr 2014 19:36:35 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 444F2168D for ; Fri, 18 Apr 2014 19:36:35 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id q5so1033816wiv.10 for ; Fri, 18 Apr 2014 12:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PUsxdsz1QU1SelBg6DZQKvIkTxbnqiWllxu5BH8hWrg=; b=q8rpO75wkpupdOCyklPnpXGkYvr0GyZbNf99dbBnbnRPKH9JLXscjZkrdLGq7HetSP wZquSr/My8NAq/Ve5NCltQ01T9j19cIgZKuUnmEHpAuhGww2pVlR3UYh4cSgt+VhvlLz 6OS1lc6q9bQT1xcmNL0UqXH8BLpJV6aFkUnMn1yaI11d/MG4SHMNpO47soUizo1LeS8f gIxqqRMSSDAb3LatnAW/rZSywECyz1jCxk+KFaXWOEiFYgKoP7+X5tlUqVx1gbkKyQM/ GRnbdVh0yFVj8CHlH0OG/AXUZxInL9lFkK5X7Y8I9TBuLJTIj3l+PQ7219KMFoJm4xPN COfw== MIME-Version: 1.0 X-Received: by 10.194.57.38 with SMTP id f6mr522366wjq.59.1397849792588; Fri, 18 Apr 2014 12:36:32 -0700 (PDT) Received: by 10.217.10.195 with HTTP; Fri, 18 Apr 2014 12:36:32 -0700 (PDT) Date: Fri, 18 Apr 2014 15:36:32 -0400 Message-ID: Subject: crotchet-freebsd fails to build u-boot (master) From: Winston Smith To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2014 19:36:35 -0000 Firstly, I'm new here! Im trying to get FreeBSD up and running on the BBB booting from the eMMC. I'm using Patrick Kelsey's BBB-multi-install-config.sh script (https://github.com/pkelsey/crochet-configs/blob/master/BBB-multi-install-config.sh) with crotchet-freebsd building FreeBSD-11-CURRENT and u-boot master. CHK include/config/uboot.release CHK include/generated/version_autogenerated.h CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h HOSTCC tools/dumpimage.o HOSTCC tools/image-fit.o In file included from tools/image-fit.c:1: /usr/home/winston/Work/crochet-freebsd/u-boot-master/tools/../common/image-fit.c:887:3: warning: implicit declaration of function 'sha256_csum_wd' is invalid in C99 [-Wimplicit-function-declaration] sha256_csum_wd((unsigned char *)data, data_len, ^ /usr/home/winston/Work/crochet-freebsd/u-boot-master/tools/../common/image-fit.c:888:35: error: use of undeclared identifier 'CHUNKSZ_SHA256' (unsigned char *)value, CHUNKSZ_SHA256); ^ /usr/home/winston/Work/crochet-freebsd/u-boot-master/tools/../common/image-fit.c:889:16: error: use of undeclared identifier 'SHA256_SUM_LEN' *value_len = SHA256_SUM_LEN; ^ 1 warning and 2 errors generated. gmake[1]: *** [tools/image-fit.o] Error 1 gmake: *** [tools] Error 2 It looks like it's picking up the sha256.h header from /usr/include rather than in u-boot-master/include. I believe I'm using Clang for the u-boot compilation, as I built the xdev tools as follows: make XDEV=arm XDEV_ARCH=armv6 xdev I ran a build with u-boot-master and 10-stable xthe other day and I didn't run into this. I can only assume that the sha256.h is new in 11-current? Any ideas? Thanks! -W