From owner-freebsd-arm@FreeBSD.ORG Sun Jan 4 22:43:54 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 67856C5D for ; Sun, 4 Jan 2015 22:43:54 +0000 (UTC) Received: from bouvier.getmail.no (bouvier.getmail.no [84.210.184.8]) by mx1.freebsd.org (Postfix) with ESMTP id 08CCB2F55 for ; Sun, 4 Jan 2015 22:43:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by bouvier.getmail.no (Postfix) with ESMTP id 14BA844C58 for ; Sun, 4 Jan 2015 23:43:38 +0100 (CET) Received: from bouvier.getmail.no ([127.0.0.1]) by localhost (bouvier.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 5LAiWAmA87Bw for ; Sun, 4 Jan 2015 23:43:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by bouvier.getmail.no (Postfix) with ESMTP id C6DED44AC6 for ; Sun, 4 Jan 2015 23:43:33 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.8.4 bouvier.getmail.no C6DED44AC6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=getmail.no; s=8A9C8B4C-D727-11E2-8095-B6466E6B3FA2; t=1420411413; bh=j0n+h0A0zxH8/TzaPkH08aDdD2Wo0vsNS5juIRWjDkw=; h=Date:From:To:Subject:Message-Id:Mime-Version:Content-Type: Content-Transfer-Encoding; b=0NkSHF1Ia+ti/ABEBDPfig+nHdEKw6zS0hvKUG9UptaKFTrJdPNRTgAxMxsF1zZRL QYmJAcMHI+OypFDa0xncycolroYbZPnsHv32ir1Z1TSzifmAFeK/X+0bnYCu1N1jkV zZANhA+swoELQOINoq1KbkpPOisKTbKRjX3mub7Y= X-Virus-Scanned: amavisd-new at bouvier.get.c.bitbit.net Received: from bouvier.getmail.no ([127.0.0.1]) by localhost (bouvier.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id uj2obGete8oL for ; Sun, 4 Jan 2015 23:43:33 +0100 (CET) Received: from kg-core1.kg4.no (cm-84.215.180.206.getinternet.no [84.215.180.206]) by bouvier.getmail.no (Postfix) with ESMTPSA id 9A77C44C85 for ; Sun, 4 Jan 2015 23:43:33 +0100 (CET) Date: Sun, 4 Jan 2015 23:43:31 +0100 From: Torfinn Ingolfsen To: freebsd-arm@FreeBSD.org Subject: Chromebook image - install fails Message-Id: <20150104234331.e0f2cdff0837b76199547b48@getmail.no> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd9.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Sun, 04 Jan 2015 22:43:54 -0000 Continuation of this[1] thread. Thanks to Ian Lepore, I now have built world an kernel for my Chromebook 2, using r276666 of -current. Now I'm trying to install it, by following instructions here[2]. and I'm still using Ian's script[3]. When I try to install world, it fails: tingo@kg-core1$ ./mk DESTDIR=/mnt installworld distribution + kernel=CB2 + MAX_JOBS=4 + [ -r config/CB2 ] + ln -fs ../../../../config/CB2 src/sys/arm/conf/CB2 + pwd + srcconf=/home/tingo/work/chromebook/cb2/config/src.conf + pwd + makeconf=/home/tingo/work/chromebook/cb2/config/make.conf + pwd + objdir=/home/tingo/work/chromebook/cb2/obj + pwd + tobjdir=/home/tingo/work/chromebook/cb2/obj/arm.armv6//home/tingo/work/chromebook/cb2/src + kobjdir=/home/tingo/work/chromebook/cb2/obj/arm.armv6//home/tingo/work/chromebook/cb2/src/sys/CB2 + export MAKEOBJDIRPREFIX=/home/tingo/work/chromebook/cb2/obj + cd ./src + time nice -15 sudo make -j 4 TARGET_ARCH=armv6 DESTDIR= __MAKE_CONF=/home/tingo/work/chromebook/cb2/config/make.conf SRCCONF=/home/tingo/work/chromebook/cb2/config/src.conf KERNCONF=CB2 DESTDIR=/mnt installworld distribution Password: cd /zs/tingo/work/chromebook/cb2/src/etc; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE= GROFF_BIN_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make METALOG= distribution mkdir -p /tmp/install.QTdUhm6l progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown date echo egrep find grep id install ln lockf make mkdir mtree mv pwd_mkdb rm sed services_mkdb sh strip sysctl test true uname wc zic tzsetup makewhatis; do if progpath=`which $prog`; then echo $progpath; else echo "Required tool $prog not found in PATH." >&2; exit 1; fi; done); libs=$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort -u | while read line; do $line; if [ "$2 $3" != "not found" ]; then echo $2; else echo "Required library $1 not found." >&2; exit 1; fi; done); cp $libs $progs /tmp/install.QTdUhm6l cd /zs/tingo/work/chromebook/cb2/src/etc; install -o root -g wheel -m 644 auto_master crontab devd.conf devfs.conf ddb.conf dhclient.conf disktab fbtab ftpusers gettytab group hosts hosts.allow hosts.equiv inetd.conf libalias.conf libmap.conf login.access login.conf mac.conf motd netconfig network.subr networks newsyslog.conf nsswitch.conf phones profile protocols rc rc.bsdextended rc.firewall rc.initdiskless rc.sendmail rc.shutdown rc.subr remote rpc services shells sysctl.conf syslog.conf termcap.small etc.arm/ttys amd.map apmd.conf snmpd.config freebsd-update.conf /zs/tingo/work/chromebook/cb2/src/etc/../usr.bin/locate/locate/locate.rc hosts.lpd printcap /zs/tingo/work/chromebook/cb2/src/etc/../usr.bin/mail/misc/mail.rc ntp.conf nscd.conf portsnap.conf pf.os csh.cshrc csh.login csh.logout regdomain.xml /mnt/etc; cap_mkdb -l /mnt/etc/login.conf; install -o root -g wheel -m 755 netstart pccard_ether rc.suspend rc.resume /mnt/etc; insta ll -o root -g wheel -m 600 master.passwd nsmb.conf opieaccess /mnt/etc; install: target directory `/mnt/etc' does not exist usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 file2 install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] [-B suffix] [-l linkflags] [-N dbdir] file1 ... fileN directory install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner] [-M log] [-D dest] [-h hash] [-T tags] directory ... *** [distribution] Error code 64 1 error *** [distribution] Error code 2 1 error *** [distribution] Error code 2 cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.QTdUhm6l/locale cd /zs/tingo/work/chromebook/cb2/src; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE= GROFF_BIN_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/games:/tmp/install.QTdUhm6l LD_LIBRARY_PATH=/tmp/install.QTdUhm6l PATH_LOCALE=/tmp/install.QTdUhm6l/locale make -f Makefile.i nc1 __MAKE_SHELL=/tmp/install.QTdUhm6l/sh reinstall; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE= GROFF_BIN_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/games:/tmp/install.QTdUhm6l LD_LIBRARY_PATH=/tmp/install.QTdUhm6l PATH_LOCALE=/tmp/install.QTdUhm6l/local e rm -rf /tmp/install.QTdUhm6l "/zs/tingo/work/chromebook/cb2/src/share/mk/bsd.compiler.mk", line 42: Unable to determine compiler type for cc. Consider setting COMPILER_TYPE. *** [installworld] Error code 1 1 error *** [installworld] Error code 2 2 errors 5.51 real 0.11 user 0.15 sys even if I set compiler type it fails: tingo@kg-core1$ grep COMPILER_TYPE config/make.conf COMPILER_TYPE=clang tingo@kg-core1$ ./mk DESTDIR=/mnt installworld distribution [...] install -l s usr/src/sys /mnt/sys cd /mnt/usr/share/man; for mandir in man*; do install -l s ../$mandir /mnt/usr/share/man/en.ISO8859-1/; install -l s ../$mandir /mnt/usr/share/man/en.UTF-8/; done cd /mnt/usr/share/openssl/man; for mandir in man*; do install -l s ../$mandir /mnt/usr/share/openssl/man/en.ISO8859-1/; done `grep "^[a-zA-Z]" /zs/tingo/work/chromebook/cb2/src/etc/man.alias`; while [ $# -gt 0 ] ; do install -l s "$2" "/mnt/usr/share/man/$1"; install -l s "$2" "/mnt/usr/share/openssl/man/$1"; shift; shift; done -------------------------------------------------------------- >>> Installing everything -------------------------------------------------------------- cd /zs/tingo/work/chromebook/cb2/src; make -f Makefile.inc1 install ===> share/info (install) install -o root -g wheel -m 644 dir-tmpl /mnt/usr/share/info/dir ===> lib (install) ===> lib/csu/arm (install) install -o root -g wheel -m 444 crt1.o crti.o crtn.o Scrt1.o gcrt1.o /mnt/usr/lib install: crt1.o: No such file or directory *** [realinstall] Error code 71 1 error *** [_sub.realinstall] Error code 2 1 error *** [_sub.realinstall] Error code 2 1 error *** [reinstall] Error code 2 1 error *** [installworld] Error code 2 1 error *** [installworld] Error code 2 2 errors 4.79 real 0.25 user 0.31 sys I'm afraid I am going to need more hints / help. References: 1) http://lists.freebsd.org/pipermail/freebsd-arm/2015-January/009907.html 2) https://wiki.freebsd.org/FreeBSD/arm/Chromebook 3) http://lists.freebsd.org/pipermail/freebsd-arm/2014-January/007249.html -- Torfinn Ingolfsen