From owner-freebsd-current@freebsd.org Sat Dec 2 20:30:29 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 3FBD1E690CD for ; Sat, 2 Dec 2017 20:30:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::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 004D37C8D2 for ; Sat, 2 Dec 2017 20:30:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22a.google.com with SMTP id u42so14723530ioi.9 for ; Sat, 02 Dec 2017 12:30:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=y80IfL2e4L1fv5g2A1WN9YvDAZll7PTAHc6ZQuJ/i7E=; b=jCjV7UQKdd12WrE6VnlDIlg512kqjaPMG7X+873jIP+GmfVABJhKjS3tmJr/pknc8W TpMxSXTrqi8Rpv5jtxOsoJDyPk8qToERzdqC++WbmU1tQXn4aU86hb/PlOBpQ3EYQjsL aRrIXkFehbBxWBMyzB05ZvA8RIcHfb3vDAdomQxj+0k94oSWedS78I8K1HW8gQ0sXASb 3POrY9THMFNpBaBlMQeO5YhfSVScdLoOmB17dxtTDytJ0gijZCyINoT8h9w5tETrBDYn 43zC/gRgEhvH8CaATTsxPI80Nu70hAhQfpTEqdlCHpZc1zh6oJQZrxJSNO3Ezl/tUQO4 jWgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=y80IfL2e4L1fv5g2A1WN9YvDAZll7PTAHc6ZQuJ/i7E=; b=swZL44hbJNTB2n50F8GV/AuuZ4K4sKINNpKWQij13IrKks6l0dQ3F6dDA7shFZIv9l 0w60af0LXC++gM9shvHb90/o77iH9VO8MBj9hEMzUDnNtsGw9plm7ZYzexzERDbgSo+r p3N4tx3ocXaw+1fkLrziFLwmElWPz3yjmW0LgfBj0b67e8praere//oi3Wc5h3e3yax8 mXcCO/J/0+qISvQS/hGQcWEajfUPUBBj+sLpGeGwKGPQR5lYdqLe5uXFlcuiYhAFEFn/ 0y2QDJbLlCyAllpI1SjPf3EttGtsayL1m54i5y9nZ99HpUFrsZ6A3HyiuGsvR3kY5AKt IrGg== X-Gm-Message-State: AJaThX7gJQG4pGDcNuJ+k2n6J05rjsuid9XqpFjLwF2Gn6bwfmPgb8H0 Ri2jNurvf78tB+aBeOERsMvEMoIwpchzrV2mDe+7Lw== X-Google-Smtp-Source: AGs4zMZSHev2L6LTRAbuYKYVsGD91F7s+LWhlGT9rAhYbfPbQYN2XpRBVmwwK7S1ceZJctllLKZ2gZYNlan36GKqRVo= X-Received: by 10.107.30.81 with SMTP id e78mr17247110ioe.130.1512246628168; Sat, 02 Dec 2017 12:30:28 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Sat, 2 Dec 2017 12:30:27 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <2e3d1848-81ed-6112-33c6-424b33a85fd6@nomadlogic.org> References: <520eb756-6d01-23d2-3321-b3db6dc3438c@nomadlogic.org> <2e3d1848-81ed-6112-33c6-424b33a85fd6@nomadlogic.org> From: Warner Losh Date: Sat, 2 Dec 2017 13:30:27 -0700 X-Google-Sender-Auth: fKaqZHuM09hknU4zteV3ki5dWgU Message-ID: Subject: Re: Error attempting to link during buildworld To: Pete Wright Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Sat, 02 Dec 2017 20:30:29 -0000 On Sat, Dec 2, 2017 at 12:50 PM, Pete Wright wrote: > > > On 12/01/2017 11:43, Pete Wright wrote: > >> Hi All, >> >> I am running into this error when attempting to buildworld from a >> checkout I made recently (git hash 76ca06b62f3bfb21f1f2e1295eb89e >> 3c235bdda7) >> >> --- all_subdir_stand --- >> /usr/home/pete/git/freebsd/stand/i386/libi386/libi386.a(bootinfo64.o): >> In function `bi_checkcpu': >> /usr/home/pete/git/freebsd/stand/i386/libi386/bootinfo64.c:149: >> undefined reference to `read_eflags' >> /usr/home/pete/git/freebsd/stand/i386/libi386/bootinfo64.c:150: >> undefined reference to `write_eflags' >> /usr/home/pete/git/freebsd/stand/i386/libi386/bootinfo64.c:151: >> undefined reference to `read_eflags' >> cc: error: linker command failed with exit code 1 (use -v to see >> invocation) >> *** [loader.sym] Error code 1 >> >> >> Has anyone else seen this? I'm not sure if I have some stale files that >> need to be purged, or if this is a bug due to me using ccache. I'm asking >> here tho as I'd love to preserve my ccache and save some cycles rebuilding >> LLVM :) >> > > just following up on this thread - i assume others have been able to > buildworld on amd64, and have not been getting this linker error? i have a > fresh checkout from this morning, tested with and without ccache and am > still getting this same error. my system is currently at this revision: > > $ uname -ar > FreeBSD runner 12.0-CURRENT FreeBSD 12.0-CURRENT #1 63d5d6c71fb(master): > Sat Nov 18 08:36:45 PST 2017 pwright@runner:/usr/obj/usr/ho > me/pwright/git/freebsd/amd64.amd64/sys/GENERIC-EVDEV amd64 > > > any tips on helping debug this as well would be appreciated - as i'm not > %100 sure where to start (i.e. how to invoke the linker with the "-v" flag > for buildworld :) With today's tree, I can both build the loader by hand and as part of buildworld. I'm keen on fixing this, but I've no clue why it's failing for you. Have any weird optimizer settings? Do you get any reports of functions not declared? Warner