From owner-freebsd-arm@freebsd.org Wed Nov 4 14:23:05 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED123A26E40 for ; Wed, 4 Nov 2015 14:23:05 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CDECA1C15 for ; Wed, 4 Nov 2015 14:23:05 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.200.208] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 95CED193874 for ; Wed, 4 Nov 2015 14:23:04 +0000 (UTC) Subject: Re: CC core dumping with CLANG 3.7 on armv5 - DREAMPLUG [ jemalloc failures ] To: freebsd-arm@freebsd.org References: <5626144F.9060003@gmail.com> <5628873F.7050509@gmail.com> From: Sean Bruno Message-ID: <563A14C7.8090105@freebsd.org> Date: Wed, 4 Nov 2015 06:23:03 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5628873F.7050509@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 14:23:06 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 10/21/15 23:50, Mattia Rossi wrote: > Hi all again, does anyone know what might be going on regarding > the error below? Unfortunately I can't build clang with debugging > symbols, as it fails because I run out of swap. As this means that > I ahve to repartition and rebuild my build system and that's going > to take awhile until I find the time to get around to do that, I > have no additional information in the meantime... > > Cheers, > > Mat This is a bit of a "thread stealing" email here. I'm starting Tier-2 builds for this architecture and have found that jemalloc is not happy with this target. It might be related, but I'm unsure. http://tasty.ysv.freebsd.org/build.html?mastername=11arm-default&build=2015-11-01_18h49m25s Specifically, I see a failure patten in jemalloc that yeilds error messages like: : /usr/local/poudriere/jails/11arm/usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:715: Failed assertion: "binind < NBINS || binind == BININD_INVALID" or : /usr/local/poudriere/jails/11arm/usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:1217: Failed assertion: "arena_mapbits_allocated_get(chunk, pageind) != 0" These builds are done via the newly implemented qemu-user-static support for armv4/5, so it may be related to something unimplemented. But I haven't dug into this any further. sean > >> >> since CLANG was upgraded to 3.7 I'm not abel to compile anything >> on my Dreamplug anymore: >> >> FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) >> 20150906 Target: arm--freebsd11.0-gnueabi Thread model: posix >> configure:3562: $? = 0 configure:3551: cc -v >&5 FreeBSD clang >> version 3.7.0 (tags/RELEASE_370/final 246257) 20150906 Target: >> arm--freebsd11.0-gnueabi Thread model: posix configure:3562: $? = >> 0 configure:3551: cc -V >&5 cc: error: argument to '-V' is >> missing (expected 1 value) cc: error: no input files >> configure:3562: $? = 1 configure:3551: cc -qversion >&5 cc: >> error: unknown argument: '-qversion' cc: error: no input files >> configure:3562: $? = 1 configure:3582: checking whether the C >> compiler works configure:3604: cc conftest.c >&5 cc: error: >> unable to execute command: Bus error (core dumped) cc: error: >> clang frontend command failed due to signal (use -v to see >> invocation) >> >> Unfortunately I don't have any debugging symbols enabled in world >> (yet - it's compiling), only in the kernel, so I can't get a >> proper backtrace: >> >> root@dreamplug:~ # gdb /usr/bin/cc cc.core GNU gdb 6.1.1 >> [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is >> free software, covered by the GNU General Public License, and >> you are welcome to change it and/or distribute copies of it under >> certain conditions. Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" >> for details. This GDB was configured as >> "arm-marcel-freebsd"...(no debugging symbols found)... Core was >> generated by `cc'. Program terminated with signal 10, Bus error. >> #0 0x01eb0868 in ?? () (gdb) bt #0 0x01eb0868 in ?? () (gdb) >> >> Does anyone have similar probelms or know a solution to that? >> >> Please con't tell me that nobody is using armv5 anymore and I >> should change to a RPi or so :-( >> >> Cheers, >> >> Mat > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm To > unsubscribe, send any mail to > "freebsd-arm-unsubscribe@freebsd.org" > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJWOhTFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kKxQH/1RrIFtGc/H03W5yDrJIK1zv Eo37p8GFE2wptJFi8c+KbngB5jxqhqtEn3NQXVhS/3+twWQbOy1Z5dvm2y2l9SqP EHEJcTybRKjkHSCLQ85el2INxN2TbYFljkijTbjDk9L11uH72p4o05qBb551q542 JJNgSHxvIW7IB+KsUmM+lwWwfvULFCv15iyO0IAD6dUWRy+28evZCnzDgCCL4VGq n15U28m1nCX51oSGEU2E3Mo48Q46pSOw4o/dh80qPxQ/YxDbE/hGe5YCnpEfjNL0 HJoi/lUt7J7yj6P7Hg8NnF91+mZyMHC1G+zOx7AR/oh01OLI1WWrUdzVN0nYXiY= =JpdR -----END PGP SIGNATURE-----