From owner-freebsd-current@freebsd.org Tue Oct 10 20:54:49 2017 Return-Path: Delivered-To: freebsd-current@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 7D46DE3CAFA for ; Tue, 10 Oct 2017 20:54:49 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 104E96C54A for ; Tue, 10 Oct 2017 20:54:49 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id u138so519390wmu.4 for ; Tue, 10 Oct 2017 13:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TG+f75c33gQNCK8a35UadOTzn7IFQtshYo9hZ9w3gqc=; b=X4SxkUKdAXiQmqW4Hc6ukhliiLZD9YJht2arc6R6jLtn1XDIk60kQtuF/AFnnRHFFA arpwjl9fJRKPdaIyT9fCkjOl3Q8EuOVQTazm7eNuEZBKvWhdM7Gaug6fb8ECu8fGP70Q Uh1fEWeAyl52iIaFLK2p9sQVGjSkuYiwnIA1I1ZChJW7JTzn7WTF4yLhumN7GcScOwdY AJzEWIbchoOIPFtKrXdZ5g3x+kFuAQ+yxziC6yIyvDxg9ej3/SYjPj8SNOe+lmfOazlA YSizkZcVEoF1H7zAE1r4EqVyhIyRLn0EI4gGNhFluNbBszlVU5m955qTbg8NSEQpqeh4 dwcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TG+f75c33gQNCK8a35UadOTzn7IFQtshYo9hZ9w3gqc=; b=W7Vd+dJcnGU++6OZenwen0dr3a6a9fzyM6xdtbh94+xlzRbhSfHWVtrxqpVxVnJGrN itvyt+/SpLPoSdV3a5TMG1uKkz7HIt0eD9zlLHzhJkrhHzm/cgERnByJonFryZh5uin5 RCdw/YDr4a7EYG3gNSOLalRsMVaYytqQP8zyzQR38uRSgZDdbvn9rKm7D/IxvapQYoEp 2g68vR98Czq8CBRDpf85aeCjHCcg4Cv0fFk7rgBVoOzGmDBA9qSDzICQmn0YESXMrq8A ir91C3y6vwbqq/gfr76gkkVvhmm/w690SfejcsNKtTfgqDiA/Cguy4+4vxybhUgkroNi VMLw== X-Gm-Message-State: AMCzsaXPKbc9KTHmt3iePTZjNA3imiuh9S1cf5XxD0VLNQDB3bl25mI3 eKLyN26Odbug1e4ob1w7B62iGrU62WNTtX61zIImeA== X-Google-Smtp-Source: AOwi7QDYwIs4sQ4CbN6jttj8wraN1tOjyA6GKdeiqS+UYtEP8Tte6oUq3kj6XSZQnyROietXqbE/mv4C1d0mWhoNcCg= X-Received: by 10.223.159.6 with SMTP id l6mr14807347wrf.156.1507668887242; Tue, 10 Oct 2017 13:54:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.132.133 with HTTP; Tue, 10 Oct 2017 13:54:46 -0700 (PDT) In-Reply-To: <920CCA30-C1B8-4A42-8F00-00BE0FA72D3D@dsl-only.net> References: <920CCA30-C1B8-4A42-8F00-00BE0FA72D3D@dsl-only.net> From: Johannes Lundberg Date: Tue, 10 Oct 2017 22:54:46 +0200 Message-ID: Subject: Re: Somethign missing in my environment? To: FreeBSD Current Cc: Mark Millard Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2017 20:54:49 -0000 Thanks for the pointers. It's weird... I was thinking that the local git repo may have been messed up somewhere but exactly the same source code builds in a jail which is also 12-current. Host system: drm-next tree built in a jail and then installed on host (due to build error on host) drm-next is identical to upstream except graphics stuff and lkpi. Jail: 12-current image downloaded from freebsd ftp site No make flags except malloc production.. No weird env vars.. Error: /usr/obj/usr/home/johannes/dev/freebsd/freebsd-base-graphics/tmp/usr/lib/libgcc_s.so: undefined reference to `__gxx_personality_v0' In host: johannes@jd:~/dev/freebsd/freebsd-base-graphics % nm -D /usr/obj/usr/home/johannes/dev/freebsd/freebsd-base-graphics/tmp/usr/lib/libgcc_s.so | grep person 000000000000c1a0 T __gcc_personality_v0 U __gxx_personality_v0 johannes@jd:~/dev/freebsd/freebsd-base-graphics % nm -D /usr/lib/libgcc_s.so | grep person 0000000000006e30 T __gcc_personality_v0 And from the jail: root@build12:~ # nm -D /usr/obj/root/freebsd-base-graphics/tmp/usr/lib/libgcc_s.so | grep person 0000000000006e30 T __gcc_personality_v0 Ok I found the problem while writing this but I'll still post the output above.. The problem seem to be that I was running as normal user on host (but root in the jail). Switching to root and it works. Now it only complains about fat partitions being too small but that's an easier fix.. On Tue, Oct 10, 2017 at 9:12 PM, Mark Millard wrote: > May be this will help find the problem in your environment: > > # grep -r gxx_personality_v0 /usr/src/* | more > . . . > /usr/src/contrib/libcxxrt/exception.cc:BEGIN_PERSONALITY_FUNCTION(__gxx_personality_v0) > . . . > /usr/src/contrib/libstdc++/libsupc++/eh_personality.cc:#define PERSONALITY_FUNCTION __gxx_personality_v0 > . . . > /usr/src/gnu/lib/libsupc++/Version.map: __gxx_personality_v0; > /usr/src/lib/libcxxrt/Version.map: __gxx_personality_v0; > > # grep -r PERSONALITY_FUNCTION /usr/src/* | more > . . . > /usr/src/contrib/libstdc++/libsupc++/eh_personality.cc:#define PERSONALITY_FUNCTION __gxx_personality_sj0 > /usr/src/contrib/libstdc++/libsupc++/eh_personality.cc:#define PERSONALITY_FUNCTION __gxx_personality_v0 > /usr/src/contrib/libstdc++/libsupc++/eh_personality.cc:PERSONALITY_FUNCTION (_Unwind_State state, > /usr/src/contrib/libstdc++/libsupc++/eh_personality.cc:PERSONALITY_FUNCTION (int version, > . . . > > > So it looks like the implementation of __gxx_personality_v0 > is supposed to be in one of: > > libcxxrt.so.* for clang and modern gcc based buildworld's > > libsuppc++.so.* for gcc 4.2.1 based buildworld's > > > === > Mark Millard > markmi at dsl-only.net >