From owner-freebsd-current@freebsd.org Sun Jan 12 16:32:16 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2D2981DB527 for ; Sun, 12 Jan 2020 16:32:16 +0000 (UTC) (envelope-from gbergling@gmail.com) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47wj1C2cSWz4YvJ for ; Sun, 12 Jan 2020 16:32:15 +0000 (UTC) (envelope-from gbergling@gmail.com) Received: by mail-wm1-x334.google.com with SMTP id p17so7059726wma.1 for ; Sun, 12 Jan 2020 08:32:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=TrkD7volPnNQRI7WOfLEXEoNHjV/BePESVaHTw9GC1M=; b=QhtSFOkpv0Bo+D0x7/tL4wB7LUtapCc0DKw4kiHzyuQY8q47I5+MWouPJOnHX/j5O+ xARa6KUk5FOUNgz8l0WYDlyWmmoB6id/y5iAfadTs9hkxUnHDEp51vTHMvKBR76517K1 SG6mfPOW9+ych1d3d7+lVk9zIlXYaGg1aBfoJvoMCuw1wZEF38GygEM9JB2E1fdzLaTG 8R8kWJ644dJOVXt8QkvzvxQQf7E8zVLWB8CCR7WVaIfriC31EKevPSem9gbs16LuTRAU ZDMrKOgnKvPqQCZ5vxs8km5nBWgC86OS2bT819/bBo9HIpe4tdsiERvBoCmSzFfvPrMo kzDw== X-Gm-Message-State: APjAAAXqAxvyvPh4KwuZjbO6DOhNW4xEPT9CeoVkEZi2JhRAG3OvxWFf J1hJ9KtURCJmCePryoKI3xrf+xeG X-Google-Smtp-Source: APXvYqwhZmOYz3YeCpGeVhEsA3OYAyfZfxKQ4hT1GPL8j4YFtxywSwzL27XWfnfvbWDcXJ73Xz9eCQ== X-Received: by 2002:a7b:c218:: with SMTP id x24mr15927532wmi.149.1578846732022; Sun, 12 Jan 2020 08:32:12 -0800 (PST) Received: from lion.0xfce3.net (p4FD3A8F6.dip0.t-ipconnect.de. [79.211.168.246]) by smtp.gmail.com with ESMTPSA id u1sm10891594wmc.5.2020.01.12.08.32.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jan 2020 08:32:11 -0800 (PST) Sender: Gordon Bergling Date: Sun, 12 Jan 2020 17:32:09 +0100 From: Gordon Bergling To: freebsd-current@freebsd.org Subject: Re: Building -CURRENT on -STABLE Message-ID: <20200112163209.GA16856@lion.0xfce3.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: X-Operating-System: FreeBSD 12.1-STABLE amd64 X-Host-Uptime: 4:49PM up 2 days, 21:27, 2 users, load averages: 0.25, 0.27, 0.25 X-Rspamd-Queue-Id: 47wj1C2cSWz4YvJ X-Spamd-Bar: / X-Spamd-Result: default: False [-0.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[googlemail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; FORGED_SENDER(0.30)[gbergling@googlemail.com,gbergling@gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[246.168.211.79.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; IP_SCORE(0.00)[ip: (-8.73), ipnet: 2a00:1450::/32(-2.60), asn: 15169(-1.84), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[gbergling@googlemail.com,gbergling@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DMARC_POLICY_QUARANTINE(1.50)[googlemail.com : SPF not aligned (relaxed), DKIM not aligned (relaxed),quarantine]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[4.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 12 Jan 2020 16:32:16 -0000 Hi, if someone is facing the same error, the build variable MAKEOBJDIRPREFIX must be set within the environment and _not_ within the make context. I would also suggest that the source and object directories are on the same partition. My sources where located in my home directory and the object directory on a separate zfs pool, but using symlinks to fake the directory structure wasn't successful. With the following steps I was able to build on the fast machine, and install via nfs on the client. On the build machine: # mkdir -p /boiler/nfs/{src,obj} # export MAKEOBJDIRPREFIX=/boiler/nfs/obj # cd /boiler/nfs/src && git pull # make -s -j 4 buildworld buildkernel > /boiler/nfs/logs/build.log 2>&1 On the target machine (assuming server:/boiler/nfs is mounted on /boiler/nfs at the client) # env MAKEOBJDIRPREFIX=/boiler/nfs/obj make installkernel # env MAKEOBJDIRPREFIX=/boiler/nfs/obj make installworld # mergemaster -Ui -m /boiler/nfs/src/ Best, Gordon On Thu, Jan 09, 2020 at 11:45:21AM +0100, Gordon Bergling wrote: > Hi, > > I am currently about to setup an -CURRENT system, which should gets updated via a build > server that’s runs on -STABLE and shares the src and obj directories via NFS to -CURRENT system. > > While doing a „make -s -j 4 buildworld buildkernel“ the builds fails randomly with the following error. > > ------------------------------------------------------------------------------------------------- > ===> sbin/fsirand (all) > ===> sbin/gbde (all) > ===> sbin/geom (all) > ===> kerberos5/libexec/kimpersonate (all) > ld: error: undefined symbol: glabel_class_commands > >>> referenced by geom.c > >>> geom.o:(get_class) > > ld: error: undefined symbol: glabel_version > >>> referenced by geom.c > >>> geom.o:(get_class) > > ld: error: undefined symbol: gpart_class_commands > >>> referenced by geom.c > >>> geom.o:(get_class) > > ld: error: undefined symbol: gpart_version > >>> referenced by geom.c > >>> geom.o:(get_class) > cc: error: linker command failed with exit code 1 (use -v to see invocation) > --- geom.full --- > *** [geom.full] Error code 1 > > make[4]: stopped in /home/gbergling/sources/freebsd/freebsd/sbin/geom > 1 error > > make[4]: stopped in /home/gbergling/sources/freebsd/freebsd/sbin/geom > A failure has been detected in another branch of the parallel make > ------------------------------------------------------------------------------------------------- > > I also tried the build without the „j“-Flag but the error was the same. > > Do you have any hints what could have caused this? > > The -STABLE machine is stock and no special things are setup within src.conf or make.conf. > > Best regards, > > Gordon