From nobody Thu Apr 21 14:44:17 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3610013A692D for ; Thu, 21 Apr 2022 14:44:28 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KkgKl2xCFz4qHy for ; Thu, 21 Apr 2022 14:44:27 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x831.google.com with SMTP id fu34so3368475qtb.8 for ; Thu, 21 Apr 2022 07:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=sYvy6ZVMeT1orYx/pcbubxhaXgSTdpRbD4zWgRVqnhE=; b=cVTvIVETsXtyKaM+DBJhE9+Hguxpy12AFtZ28jlq86vOiBNUZsdofIKqn05rwFBbdJ f3Uj6YOpopl5Ph6Y4iUDbiG2fSSx++CBjIBFCsTxVyV0CxnNCuZ0iAwFwfZ5klYG32se 442f45p3rny3FCwa/yv45/CvsA5gjkXpsNPQbvOJEezANRWzCXrGgVG7ZLOjAAwmbhzj QOv7QJtgFv47mK7j621vYxuDX2UXmP/BowlZTn68Y8PPrb329zX/asjpderXWvrN4IbY pqEzItxgLlGeq7K1wYDFTJ3v5iS5veH3q9NHUg/5pfYhzDfJsQvJk1boD1ROccrl1Ewm 05ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=sYvy6ZVMeT1orYx/pcbubxhaXgSTdpRbD4zWgRVqnhE=; b=xd3GfVS6TW47I+tdSQIY7NDOes1IgZUvgjokkGHhv1PvxY5C+AjSGaBWwujehGQWru qCTSesgyGFQj6ZTSbveuH2WRkfGguO1gIYkc7PnysU6HHABInRfYyQAubGvdt459bntz jqYOrVOvD1IgXjDOaJeUz/6M6tthQUzsgbDTw/J+6uxE9bE3eZ4YD8fqeYkAtmyKdBaa G/vBzsFZmASqtAkT1euwimcS4g2XNmUDYJ74rMGugFRFMklji+VP6ZCw0OF3EWAkLEJP T2Aeizrs8g7qRQ/DQQtuNBfc+YC5y1O+QpO1Kq9SUwRi2oPy4rd+mHCpB7n/7kbZUrkU 9J1w== X-Gm-Message-State: AOAM530wb1kdyPHNM+jG10rXNxAlI0oJgA3O5GgkvgmTgMoTdzm/AncW Ohqku4wXMcSJvHcfN+a/x+D4Pk3U3II= X-Google-Smtp-Source: ABdhPJx0IR5yxKNpire3Jq0Ky3X6GgrMUKXDrtAtx5UJtlaOtaDhrZ5H5fDffwhPukjPsJm15j5LEw== X-Received: by 2002:ac8:57c9:0:b0:2e2:38d3:dcf9 with SMTP id w9-20020ac857c9000000b002e238d3dcf9mr17328149qta.169.1650552261334; Thu, 21 Apr 2022 07:44:21 -0700 (PDT) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id b13-20020ac85bcd000000b002e06856b04fsm3809240qtb.51.2022.04.21.07.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 07:44:20 -0700 (PDT) Date: Thu, 21 Apr 2022 10:44:17 -0400 From: Mark Johnston To: stephane rochoy Cc: FreeBSD Hackers Subject: Re: vwarn: libc vs opensolaris/ctf/tools Message-ID: References: <874k2mzf8t.fsf@stormshield.eu> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <874k2mzf8t.fsf@stormshield.eu> X-Rspamd-Queue-Id: 4KkgKl2xCFz4qHy X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=cVTvIVET; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::831 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [1.03 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.82)[-0.819]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.87)[0.867]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.68)[0.681]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::831:from]; MLMMJ_DEST(0.00)[freebsd-hackers]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Apr 21, 2022 at 04:24:18PM +0200, stephane rochoy wrote: > Hello, > > Trying to build stable/13 [1] (for ARMv6) if encountered the > following linker error when building cddl/user.bin/ctfdump. > > ld: error: duplicate symbol: vwarn > >>> defined at utils.c > >>> utils.o:(vwarn) > >>> defined at err.c:148 (/usr/src/lib/libc/gen/err.c:148) > >>> err.o:(.text+0x4D0) in archive /usr/lib/libc.a > cc: error: linker command failed with exit code 1 (use -v to > see invocation) > > The vwarn function seems to be defined both in lib/libc/gen/err.c > and in cddl/contrib/opensolaris/tools/ctf/common/utils.c. It seems > to be ok to workaround the problem by enclosing OpenSolaris' > implementation in #if 0. I think that'd be fine. We can remove it outright. Your build is statically linking ctfdump, due to the use of NO_SHARED. I can reproduce the failure locally, but as far as I can tell the problem has been there for a long time. > I don't see anything related in my src.conf: > > TARGET=arm > TARGET_ARCH=armv6 > TARGET_CPUARCH=arm > TARGET_CPUTYPE=armv6softfp > > DESTDIR=/home/stephaner/c/freebsd/dest > KERNCONF=ARMADA38X > METALOG=/home/stephaner/c/freebsd/dest/METALOG > > # Jan 1, 2030 00:00:00 > BUILD_UTC=1893452400 > DB_FROM_SRC=1 > NO_FSCHG=1 > NO_ROOT=1 > NO_SHARED=1 > NO_RTLD=1 > > WITHOUT_BEARSSL=1 > WITHOUT_BLUETOOTH=1 > WITHOUT_CAPSICUM=1 > WITHOUT_CASPER=1 > WITHOUT_CFI=1 > WITHOUT_CLEAN=1 > WITHOUT_DEBUG_FILES=1 > WITHOUT_DICT=1 > WITHOUT_GAMES=1 > WITHOUT_GROFF=1 > WITHOUT_KERBEROS=1 > WITHOUT_LIB32=1 > WITHOUT_LLVM_TARGET_ALL=1 > WITHOUT_LOADER_VERIEXEC=1 > WITHOUT_MAIL=1 > WITHOUT_NLS=1 > WITHOUT_OFED=1 > WITHOUT_PROFILE=1 > WITHOUT_SAFESTACK=1 > WITHOUT_TESTS=1 > WITHOUT_VERIEXEC=1 > WITHOUT_WARNS=1 > WITHOUT_WERROR=1 > WITHOUT_ZFS=1 > > WITH_BIND_NOW=1 > WITH_CLANG=1 > WITH_INSTALL_AS_USER=1 > WITH_PIE=1 > WITH_REPRODUCIBLE_BUILD=1 > WITH_RESCUE=1 > WITH_SHLIBRANDOM=1 What is WITH_SHLIBRANDOM? > > Does anyone have a hint or any thing I could investigate? > > [1] dd19f0e9c006370d33b56b6d1b66015d7afd00eb > > Regards, > -- > Stéphane Rochoy > O: Stormshield >