From owner-freebsd-arm@FreeBSD.ORG Mon Mar 10 02:29:13 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 077A4906 for ; Mon, 10 Mar 2014 02:29:13 +0000 (UTC) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BEB1C366 for ; Mon, 10 Mar 2014 02:29:12 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n16so6552291oag.27 for ; Sun, 09 Mar 2014 19:29:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=7+mWa1tIlCayUJp3YzuMUb519CaMaZbhCflX4EKcVXo=; b=MMEa+BtQFUJPD2BrqzKGy+Xx4lWsHgOxONh42+QEb3Me42hHj4wsUNcqrSvBl6P8LH AD+4k/laWfvTXhEysWbbTjQIKpIofwWyxjVjIAE+wxPJXkSsTs0kSGCHH2sOWe8pBKGR R4QItsAissxe4fF+R2XgvuvU5Tid888+HtgMcbbwKfw0WEv6fLpJw/98aFLmG0QHYlLY 1oE3I0Jv8d+iJg7iscYlvLWAtErUdAOYXznZLtgK3JxcVQEsjfQOA1VDZbRv1fPn4vhH GHS0m4gO6hlYx9c3u9nRHwIYLImh46IjNSDZTnzIfHsNKndYC9hH3TmOjbXnDL1z9q9k AuKw== X-Gm-Message-State: ALoCoQmDiYsU6Gdj0k/QYgFKf+I5GMSUWKKMWkSO9vpPbI8JiOrUzb0+NARUozHnrJmc7/dcSWNf MIME-Version: 1.0 X-Received: by 10.182.117.195 with SMTP id kg3mr26028409obb.17.1394418546208; Sun, 09 Mar 2014 19:29:06 -0700 (PDT) Received: by 10.182.104.169 with HTTP; Sun, 9 Mar 2014 19:29:06 -0700 (PDT) In-Reply-To: References: <1394383937.1149.440.camel@revolution.hippie.lan> Date: Sun, 9 Mar 2014 20:29:06 -0600 Message-ID: Subject: Re: problem compiling pkgng From: Tom Everett To: Ganbold Tsagaankhuu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-arm@freebsd.org" , Ian Lepore 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: Mon, 10 Mar 2014 02:29:13 -0000 Building 262966 now. On Sun, Mar 9, 2014 at 8:23 PM, Ganbold Tsagaankhuu wrot= e: > > > > On Mon, Mar 10, 2014 at 10:08 AM, Tom Everett wrote: > >> Ok with 262963, I have a repeatable crash on boot. >> >> >> >> U-Boot 2013.10 (Mar 09 2014 - 19:41:42) >> >> CPU: Freescale i.MX6Q rev1.2 at 792 MHz >> Reset cause: POR >> Board: Wandboard >> DRAM: 2 GiB >> MMC: FSL_SDHC: 0, FSL_SDHC: 1 >> *** Warning - bad CRC, using default environment >> >> In: serial >> Out: serial >> Err: serial >> Net: FEC [PRIME] >> Hit any key to stop autoboot: 5 ... 4 ... 3 ... 2 ... 1 ... 0 >> >> mmc0 is current device >> reading boot.scr >> 157 bytes read in 10 ms (14.6 KiB/s) >> Running bootscript from mmc ... >> >> ## Executing script at 12000000 >> reading ubldr >> 253278 bytes read in 28 ms (8.6 MiB/s) >> ## Starting application at 0x88000054 ... >> >> Consoles: U-Boot console >> >> >> Compatible API signature found @8f5756f8 >> >> >> MMC: no card present >> MMC Device 2 not found >> MMC Device 3 not found >> Number of U-Boot devices: 2 >> >> >> >> >> >> FreeBSD/armv6 U-Boot loader, Revision 1.2 >> >> >> (tom@bernice, Sun Mar 9 19:41:36 MDT 2014) >> >> >> DRAM: 2048MB >> >> >> Probing for bootable devices... >> >> >> >> Bootable device: disk >> >> >> Bootable device: net >> >> >> Current device: disk >> >> >> >> |./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.= |./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.Loading >> /boot/defaults/loader.conf >> >> >> >> |./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.= |./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./boot/kernel/kernel >> data=3D0x4dba48+0x2c5b8 >> >> /.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|.= /.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-= .\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.= |./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./.-.\.|./= .-.\.|./.-.\.|./.syms=3D[0x4+0x7e640-.\.|./.-.\.|./.-.\.|./.-.\.|./.+0x4+0x= 4e00f-.\.|./.-.\.|./.-.] >> >> >> >> >> >> Hit [Enter] to boot immediately, or any other key for command prompt. >> >> >> >> Booting [/boot/kernel/kernel] in 9 seconds... >> Booting [/boot/kernel/kernel] in 8 seconds... >> Booting [/boot/kernel/kernel]... >> >> >> >> \.|./.-.\.|./.-.\.|./.-.\.|./.-.\.Loaded DTB from file >> 'wandboard-quad.dtb'. >> >> >> |./.-.\.|./.-.Kernel entry at 0x12000100... >> >> >> >> Kernel args: (null) >> >> >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2014 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> The Regents of the University of California. All rights reserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 11.0-CURRENT #0 r262963: Sun Mar 9 19:35:22 MDT 2014 >> tom@bernice >> :/storage/home/tom/crochet/crochet-freebsd/work/obj/arm.armv6/storage/ho= me/tom/crochet/src/FreeBSDHead/head/sys/IMX6 >> arm >> FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216 >> CPU: Cortex A9-r2 rev 10 (Cortex-A core) >> Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext >> WB disabled EABT branch prediction enabled >> LoUU:2 LoC:1 LoUIS:2 >> Cache level 1: >> 32KB/32B 4-way data cache WB Read-Alloc Write-Alloc >> 32KB/32B 4-way instruction cache Read-Alloc >> real memory =3D 2147483648 (2048 MB) >> avail memory =3D 2093969408 (1996 MB) >> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs >> random device not loaded; using insecure entropy >> random: initialized >> ofwbus0: >> simplebus0: on ofwbus0 >> gic0: mem >> 0xa01000-0xa01fff,0xa00100-0xa001ff on simplebus0 >> gic0: pn 0x390, arch 0x1, rev 0x2, implementer 0x43b sc->nirqs 160 >> l2cache0: mem 0xa02000-0xa02fff irq 124 on >> simplebus0 >> l2cache0: Part number: 0x3, release: 0x7 >> l2cache0: L2 Cache: 1024KB/32B 16 ways >> l2cache0: L2 Cache enabled >> simplebus1: mem 0x2000000-0x20fffff o= n >> simplebus0 >> ccm0: mem 0x20c4000-0x20c7fff irq >> 119,120 on simplebus1 >> imx6_anatop0: mem >> 0x20c8000-0x20c8fff irq 49 on simplebus1 >> imx6_anatop0: voltage set to 1225 >> imx6_anatop0: CPU frequency 984MHz >> imx_gpt0: mem 0x2098000-0x209bfff irq 87 on >> simplebus1 >> Event timer "iMXGPT" frequency 11000000 Hz quality 800 >> Timecounter "iMXGPT" frequency 11000000 Hz quality 1000 >> uart0: mem 0x2020000-0x2023fff irq 58 on simplebus1 >> uart0: console (115200,n,8,1) >> usbphy0: mem 0x20c9000-0x20c9fff irq 44 on >> simplebus1 >> usbphy1: mem 0x20ca000-0x20cafff irq 45 on >> simplebus1 >> simplebus2: mem 0x2100000-0x21fffff o= n >> simplebus0 >> ffec0: mem 0x2188000-0x218bfff i= rq >> 150,151 on simplebus2 >> miibus0: on ffec0 >> atphy0: PHY 1 on miibus0 >> atphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseSX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto >> ffec0: Ethernet address: 00:1f:7b:b4:06:7f >> ehci0: mem 0x2184000-0x21841f= f >> irq 75 on simplebus2 >> ehci0: [GIANT-LOCKED] >> usbus0: EHCI version 1.0 >> usbus0 on ehci0 >> ehci1: mem 0x2184200-0x21843f= f >> irq 72 on simplebus2 >> ehci1: [GIANT-LOCKED] >> usbus1: EHCI version 1.0 >> usbus1 on ehci1 >> sdhci_imx0: mem 0x2190000-0x2193fff irq 54 = on >> simplebus2 >> mmc0: on sdhci_imx0 >> sdhci_imx1: mem 0x2198000-0x219bfff irq 56 = on >> simplebus2 >> mmc1: on sdhci_imx1 >> ocotp0: mem >> 0x21bc000-0x21bffff on simplebus2 >> Timecounters tick every 4.000 msec >> usbus0: 480Mbps High Speed USB v2.0 >> usbus1: 480Mbps High Speed USB v2.0 >> ugen0.1: at usbus0 >> uhub0: on >> usbus0 >> ugen1.1: at usbus1 >> uhub1: on >> usbus1 >> mmc0: No compatible cards found on bus >> mmcsd0: 16GB at mmc1 >> 50.0MHz/4bit/65535-block >> random: unblocking device. >> Release APs >> Root mount waiting for: usbus1 usbus0 >> uhub0: 1 port with 1 removable, self powered >> uhub1: 1 port with 1 removable, self powered >> Spurious interrupt detected [0x000003ff] >> ugen1.2: at usbus1 >> Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... >> >> warning: no time-of-day clock registered, system time will not be set >> accurately >> panic: abortdata >> > > please update to latest src. > ian@ is fixed it in latest rev. > > Ganbold > > >> cpuid =3D 1 >> KDB: enter: panic >> [ thread pid 1 tid 100001 ] >> Stopped at $d: ldrb r15, [r15, r15, ror r15]! >> db> bt >> Tracing pid 1 tid 100001 td 0xc6e4c640 >> db_trace_self() at db_trace_self >> pc =3D 0xc23d0d00 lr =3D 0xc203eb40 (db_stack_trace+0xf4) >> sp =3D 0xc50ffa30 fp =3D 0xc50ffa48 >> r10 =3D 0xc24fbd98 >> db_stack_trace() at db_stack_trace+0xf4 >> pc =3D 0xc203eb40 lr =3D 0xc203e4f4 (db_command+0x270) >> sp =3D 0xc50ffa50 fp =3D 0xc50ffaf0 >> r4 =3D 0x00000000 r5 =3D 0x00000000 >> r6 =3D 0x00000000 >> db_command() at db_command+0x270 >> pc =3D 0xc203e4f4 lr =3D 0xc203e258 (db_command_loop+0x60) >> sp =3D 0xc50ffaf8 fp =3D 0xc50ffb08 >> r4 =3D 0xc2415698 r5 =3D 0xc24265e4 >> r6 =3D 0xc24fbd84 r7 =3D 0xc50ffcf0 >> r8 =3D 0x00000000 r9 =3D 0xc24b09a0 >> r10 =3D 0xc24f1fb4 >> db_command_loop() at db_command_loop+0x60 >> pc =3D 0xc203e258 lr =3D 0xc2040cd8 (db_trap+0xd8) >> sp =3D 0xc50ffb10 fp =3D 0xc50ffc30 >> --More-- >> >> >> r4 =3D 0x00000000 r5 =3D 0xc24fbd90 >> r6 =3D 0xc24f1fe0 >> db_trap() at db_trap+0xd8 >> pc =3D 0xc2040cd8 lr =3D 0xc21d82f4 (kdb_trap+0x168) >> sp =3D 0xc50ffc38 fp =3D 0xc50ffc58 >> r4 =3D 0x00000000 r5 =3D 0x00000001 >> r6 =3D 0xc24f1fe0 r7 =3D 0xc50ffcf0 >> kdb_trap() at kdb_trap+0x168 >> pc =3D 0xc21d82f4 lr =3D 0xc23e9710 (undefinedinstruction+0x30= 4) >> sp =3D 0xc50ffc60 fp =3D 0xc50ffce8 >> r4 =3D 0x00000000 r5 =3D 0x00000000 >> r6 =3D 0xc23e935c r7 =3D 0xe7ffffff >> r8 =3D 0xc6e4c640 r9 =3D 0xc21d7a54 >> r10 =3D 0xc50ffcf0 >> undefinedinstruction() at undefinedinstruction+0x304 >> pc =3D 0xc23e9710 lr =3D 0xc23d2a1c (exception_exit) >> sp =3D 0xc50ffcf0 fp =3D 0xc50ffd48 >> r4 =3D 0xc242663e r5 =3D 0xc24e3d10 >> r6 =3D 0x00000001 r7 =3D 0xc24e3d88 >> r8 =3D 0xc50ffd7c r9 =3D 0xc24fd8e0 >> --More-- >> >> >> r10 =3D 0xc6e4c640 >> exception_exit() at exception_exit >> pc =3D 0xc23d2a1c lr =3D 0xc21d7a48 (kdb_enter+0x40) >> sp =3D 0xc50ffd40 fp =3D 0xc50ffd48 >> r0 =3D 0xc24f1fc4 r1 =3D 0x00000000 >> r2 =3D 0x00000001 r3 =3D 0x00000001 >> r4 =3D 0xc242663e r5 =3D 0xc24e3d10 >> r6 =3D 0x00000001 r7 =3D 0xc24e3d88 >> r8 =3D 0xc50ffd7c r9 =3D 0xc24fd8e0 >> r10 =3D 0xc6e4c640 r12 =3D 0x00000000 >> $a() at $a >> pc =3D 0xc21d7a58 lr =3D 0xc21967d0 (panic+0x140) >> sp =3D 0xc50ffd50 fp =3D 0xc50ffd70 >> r4 =3D 0x00000100 >> panic() at panic+0x140 >> pc =3D 0xc21967d0 lr =3D 0xc23d2a1c (exception_exit) >> sp =3D 0xc50ffd88 fp =3D 0xc50ffe40 >> r4 =3D 0x00000000 r5 =3D 0xc24fd6e4 >> r6 =3D 0xc0000000 r7 =3D 0xc24bb434 >> r8 =3D 0xc50ffe68 r9 =3D 0xc24bb43e >> --More-- >> >> >> r10 =3D 0xc6e49640 >> exception_exit() at exception_exit >> pc =3D 0xc23d2a1c lr =3D 0xc212e3e8 (start_init+0x1c0) >> sp =3D 0xc50ffdd8 fp =3D 0xc50ffe40 >> r0 =3D 0xbfffffff r1 =3D 0x00000000 >> r2 =3D 0xc50ffeb8 r3 =3D 0xc23d2ee8 >> r4 =3D 0x00000000 r5 =3D 0xc24fd6e4 >> r6 =3D 0xc0000000 r7 =3D 0xc24bb434 >> r8 =3D 0xc50ffe68 r9 =3D 0xc24bb43e >> r10 =3D 0xc6e49640 r12 =3D 0xc6d20ec0 >> subyte() at subyte+0x14 >> pc =3D 0xc23d2fac lr =3D 0xc212e3e8 (start_init+0x1c0) >> sp =3D 0xc50ffdd8 fp =3D 0xc50ffe40 >> Unwind failure (no registers changed) >> db> reboot >> >> >> >> >> On Sun, Mar 9, 2014 at 5:21 PM, Tom Everett wrote: >> >> > After a reboot it did indeed continue on building. I'm building an >> image >> > for 262958 now, and I'll try that once it's built. >> > >> > >> > >> > On Sun, Mar 9, 2014 at 10:52 AM, Ian Lepore wrote: >> > >> >> On Sun, 2014-03-09 at 10:16 -0600, Tom Everett wrote: >> >> > Hello, I'm running into the below error compiling pkgng on wandboar= d. >> >> My >> >> > source revision is r262932. >> >> > >> >> > root@wandboard:/usr/home/tom/pkg-1.1 # make >> >> > >> >> > make: "/usr/home/tom/pkg-1.1/Makefile" line 13: warning: Couldn't >> read >> >> > shell's output for "( which atf-version ) 2>&1 || true" >> >> > >> >> > =3D=3D=3D> external (all) >> >> > >> >> > =3D=3D=3D> external/sqlite (all) >> >> > >> >> > Warning: Object directory not changed from original >> >> > /usr/home/tom/pkg-1.1/external/sqlite >> >> > >> >> > =3D=3D=3D> external/libyaml (all) >> >> > >> >> > Warning: Object directory not changed from original >> >> > /usr/home/tom/pkg-1.1/external/libyaml >> >> > >> >> > =3D=3D=3D> libpkg (all) >> >> > >> >> > Warning: Object directory not changed from original >> >> > /usr/home/tom/pkg-1.1/libpkg >> >> > >> >> > =3D=3D=3D> pkg (all) >> >> > >> >> > Warning: Object directory not changed from original >> >> > /usr/home/tom/pkg-1.1/pkg >> >> > >> >> > =3D=3D=3D> scripts (all) >> >> > >> >> > =3D=3D=3D> scripts/periodic (all) >> >> > >> >> > =3D=3D=3D> scripts/completion (all) >> >> > >> >> > =3D=3D=3D> scripts/sbin (all) >> >> > >> >> > =3D=3D=3D> pkg-static (all) >> >> > >> >> > Warning: Object directory not changed from original >> >> > /usr/home/tom/pkg-1.1/pkg-static >> >> > >> >> > cc -O -pipe -I/usr/home/tom/pkg-1.1/pkg-static/../libpkg >> >> > -I/usr/home/tom/pkg-1.1/pkg-static/../external/uthash -std=3Dgnu99 >> >> > -Qunused-arguments -Wsystem-headers -Werror -Wall -Wno-format-y2k = -W >> >> > -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes >> >> > -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch >> >> -Wshadow >> >> > -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline >> >> -Wnested-externs >> >> > -Wredundant-decls -Wold-style-definition >> -Wmissing-variable-declarations >> >> > -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int >> >> > -Wno-unused-const-variable -static -o pkg-static add.o annotate.o >> >> audit.o >> >> > autoremove.o backup.o check.o clean.o convert.o create.o delete.o >> >> event.o >> >> > info.o install.o lock.o main.o plugins.o progressmeter.o query.o >> >> register.o >> >> > repo.o rquery.o update.o upgrade.o search.o set.o shlib.o updating.= o >> >> > utils.o version.o which.o fetch.o shell.o stats.o ssh.o >> >> > -L/usr/home/tom/pkg-1.1/pkg-static/../libpkg -lpkg -larchive >> -lutil >> >> > -lpthread -lsbuf -lfetch -lssl -lcrypto -lmd -lz -lbz2 -llz= ma >> >> > -lbsdxml -L/usr/home/tom/pkg-1.1/pkg-static/../external/sqlite >> >> > -L/usr/home/tom/pkg-1.1/pkg-static/../external/libyaml -lyaml >> -lsqlite3 >> >> > -larchive -lsbuf -lfetch -lpthread -lelf -lssl -lcrypto -lmd >> -lz >> >> > -lbz2 -llzma -ledit -lncursesw -ljail >> >> > >> >> > /usr/lib/libarchive.a: could not read symbols: Malformed archive >> >> > >> >> > cc: error: linker command failed with exit code 1 (use -v to see >> >> invocation) >> >> > >> >> > *** Error code 1 >> >> > >> >> > >> >> > Stop. >> >> > >> >> > make[1]: stopped in /usr/home/tom/pkg-1.1/pkg-static >> >> > >> >> > *** Error code 1 >> >> > >> >> > >> >> > Stop. >> >> > >> >> > make: stopped in /usr/home/tom/pkg-1.1 >> >> >> >> If it's like the ports building problems I ran into last week, if you >> >> reboot and build again it'll either work or die in a different place. >> I >> >> don't really have even a theory yet on what could be wrong, but I've >> >> been fixing everything I can find hoping that it'll just get better. >> >> >> >> I'm running out of things I know are a problem, so if it's not fixed = by >> >> all the changes between r262941-950 then I'll have to start hunting >> >> specifically for this problem, which appears to be that sometimes dat= a >> >> read from sdcard is corrupted (but I've yet to see corruption get ont= o >> >> the card, it seems to be during a read). >> >> >> >> Another problem I've run into in the past couple days is that event >> >> timers just stop running. You see this is an apparent lockup of >> >> anything periodic (such as a top display) or timeout-based, but you c= an >> >> still enter commands and get responses. Doing "sysctl >> >> kern.eventtimer.periodic=3D1" appears to work around it. >> >> >> >> -- Ian >> >> >> >> >> >> >> > >> > >> > -- >> > A better world shall emerge based on faith and understanding - Dougla= s >> > MacArthur >> > >> >> >> >> -- >> A better world shall emerge based on faith and understanding - Douglas >> MacArthur >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >> > > --=20 A better world shall emerge based on faith and understanding - Douglas MacArthur