From owner-freebsd-toolchain@freebsd.org Sun Nov 19 18:08:50 2017 Return-Path: Delivered-To: freebsd-toolchain@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 86673DBA36D for ; Sun, 19 Nov 2017 18:08:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 745D2802AA for ; Sun, 19 Nov 2017 18:08:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAJI8n5p017052 for ; Sun, 19 Nov 2017 18:08:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Sun, 19 Nov 2017 18:08:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2017 18:08:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 Conrad Meyer changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg CC| |dim@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Nov 19 19:33:50 2017 Return-Path: Delivered-To: freebsd-toolchain@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 5B61ADBBDA6 for ; Sun, 19 Nov 2017 19:33:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 3E9C528DB for ; Sun, 19 Nov 2017 19:33:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAJJXnS0049691 for ; Sun, 19 Nov 2017 19:33:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Sun, 19 Nov 2017 19:33:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: theraven@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2017 19:33:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 David Chisnall changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |theraven@FreeBSD.org --- Comment #3 from David Chisnall --- This doesn't look like a bug. `__attribute__((constructor))` is only defin= ed for functions that take no arguments (for gcc and clang). I'm very surpris= ed if you don't get a compile-time warning. If `argc`, `argv` and `envp` are appearing as arguments, it's because, on some platforms / architectures the= se happen to be the values in argument registers when the constructors are invoked, but it's not intended behaviour. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Nov 19 20:17:04 2017 Return-Path: Delivered-To: freebsd-toolchain@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 24766DBDA52 for ; Sun, 19 Nov 2017 20:17:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 123BD3980 for ; Sun, 19 Nov 2017 20:17:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAJKH3mS051540 for ; Sun, 19 Nov 2017 20:17:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Sun, 19 Nov 2017 20:17:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dimitri.staessens@ugent.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2017 20:17:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #4 from dstaesse --- Are you 100% sure about that? Doesn't this attribute work with functions th= at have a signature that is allowable for a main() function? I haven't heard a= ny compiler complain, and we tried combinations of GNU/Linux, OS X and FreeBSD compiling with gcc or (Apple)clang. So far, it worked flawlessly except on FreeBSD when compiling with clang. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Nov 19 22:25:48 2017 Return-Path: Delivered-To: freebsd-toolchain@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 4BF5BDBFDC2 for ; Sun, 19 Nov 2017 22:25:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 33FC7660C7 for ; Sun, 19 Nov 2017 22:25:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAJMPlOD091975 for ; Sun, 19 Nov 2017 22:25:48 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Sun, 19 Nov 2017 22:25:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2017 22:25:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markmi@dsl-only.net --- Comment #5 from Mark Millard --- (In reply to dstaesse from comment #4) What processor architectures have you tried (in those contexts that allow a variety)? powerpc64? powerpc? armv7? aaarch64? . . . I expect that it will appear to work only for some processor architectures: ABI differences would likely matter. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Nov 19 23:47:49 2017 Return-Path: Delivered-To: freebsd-toolchain@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 DCF56DC1279 for ; Sun, 19 Nov 2017 23:47:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 CAFD168184 for ; Sun, 19 Nov 2017 23:47:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAJNlmiO075709 for ; Sun, 19 Nov 2017 23:47:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Sun, 19 Nov 2017 23:47:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2017 23:47:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #6 from Mark Millard --- (In reply to dstaesse from comment #4) Also: in looking around I find that every official webpage/document about this that shows examples shows functions with no arguments. (But none that I found has any explicit words about the argument list requirements. None say that the arguments are the same as for any standard variation for how main can be declared.) For a stack architecture, there would be stack pushes set up before the calls and pops set up after the calls. In architectures with some degree of register-based argument passing it is harder to see what has a garbage-in/garbage-out/accidental status vs. what is deliberate. It looks to me like the existing documentation could stand an update about parameters and arguments. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Nov 19 23:56:17 2017 Return-Path: Delivered-To: freebsd-toolchain@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 59D99DC14DE for ; Sun, 19 Nov 2017 23:56:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 488BD68561 for ; Sun, 19 Nov 2017 23:56:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAJNuHIP096254 for ; Sun, 19 Nov 2017 23:56:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Sun, 19 Nov 2017 23:56:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dimitri.staessens@ugent.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2017 23:56:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #7 from dstaesse --- (In reply to Mark Millard from comment #5) Good point, we only tried amd64 and i386.=20 This feature seems to be very sparsely documented, with some sources saying everything but void func(void) is undefined behaviour and others stating th= at it can have the same signature as the main() function. The GNU compiler documentation doesn't give details and clang doesn't document it at all. I'= ve seen other projects use this, though. The compiler doesn't seem to check the function signature at all, I've trie= d to set the constructor attribute to functions with all sorts of parameters and complaints. If this is undefined behaviour, do you know of a portable way to access argv from a shared library without passing it as a function parameter to some in= it call? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 00:20:20 2017 Return-Path: Delivered-To: freebsd-toolchain@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 2F883DDB15D for ; Mon, 20 Nov 2017 00:20:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 1D76568DC6 for ; Mon, 20 Nov 2017 00:20:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK0KJ1k088307 for ; Mon, 20 Nov 2017 00:20:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 00:20:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dimitri.staessens@ugent.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 00:20:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #8 from dstaesse --- I agree that the documentation could be more specific about the nature of t= he functions that can have this attribute. It's true that most examples use functions without arguments but that could just be because they are examples and keep things as simple as possible. Mo= st of the examples have a main() without arguments as well... Of course it's glibc specific, but the elf-init.c seems to define the funct= ions that go into the pre_init array as having (int, char **, char **) arguments: https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob_plain;f=3Dcsu/elf-init.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 00:31:12 2017 Return-Path: Delivered-To: freebsd-toolchain@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 789F9DDB853 for ; Mon, 20 Nov 2017 00:31:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 6738A6944A for ; Mon, 20 Nov 2017 00:31:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK0VCkA018982 for ; Mon, 20 Nov 2017 00:31:12 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 00:31:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 00:31:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #9 from Mark Millard --- (In reply to dstaesse from comment #7) I did not manage to find anything that mentioned the parameters/arguments: You found materials that I did not. What context(s) were they from? "portable way": what range of portability? Even having shared libraries is likely not universal to all C/C++ contexts. Windows .DLL's have a different mechanism if I remember right. And so on. But even for a narrower Unix/BSD/Linux context: as far as I know the conventions are just local/ABI conventions and the compiler does not drive which conventions are used: the environment does something to impose the environment's desired rules. [I'm no expert on POSIX rules so there might be material from that direction that I'm not aware of.] --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 00:53:36 2017 Return-Path: Delivered-To: freebsd-toolchain@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 3C75CDDBCE0 for ; Mon, 20 Nov 2017 00:53:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 2A2BE69BD1 for ; Mon, 20 Nov 2017 00:53:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK0raAH068810 for ; Mon, 20 Nov 2017 00:53:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 00:53:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dimitri.staessens@ugent.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 00:53:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #10 from dstaesse --- (In reply to Mark Millard from comment #9) Thanks a lot for taking time to help me out. I'm definitely no expert on th= is matter. Our target is restricted to POSIX. I've found mostly posts on stackoverflow, definitely nothing that's official documentation.=20 But this gave me some insights: https://www.cs.stevens.edu/~jschauma/810/elf.html Here is says that: The .preinit_array and .init_array sections must contain function pointers = (NOT code!) The prototype of these functions must be void func(int argc,char** argv,char** envp) But this may be specific for x86_64. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 00:57:32 2017 Return-Path: Delivered-To: freebsd-toolchain@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 6C6C4DDBD2B for ; Mon, 20 Nov 2017 00:57:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 4D57369C16 for ; Mon, 20 Nov 2017 00:57:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK0vWW3073430 for ; Mon, 20 Nov 2017 00:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 00:57:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 00:57:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #11 from Mark Millard --- (In reply to dstaesse from comment #8) (In reply to dstaesse from comment #8) I took a quick grep for -r325700 (head): # grep -r __init_array_start /usr/src/* | more /usr/src/contrib/llvm/tools/lld/ELF/Writer.cpp: Define("__init_array_start= ", "__init_array_end", Out::InitArray); /usr/src/contrib/binutils/ld/scripttempl/elf.sc:=20=20=20=20 ${RELOCATING+${CREATE_SHLIB-PROVIDE_HIDDEN (${USER_LABEL_PREFIX}__init_array_start =3D .);}} /usr/src/contrib/binutils/ld/ChangeLog-2006: (__preinit_array_start, __preinit_array_end, __init_array_start, /usr/src/lib/csu/common/ignore_init.c:extern void (*__init_array_start[])(i= nt, char **, char **) __hidden; /usr/src/lib/csu/common/ignore_init.c: array_size =3D __init_array_end - __init_array_start; /usr/src/lib/csu/common/ignore_init.c: fn =3D __init_array_start[n= ]; /usr/src/sys/conf/ldscript.amd64: PROVIDE_HIDDEN (__init_array_start = =3D .); /usr/src/sys/conf/ldscript.i386: PROVIDE_HIDDEN (__init_array_start =3D= .); /usr/src/sys/contrib/octeon-sdk/cvmx-shared-linux-o32.ld: PROVIDE (__init_array_start =3D .); /usr/src/sys/contrib/octeon-sdk/cvmx-shared-linux.ld: PROVIDE_HIDDEN (__init_array_start =3D .); /usr/src/sys/contrib/octeon-sdk/cvmx-shared-linux-n32.ld: PROVIDE_HIDDEN (__init_array_start =3D .); Note the ldscript.* are limited to amd64 and i386 mentioning __init_array_start explicitly. The whole block of text: .preinit_array : { PROVIDE_HIDDEN (__preinit_array_start =3D .); KEEP (*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end =3D .); } .init_array : { PROVIDE_HIDDEN (__init_array_start =3D .); KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array)) PROVIDE_HIDDEN (__init_array_end =3D .); } .fini_array : { PROVIDE_HIDDEN (__fini_array_start =3D .); KEEP (*(.fini_array)) KEEP (*(SORT(.fini_array.*))) PROVIDE_HIDDEN (__fini_array_end =3D .); } seems to only to be for those two ldscript.*'s. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 01:05:35 2017 Return-Path: Delivered-To: freebsd-toolchain@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 4D976DDC0C7 for ; Mon, 20 Nov 2017 01:05:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 3B9486A073 for ; Mon, 20 Nov 2017 01:05:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK15ZQr099707 for ; Mon, 20 Nov 2017 01:05:35 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 01:05:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dimitri.staessens@ugent.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 01:05:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #12 from dstaesse --- (In reply to Mark Millard from comment #11) Interesting. Doesn't the list of func_ptrs have the arguments here as well? /usr/src/lib/csu/common/ignore_init.c:extern void (*__init_array_start[])(i= nt, char **, char **) __hidden; --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 01:09:56 2017 Return-Path: Delivered-To: freebsd-toolchain@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 EBF17DDC3E3 for ; Mon, 20 Nov 2017 01:09:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 DA3F66A17E for ; Mon, 20 Nov 2017 01:09:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK19uTe005035 for ; Mon, 20 Nov 2017 01:09:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 01:09:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 01:09:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #13 from Mark Millard --- (In reply to dstaesse from comment #10) The materials that you have referenced indicate that __attribute__ ((constructor)) gets no arguments. Details follow. >From the materials you referenced: QUOTE The .preinit_array and .init_array sections must contain function pointers = (NOT code!) The prototype of these functions must be void func(int argc,char** argv,char** envp) __libc_csu_init execute them in the following order: Function pointers in .preinit_array section Functions marked as __attribute__ ((constructor)), via _init Function pointers in .init_array section END QUOTE Note that __attribute__ ((constructor)) is not for the *init_array usage, just for usage inside _init . And from the elf-init.c that you listed: #ifndef NO_INITFINI _init (); #endif has no arguments. So, __attribute__ ((constructor)) routines are called form a context not explicitly having the erguments available. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 01:17:42 2017 Return-Path: Delivered-To: freebsd-toolchain@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 7C49DDDC954 for ; Mon, 20 Nov 2017 01:17:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 6A64E6A534 for ; Mon, 20 Nov 2017 01:17:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK1Hgtp022853 for ; Mon, 20 Nov 2017 01:17:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 01:17:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 01:17:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #14 from Mark Millard --- (In reply to Mark Millard from comment #13) Beyond my "form" vs "from" typo and "erguments" vs. "arguments" typo, I probably also should have put the word "called" in quotes: the __attribute__ ((constructor)) routines might end up inlined in the proper sequence for all I know. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 01:47:00 2017 Return-Path: Delivered-To: freebsd-toolchain@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 C06F2DDD182 for ; Mon, 20 Nov 2017 01:47:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 A33EF6B1B6 for ; Mon, 20 Nov 2017 01:47:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK1l05J089163 for ; Mon, 20 Nov 2017 01:47:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 01:47:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dimitri.staessens@ugent.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 01:47:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #15 from dstaesse --- Created attachment 188130 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188130&action= =3Dedit updated library code --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 01:48:44 2017 Return-Path: Delivered-To: freebsd-toolchain@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 6C403DDD1FA for ; Mon, 20 Nov 2017 01:48:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 5A8436B23C for ; Mon, 20 Nov 2017 01:48:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK1mi92091221 for ; Mon, 20 Nov 2017 01:48:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 01:48:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dimitri.staessens@ugent.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 01:48:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #16 from dstaesse --- Your comments make a lot of sense. I updated the library code to call the functions in the .init_array and .fini_array, and it looks like this works = for our testcases. This is probably the answer I was looking for. Thanks a million! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 01:59:10 2017 Return-Path: Delivered-To: freebsd-toolchain@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 0551FDDD59A for ; Mon, 20 Nov 2017 01:59:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 E77AA6B663 for ; Mon, 20 Nov 2017 01:59:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK1x9mX014279 for ; Mon, 20 Nov 2017 01:59:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 01:59:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 01:59:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #17 from Mark Millard --- (In reply to dstaesse from comment #16) You may be limited to amd64 and i386 for FreeBSD: it does not appear that the other ABIs have .init_array and .fini_array support. It sounds like 223752 can be closed as "works as intended" either way. (Not something I can do.) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 02:20:27 2017 Return-Path: Delivered-To: freebsd-toolchain@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 3B325DDDD59 for ; Mon, 20 Nov 2017 02:20:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 294266C03E for ; Mon, 20 Nov 2017 02:20:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK2KQ8H043148 for ; Mon, 20 Nov 2017 02:20:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 02:20:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dimitri.staessens@ugent.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 02:20:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #18 from dstaesse --- Yes, but at least it's not undefined behaviour. Thanks again for your help! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 02:47:36 2017 Return-Path: Delivered-To: freebsd-toolchain@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 D06BCDDE9BA for ; Mon, 20 Nov 2017 02:47:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 BEA646CD05 for ; Mon, 20 Nov 2017 02:47:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK2laAx046957 for ; Mon, 20 Nov 2017 02:47:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 02:47:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 02:47:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #19 from Mark Millard --- (In reply to dstaesse from comment #18) You are welcome. My guess is that this is outside POSIX completely and is just ABI material for what you are doing. In fact, looking around I found an ARM document indicating an empty parameter list for its .init_array context: Each translation unit provides a fragment of the constructor vector in an = ELF section called .init_array of type SHT_INIT_ARRAY (=3D0xE) and section flags SHF_ALLOC + SHF_WRITE. Each element of the vector contains the address of a function of type exte= rn =E2=80=9CC=E2=80=9D void (* const)(void) that, when called, performs part o= r all of the global object construction for the translation unit. Producers must treat .init_ar= ray sections as if they were read-only. ( http://infocenter.arm.com/help/topic/com.arm.doc.ihi0041e/IHI0041E_cppabi= .pdf page 19 of 24.) So, not portable across all ABIs that have .init_array . --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 07:57:42 2017 Return-Path: Delivered-To: freebsd-toolchain@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 A3B7CDE4805 for ; Mon, 20 Nov 2017 07:57:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 8430D7491D for ; Mon, 20 Nov 2017 07:57:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAK7vfi9097472 for ; Mon, 20 Nov 2017 07:57:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 07:57:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 07:57:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |Works As Intended --- Comment #20 from Dimitry Andric --- Unfortunately, as you both point out, the exact signature of C constructors= and destructors is not explicitly documented. However, glibc calls them without any arguments, and ignores the return value: https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Delf/soinit.c;h=3Dfe9= 935732b2dcc3d71b5c0f2e52c32efc642d160;hb=3DHEAD#l20 and all its test cases and examples use void func(void). --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 10:15:51 2017 Return-Path: Delivered-To: freebsd-toolchain@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 7C532DE749C for ; Mon, 20 Nov 2017 10:15:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 6A099786C6 for ; Mon, 20 Nov 2017 10:15:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAKAFoKn066689 for ; Mon, 20 Nov 2017 10:15:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223752] clang __attribute__((constructor)) gets wrong input parameters Date: Mon, 20 Nov 2017 10:15:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: theraven@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 10:15:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223752 --- Comment #21 from David Chisnall --- It's also worth noting that functions declared with this attribute can have some complex interaction with threading. If a process spawns a thread which calls `dlopen` then all of the library's constructors will be called in that thread. At this point, it's not clear whether the run-time linker will even have access to the arguments that you want. It's also not clear what `envp` should be (the current environment, or the environment from process creation time?) I believe glibc provides an `__arguments` variable, along the same lines as `__environ`, which allows the process to get access to the arguments from arbitrary points in the code. Implementing something like this would proba= bly be the best solution for this use case. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 23:32:42 2017 Return-Path: Delivered-To: freebsd-toolchain@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 2BD56D94042 for ; Mon, 20 Nov 2017 23:32:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 193CA724F2 for ; Mon, 20 Nov 2017 23:32:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAKNWfcU029221 for ; Mon, 20 Nov 2017 23:32:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223776] ports-mgmt/pkg: lld confuses shared library tracking Date: Mon, 20 Nov 2017 23:32:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 23:32:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223776 Bug ID: 223776 Summary: ports-mgmt/pkg: lld confuses shared library tracking Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: freebsd-toolchain@FreeBSD.org Flags: maintainer-feedback?(pkg@FreeBSD.org) Assignee: pkg@FreeBSD.org $ ld.lld -V LLD 5.0.0 (FreeBSD 312559) (compatible with GNU linkers) $ pkg -v 1.10.2 $ pkg install firefox mesa-dri $ pkg delete -f glib $ ln -fs ld.lld /usr/bin/ld $ make install -C /usr/ports/devel/glib20 $ pkg check -d Checking all packages: 100% at-spi2-atk is missing a required shared library: libgobject-2.0.so.0 at-spi2-atk is missing a required shared library: libgmodule-2.0.so.0 at-spi2-core is missing a required shared library: libgobject-2.0.so.0 at-spi2-core is missing a required shared library: libgio-2.0.so.0 atk is missing a required shared library: libgobject-2.0.so.0 avahi-app is missing a required shared library: libgobject-2.0.so.0 cairo is missing a required shared library: libgobject-2.0.so.0 colord is missing a required shared library: libgobject-2.0.so.0 colord is missing a required shared library: libgmodule-2.0.so.0 colord is missing a required shared library: libgthread-2.0.so.0 colord is missing a required shared library: libgio-2.0.so.0 dbus-glib is missing a required shared library: libgobject-2.0.so.0 dbus-glib is missing a required shared library: libgio-2.0.so.0 firefox is missing a required shared library: libgio-2.0.so.0 firefox is missing a required shared library: libgobject-2.0.so.0 gdk-pixbuf2 is missing a required shared library: libgobject-2.0.so.0 gdk-pixbuf2 is missing a required shared library: libgmodule-2.0.so.0 gdk-pixbuf2 is missing a required shared library: libgio-2.0.so.0 gobject-introspection is missing a required shared library: libgobject-2.0.= so.0 gobject-introspection is missing a required shared library: libgio-2.0.so.0 gobject-introspection is missing a required shared library: libgmodule-2.0.= so.0 gtk-update-icon-cache is missing a required shared library: libgobject-2.0.= so.0 gtk2 is missing a required shared library: libgobject-2.0.so.0 gtk2 is missing a required shared library: libgmodule-2.0.so.0 gtk2 is missing a required shared library: libgio-2.0.so.0 gtk3 is missing a required shared library: libgmodule-2.0.so.0 gtk3 is missing a required shared library: libgio-2.0.so.0 gtk3 is missing a required shared library: libgobject-2.0.so.0 harfbuzz is missing a required shared library: libgobject-2.0.so.0 pango is missing a required shared library: libgobject-2.0.so.0 pango is missing a required shared library: libgthread-2.0.so.0 polkit is missing a required shared library: libgobject-2.0.so.0 polkit is missing a required shared library: libgmodule-2.0.so.0 polkit is missing a required shared library: libgio-2.0.so.0 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Nov 20 23:33:25 2017 Return-Path: Delivered-To: freebsd-toolchain@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 EB492D940FC for ; Mon, 20 Nov 2017 23:33:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 D9346725A6 for ; Mon, 20 Nov 2017 23:33:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAKNXPag030219 for ; Mon, 20 Nov 2017 23:33:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223776] ports-mgmt/pkg: lld confuses shared library tracking Date: Mon, 20 Nov 2017 23:33:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: blocked Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 23:33:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223776 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |214864 Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214864 [Bug 214864] [exp-run] test build with lld as /usr/bin/ld --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Nov 21 00:22:49 2017 Return-Path: Delivered-To: freebsd-toolchain@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 BEE15DB8959 for ; Tue, 21 Nov 2017 00:22:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 AC4F173F9C for ; Tue, 21 Nov 2017 00:22:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAL0MnNj081798 for ; Tue, 21 Nov 2017 00:22:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223776] ports-mgmt/pkg: lld confuses shared library tracking Date: Tue, 21 Nov 2017 00:22:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tobik@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_severity cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 00:22:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223776 Tobias Kortkamp changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Affects Only Me |Affects Some People CC| |tobik@freebsd.org --- Comment #1 from Tobias Kortkamp --- I get this too. The packages seem to miss shlibs_provided in their manifests. I've built an entire package set with lld as the default linker. This lead to weird results when running pkg upgrade or even pkg install. E.g. on my notebook pkg insisted on always installing nvidia-driver on every pkg install. I'm assuming this was because pkg thinks it is the only provider for libGL.so.1. pkg check -d output is also pretty scary. I switched back to ld.bfd and the problem is gone. Weirdly enough this didn't affect all packages but only some like e.g. mesa-libs, qt5-widgets, qt5-gui, libressl, libevent, readline, ... --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Nov 21 06:25:03 2017 Return-Path: Delivered-To: freebsd-toolchain@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 ACAA1DE4286 for ; Tue, 21 Nov 2017 06:25:03 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-149.reflexion.net [208.70.210.149]) (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 469F51E2E for ; Tue, 21 Nov 2017 06:25:02 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 9357 invoked from network); 21 Nov 2017 06:18:16 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 21 Nov 2017 06:18:16 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Tue, 21 Nov 2017 01:18:16 -0500 (EST) Received: (qmail 9115 invoked from network); 21 Nov 2017 06:18:16 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 21 Nov 2017 06:18:16 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id D1508EC7E18; Mon, 20 Nov 2017 22:18:15 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Alternative to using system binutils for cross builds targeting 32-bit powerpc? Message-Id: Date: Mon, 20 Nov 2017 22:18:15 -0800 To: FreeBSD PowerPC ML , FreeBSD Toolchain , freebsd-hackers X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 06:25:03 -0000 [I tend to experiment with using clang to target powerpc64 and powerpc, reporting things that I find.] [clang 5 generates R_PPC_PLTREL24 in the .o files for global symbols in places gcc 4.2.1 generates R_PPC_ADDR16_HA / R_PPC_ADDR16_LO pairs.] Trying to cross build the 32-bit powerpc kernel with the system clang 5 gets failures like: --- aha.ko.full --- ld: aha.kld(.text+0x2b8c): R_PPC_PLTREL24 reloc against local symbol aha.kld: could not read symbols: Bad value *** [aha.ko.full] Error code 1 Would an alternate binutils handle it? There is no devel/powerpc-binutils (but there is devel/powerpc64-binutils ). Does someone known a way to use an alternate binutils to target 32-bit powerpc? As stands it looks like I can only experiment with self-hosted builds and an alternate binutils ( devel/binutils ) as far as pre-existing things go. === Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Tue Nov 21 21:28:48 2017 Return-Path: Delivered-To: freebsd-toolchain@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 0A95EDB824E for ; Tue, 21 Nov 2017 21:28:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 DEA4B80CD4 for ; Tue, 21 Nov 2017 21:28:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vALLSlQK008969 for ; Tue, 21 Nov 2017 21:28:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223776] ports-mgmt/pkg: lld confuses shared library tracking Date: Tue, 21 Nov 2017 21:28:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emaste@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: assigned_to bug_file_loc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 21:28:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223776 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|pkg@FreeBSD.org |emaste@freebsd.org URL| |https://github.com/freebsd/ | |pkg/pull/1636 --- Comment #2 from Ed Maste --- Fix in pull request 1636 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Nov 22 00:47:28 2017 Return-Path: Delivered-To: freebsd-toolchain@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 EA75FDBD866 for ; Wed, 22 Nov 2017 00:47:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 D7C496503F for ; Wed, 22 Nov 2017 00:47:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAM0lSO5008071 for ; Wed, 22 Nov 2017 00:47:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223776] ports-mgmt/pkg: lld confuses shared library tracking Date: Wed, 22 Nov 2017 00:47:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emaste@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2017 00:47:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223776 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Nov 22 03:08:57 2017 Return-Path: Delivered-To: freebsd-toolchain@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 0CF0BDDCD56 for ; Wed, 22 Nov 2017 03:08:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 EE81B68FC0 for ; Wed, 22 Nov 2017 03:08:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAM38u9j032730 for ; Wed, 22 Nov 2017 03:08:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 220233] Clang: Assertion failed: (NextLocalOffset + FileSize + 1 > NextLocalOffset && NextLocalOffset + FileSize + 1 <= CurrentLoadedOffset && "Ran out of source locations!") Date: Wed, 22 Nov 2017 03:08:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2017 03:08:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220233 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Component|gnu |bin CC| |emaste@freebsd.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 04:41:49 2017 Return-Path: Delivered-To: freebsd-toolchain@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 85B71DDB7FC for ; Thu, 23 Nov 2017 04:41:49 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-168.reflexion.net [208.70.210.168]) (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 3919A7B3E7 for ; Thu, 23 Nov 2017 04:41:48 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 20176 invoked from network); 23 Nov 2017 04:41:42 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 23 Nov 2017 04:41:42 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Wed, 22 Nov 2017 23:41:42 -0500 (EST) Received: (qmail 7385 invoked from network); 23 Nov 2017 04:41:42 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 23 Nov 2017 04:41:42 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id BB4F5EC8611; Wed, 22 Nov 2017 20:41:41 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: poudriere-devel -S SRCPATH : no longer supported? (/usr/ports/ -r454407 vintage example) From: Mark Millard In-Reply-To: <39DB21B0-F31B-4B64-8A53-74EB46D5DB0C@dsl-only.net> Date: Wed, 22 Nov 2017 20:41:41 -0800 Cc: FreeBSD Toolchain Content-Transfer-Encoding: 7bit Message-Id: <812FE2F6-A094-49A6-89A3-BE01EE3E1FF3@dsl-only.net> References: <39DB21B0-F31B-4B64-8A53-74EB46D5DB0C@dsl-only.net> To: Bryan Drewery , FreeBSD Ports X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 04:41:49 -0000 [Dumb typo in my } placements.] On 2017-Nov-22, at 8:36 PM, Mark Millard wrote: > As evidence only two lines of jail.sh reference SRCPATH > other than where -S assigns to it: > > # grep "SRCPATH" /usr/local/share/poudriere/jail.sh > [ -z "${SRCPATH}" ] && DISTS="${DISTS} src" > [ -n "$SRCPATH" ] && jset ${JAILNAME} srcpath ${SRCPATH} > SRCPATH=${OPTARG} > > Also, every non-comment instance of /usr/src in jail.sh > is preceded by just ${JAILMNT} or ${SRC_BASE} or by > nothing: > > # grep "\/usr\/src" /usr/local/share/poudriere/jail.sh | more > SRC_BASE="${JAILMNT}/usr/src" > export SRC_BASE=${JAILMNT}/usr/src > # Otherwise it's the older broken one, so use the host /usr/src > : ${XDEV_SRC:=/usr/src} > msg_n "Copying ${SRC_BASE} to ${JAILMNT}/usr/src..." > mkdir -p ${JAILMNT}/usr/src > if [ -f ${SRC_BASE}/usr/src/.cpignore ]; then > cpdup -i0 ${cpignore_flag} ${SRC_BASE} ${JAILMNT}/usr/src > SRC_BASE="${JAILMNT}/usr/src" > > > It leaves me wondering if some notation like: > > ${SRCPATH:-${JAILMNT}}/usr/src ${SRCPATH:-${JAILMNT}/usr/src} > should be in use in some places where > > ${JAILMNT}/usr/src > > is now in use. I'm no so sure that the > analogous is appropriate for the one > example of : > > ${SRC_BASE}/usr/src === Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Thu Nov 23 04:49:28 2017 Return-Path: Delivered-To: freebsd-toolchain@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 37645DDBAD1 for ; Thu, 23 Nov 2017 04:49:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 EC5547B622 for ; Thu, 23 Nov 2017 04:49:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN4nRgM039715 for ; Thu, 23 Nov 2017 04:49:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 04:49:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 04:49:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|sunpoet@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --- Comment #1 from Jan Beich --- The preprocessed source/script doesn't trigger the crash. Maybe toolchain@ knows why. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 04:50:09 2017 Return-Path: Delivered-To: freebsd-toolchain@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 3877BDDBB3F for ; Thu, 23 Nov 2017 04:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 2634C7B65B for ; Thu, 23 Nov 2017 04:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN4o9kU040733 for ; Thu, 23 Nov 2017 04:50:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 04:50:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: rep_platform Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 04:50:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|Any |arm --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 04:58:04 2017 Return-Path: Delivered-To: freebsd-toolchain@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 B5376DDBF31 for ; Thu, 23 Nov 2017 04:58:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 A366F7B990 for ; Thu, 23 Nov 2017 04:58:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN4w4d4059685 for ; Thu, 23 Nov 2017 04:58:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 04:58:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 04:58:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markmi@dsl-only.net --- Comment #2 from Mark Millard --- (In reply to Jan Beich from comment #1) Is the clang crash reproducible? I've had (rather rare) examples of non-reproducable crashes in clang with head -r325997 in an amd64 context --and no reproducible crashes. The same for a couple of system panics out of many buildworld buildkernel sequences. -r325700 which I was at before did not get such things for me. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 05:02:49 2017 Return-Path: Delivered-To: freebsd-toolchain@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 B0362DDC201 for ; Thu, 23 Nov 2017 05:02:49 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-142.reflexion.net [208.70.210.142]) (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 652097BC92 for ; Thu, 23 Nov 2017 05:02:48 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 29545 invoked from network); 23 Nov 2017 04:36:02 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 23 Nov 2017 04:36:02 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Wed, 22 Nov 2017 23:36:02 -0500 (EST) Received: (qmail 19871 invoked from network); 23 Nov 2017 04:36:02 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 23 Nov 2017 04:36:02 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 8F0F7EC814E; Wed, 22 Nov 2017 20:36:01 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: poudriere-devel -S SRCPATH : no longer supported? (/usr/ports/ -r454407 vintage example) Message-Id: <39DB21B0-F31B-4B64-8A53-74EB46D5DB0C@dsl-only.net> Date: Wed, 22 Nov 2017 20:36:00 -0800 Cc: FreeBSD Toolchain To: Bryan Drewery , FreeBSD Ports X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 05:02:49 -0000 As evidence only two lines of jail.sh reference SRCPATH other than where -S assigns to it: # grep "SRCPATH" /usr/local/share/poudriere/jail.sh [ -z "${SRCPATH}" ] && DISTS="${DISTS} src" [ -n "$SRCPATH" ] && jset ${JAILNAME} srcpath ${SRCPATH} SRCPATH=${OPTARG} Also, every non-comment instance of /usr/src in jail.sh is preceded by just ${JAILMNT} or ${SRC_BASE} or by nothing: # grep "\/usr\/src" /usr/local/share/poudriere/jail.sh | more SRC_BASE="${JAILMNT}/usr/src" export SRC_BASE=${JAILMNT}/usr/src # Otherwise it's the older broken one, so use the host /usr/src : ${XDEV_SRC:=/usr/src} msg_n "Copying ${SRC_BASE} to ${JAILMNT}/usr/src..." mkdir -p ${JAILMNT}/usr/src if [ -f ${SRC_BASE}/usr/src/.cpignore ]; then cpdup -i0 ${cpignore_flag} ${SRC_BASE} ${JAILMNT}/usr/src SRC_BASE="${JAILMNT}/usr/src" It leaves me wondering if some notation like: ${SRCPATH:-${JAILMNT}}/usr/src should be in use in some places where ${JAILMNT}/usr/src is now in use. I'm no so sure that the analogous is appropriate for the one example of : ${SRC_BASE}/usr/src === Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Thu Nov 23 05:14:09 2017 Return-Path: Delivered-To: freebsd-toolchain@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 966EBDDC6A7 for ; Thu, 23 Nov 2017 05:14:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 84A117C0FA for ; Thu, 23 Nov 2017 05:14:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN5E9uN005711 for ; Thu, 23 Nov 2017 05:14:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 05:14:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 05:14:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 --- Comment #3 from Jan Beich --- (In reply to Mark Millard from comment #2) Not sure which revision beefy8 tracks but my head-armv6 jail is currently at base r325700. I've jexec'd into poudriere jail to confirm port build vs. cr= ash script difference. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 05:18:16 2017 Return-Path: Delivered-To: freebsd-toolchain@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 0994FDDC7BA for ; Thu, 23 Nov 2017 05:18:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 EBB1B7C16A for ; Thu, 23 Nov 2017 05:18:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN5IFlP011472 for ; Thu, 23 Nov 2017 05:18:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 05:18:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 05:18:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 --- Comment #4 from Jan Beich --- FWIW, head-armv7 from base r325705 isn't affected. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 05:21:56 2017 Return-Path: Delivered-To: freebsd-toolchain@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 5BEE7DDCA1B for ; Thu, 23 Nov 2017 05:21:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 48F347C2F1 for ; Thu, 23 Nov 2017 05:21:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN5LtBP028340 for ; Thu, 23 Nov 2017 05:21:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 05:21:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 05:21:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 --- Comment #5 from Jan Beich --- Created attachment 188201 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188201&action= =3Dedit preprocessed archive (contains several *.c and *.sh file) This is supposedly crashing source. I suspect entropy_common-*.sh misses so= me environment variables that actually trigger the crash. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 05:37:36 2017 Return-Path: Delivered-To: freebsd-toolchain@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 D417EDDD113 for ; Thu, 23 Nov 2017 05:37:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 C207C7C984 for ; Thu, 23 Nov 2017 05:37:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN5bapQ059167 for ; Thu, 23 Nov 2017 05:37:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 05:37:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.isobsolete Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 05:37:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #188201|0 |1 is obsolete| | --- Comment #6 from Jan Beich --- Comment on attachment 188201 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188201 preprocessed archive (contains several *.c and *.sh file) Not related to make(1) or ports(7) environment. Simply running the same com= mand from comment 0 is enough to trigger the crash. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 05:48:20 2017 Return-Path: Delivered-To: freebsd-toolchain@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 D510DDDD8A2 for ; Thu, 23 Nov 2017 05:48:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 B321D7CF2E for ; Thu, 23 Nov 2017 05:48:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN5mKB4084006 for ; Thu, 23 Nov 2017 05:48:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 05:48:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 05:48:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 --- Comment #7 from Jan Beich --- Doesn't crash with -O0. Here're steps to reproduce on -CURRENT for any architecture: $ cd /usr/ports/archivers/zstd $ make clean patch BATCH=3D $ cd `make -V WRKSRC)/programs` $ cc -target armv6-unknown-freebsd12.0-gnueabihf -I../lib -I../lib/common -I../lib/compress -I../lib/dictBuilder -DZSTD_NEWAPI -DXXH_NAMESPACE=3DZSTD= _=20=20=20 -I../lib/legacy -DZSTD_MULTITHREAD -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS -DZSTD_LZMACOMPRESS -DZSTD_LZMADECOMPRESS -DZSTD_LEGACY_SUPPORT=3D4 -O2 ../lib/compress/zstd_compress.c Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function UpdateCPSRUse, file /usr/src/contrib/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp, line 961. cc: error: unable to execute command: Abort trap cc: error: clang frontend command failed due to signal (use -v to see invocation) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Nov 23 05:52:42 2017 Return-Path: Delivered-To: freebsd-toolchain@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 48A7FDDDB93 for ; Thu, 23 Nov 2017 05:52:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 36A137D329 for ; Thu, 23 Nov 2017 05:52:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAN5qg8i003057 for ; Thu, 23 Nov 2017 05:52:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223809] archivers/zstd: clang 5.0 crashes during build Date: Thu, 23 Nov 2017 05:52:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 05:52:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223809 --- Comment #8 from Jan Beich --- > $ cd `make -V WRKSRC)/programs` Sorry for tcsh-style typo: $ cd $(make -V WRKSRC)/programs or $ cd `make -V WRKSRC`/programs --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Nov 24 19:56:03 2017 Return-Path: Delivered-To: freebsd-toolchain@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 4914EDF00D1 for ; Fri, 24 Nov 2017 19:56:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 37CBF32B7 for ; Fri, 24 Nov 2017 19:56:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAOJu2qt021296 for ; Fri, 24 Nov 2017 19:56:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223848] mips64 native-xtools build failure Date: Fri, 24 Nov 2017 19:56:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2017 19:56:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223848 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Nov 25 15:59:16 2017 Return-Path: Delivered-To: freebsd-toolchain@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 F3C84DE8BC0 for ; Sat, 25 Nov 2017 15:59:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 E1609643A9 for ; Sat, 25 Nov 2017 15:59:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vAPFxCCu087962 for ; Sat, 25 Nov 2017 15:59:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222641] www/firefox: OPTIMIZED_CFLAGS=off build fails: libgkrust.a: could not read symbols Date: Sat, 25 Nov 2017 15:59:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mi@ALDAN.algebra.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 15:59:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222641 Mikhail T. changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mi@ALDAN.algebra.com --- Comment #27 from Mikhail T. --- I just had this problem too trying to build 57.0_2,1, and was able to overc= ome it by setting the environment variable COMPILER_PATH to /opt/bin (/opt is w= hat I use for LOCALBASE) and simply rerunning the build -- without cleaning and rebuilding. My options are: # This file is auto-generated by 'make config'. # Options for firefox-57.0_2,1 _OPTIONS_READ=3Dfirefox-57.0_2,1 _FILE_COMPLETE_OPTIONS_LIST=3DBUNDLED_CAIRO CANBERRA DBUS DEBUG DTRACE FFMP= EG GCONF INTEGER_SAMPLES LIBPROXY OPTIMIZED_CFLAGS PROFILE TEST ALSA JACK PULSEAUDIO SNDIO OPTIONS_FILE_UNSET+=3DBUNDLED_CAIRO OPTIONS_FILE_UNSET+=3DCANBERRA OPTIONS_FILE_SET+=3DDBUS OPTIONS_FILE_UNSET+=3DDEBUG OPTIONS_FILE_UNSET+=3DDTRACE OPTIONS_FILE_SET+=3DFFMPEG OPTIONS_FILE_UNSET+=3DGCONF OPTIONS_FILE_UNSET+=3DINTEGER_SAMPLES OPTIONS_FILE_UNSET+=3DLIBPROXY OPTIONS_FILE_UNSET+=3DOPTIMIZED_CFLAGS OPTIONS_FILE_UNSET+=3DPROFILE OPTIONS_FILE_UNSET+=3DTEST OPTIONS_FILE_SET+=3DALSA OPTIONS_FILE_UNSET+=3DJACK OPTIONS_FILE_UNSET+=3DPULSEAUDIO OPTIONS_FILE_UNSET+=3DSNDIO --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Nov 25 20:02:51 2017 Return-Path: Delivered-To: freebsd-toolchain@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 86D44DEEA25 for ; Sat, 25 Nov 2017 20:02:51 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-148.reflexion.net [208.70.210.148]) (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 44ADF6C2D3 for ; Sat, 25 Nov 2017 20:02:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 23940 invoked from network); 25 Nov 2017 20:02:43 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 25 Nov 2017 20:02:43 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Sat, 25 Nov 2017 15:02:43 -0500 (EST) Received: (qmail 21091 invoked from network); 25 Nov 2017 20:02:43 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 25 Nov 2017 20:02:43 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 81A12EC8B7B; Sat, 25 Nov 2017 12:02:42 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: head -r326193 (e.g.) buildworld broken: rejecting some . . ./usr/src/amd64.amd64/tmp/usr/include/stdio.h content Message-Id: <5E1C6F4E-C573-4B99-AF96-FCB756B0A75B@dsl-only.net> Date: Sat, 25 Nov 2017 12:02:41 -0800 To: FreeBSD Toolchain , FreeBSD Current X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 20:02:51 -0000 For example, = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:449:47: error: function definition is not allowed here static __inline int __sputc(int _c, FILE *_p) { for: /* * The __sfoo macros are here so that we can * define function versions in the C library. */ #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) #if defined(__GNUC__) && defined(__STDC__) static __inline int __sputc(int _c, FILE *_p) { if (--_p->_w >=3D 0 || (_p->_w >=3D _p->_lbfsize && (char)_c !=3D = '\n')) return (*_p->_p++ =3D _c); else return (__swbuf(_c, _p)); } #else /* * This has been tuned to generate reasonable code on the vax using pcc. */ #define __sputc(c, p) \ (--(p)->_w < 0 ? \ (p)->_w >=3D (p)->_lbfsize ? \ (*(p)->_p =3D (c)), *(p)->_p !=3D '\n' ? \ (int)*(p)->_p++ : \ __swbuf('\n', p) : \ __swbuf((int)(c), p) : \ (*(p)->_p =3D (c), (int)*(p)->_p++)) #endif More of the prefix of the messages: --- var.o --- In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histe= dit.h:48: = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:255:6: warning: declaration of built-in function 'fprintf' requires = inclusion of the header [-Wbuiltin-requires-header] int fprintf(FILE * __restrict, const char * __restrict, ...); ^ = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:260:6: warning: declaration of built-in function 'fscanf' requires = inclusion of the header [-Wbuiltin-requires-header] int fscanf(FILE * __restrict, const char * __restrict, ...); ^ --- csh_make --- Building = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/rescue/rescue/usr/src= /bin/csh/sh.init.o --- sh_make --- = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:284:6: warning: declaration of built-in function 'vfprintf' requires = inclusion of the header [-Wbuiltin-requires-header] int vfprintf(FILE * __restrict, const char * __restrict, ^ = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:293:6: warning: declaration of built-in function 'vfscanf' requires = inclusion of the header [-Wbuiltin-requires-header] int vfscanf(FILE * __restrict, const char * __restrict, __va_list) ^ = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:449:47: error: function definition is not allowed here static __inline int __sputc(int _c, FILE *_p) { ^ In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histe= dit.h:254: In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar= .h:69: In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctyp= e.h:97: = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/runet= ype.h:96:1: error: function definition is not allowed here { ^ In file included from /usr/src/bin/sh/var.c:70: In file included from /usr/src/bin/sh/myhistedit.h:35: In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histe= dit.h:254: In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar= .h:69: = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctyp= e.h:101:1: error: function definition is not allowed here { ^ . . . (much omitted) . . . =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Sat Nov 25 20:15:56 2017 Return-Path: Delivered-To: freebsd-toolchain@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 C056FDEF083 for ; Sat, 25 Nov 2017 20:15:56 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-136.reflexion.net [208.70.210.136]) (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 7E5386CBFB for ; Sat, 25 Nov 2017 20:15:55 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 23932 invoked from network); 25 Nov 2017 20:15:49 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 25 Nov 2017 20:15:49 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Sat, 25 Nov 2017 15:15:49 -0500 (EST) Received: (qmail 23057 invoked from network); 25 Nov 2017 20:15:49 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 25 Nov 2017 20:15:49 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id C4A4EEC8B7B; Sat, 25 Nov 2017 12:15:48 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: head -r326193 (e.g.) buildworld broken: rejecting some . . ./usr/src/amd64.amd64/tmp/usr/include/stdio.h content From: Mark Millard In-Reply-To: <5E1C6F4E-C573-4B99-AF96-FCB756B0A75B@dsl-only.net> Date: Sat, 25 Nov 2017 12:15:48 -0800 Cc: FreeBSD Toolchain , FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: <5D3C8011-1B5F-45CB-8390-9A6E9862FB47@dsl-only.net> References: <5E1C6F4E-C573-4B99-AF96-FCB756B0A75B@dsl-only.net> To: Pedro Giffuni X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 20:15:56 -0000 [Quick top post:] Reverting to -r326192 and rebuilding avoided the issue. =20 Prior notes: On 2017-Nov-25, at 12:02 PM, Mark Millard = wrote: > For example, >=20 > = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:449:47: error: function definition is not allowed here > static __inline int __sputc(int _c, FILE *_p) { >=20 > for: >=20 > /* > * The __sfoo macros are here so that we can > * define function versions in the C library. > */ > #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) > #if defined(__GNUC__) && defined(__STDC__) > static __inline int __sputc(int _c, FILE *_p) { > if (--_p->_w >=3D 0 || (_p->_w >=3D _p->_lbfsize && (char)_c !=3D= '\n')) > return (*_p->_p++ =3D _c); > else > return (__swbuf(_c, _p)); > } > #else > /* > * This has been tuned to generate reasonable code on the vax using = pcc. > */ > #define __sputc(c, p) \ > (--(p)->_w < 0 ? \ > (p)->_w >=3D (p)->_lbfsize ? \ > (*(p)->_p =3D (c)), *(p)->_p !=3D '\n' ? \ > (int)*(p)->_p++ : \ > __swbuf('\n', p) : \ > __swbuf((int)(c), p) : \ > (*(p)->_p =3D (c), (int)*(p)->_p++)) > #endif >=20 >=20 >=20 > More of the prefix of the messages: >=20 >=20 >=20 > --- var.o --- > In file included from /usr/src/bin/sh/var.c:70: > In file included from /usr/src/bin/sh/myhistedit.h:35: > In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histe= dit.h:48: > = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:255:6: warning: declaration of built-in function 'fprintf' requires = inclusion of the header [-Wbuiltin-requires-header] > int fprintf(FILE * __restrict, const char * __restrict, ...); > ^ > = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:260:6: warning: declaration of built-in function 'fscanf' requires = inclusion of the header [-Wbuiltin-requires-header] > int fscanf(FILE * __restrict, const char * __restrict, ...); > ^ > --- csh_make --- > Building = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/rescue/rescue/usr/src= /bin/csh/sh.init.o > --- sh_make --- > = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:284:6: warning: declaration of built-in function 'vfprintf' requires = inclusion of the header [-Wbuiltin-requires-header] > int vfprintf(FILE * __restrict, const char * __restrict, > ^ > = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:293:6: warning: declaration of built-in function 'vfscanf' requires = inclusion of the header [-Wbuiltin-requires-header] > int vfscanf(FILE * __restrict, const char * __restrict, = __va_list) > ^ > = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio= .h:449:47: error: function definition is not allowed here > static __inline int __sputc(int _c, FILE *_p) { > ^ > In file included from /usr/src/bin/sh/var.c:70: > In file included from /usr/src/bin/sh/myhistedit.h:35: > In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histe= dit.h:254: > In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar= .h:69: > In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctyp= e.h:97: > = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/runet= ype.h:96:1: error: function definition is not allowed here > { > ^ > In file included from /usr/src/bin/sh/var.c:70: > In file included from /usr/src/bin/sh/myhistedit.h:35: > In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histe= dit.h:254: > In file included from = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar= .h:69: > = /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctyp= e.h:101:1: error: function definition is not allowed here > { > ^ > . . . (much omitted) . . . =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Sat Nov 25 20:28:39 2017 Return-Path: Delivered-To: freebsd-toolchain@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 86521DEF450 for ; Sat, 25 Nov 2017 20:28:39 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic311-36.consmr.mail.ne1.yahoo.com (sonic311-36.consmr.mail.ne1.yahoo.com [66.163.188.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 542C66D23A for ; Sat, 25 Nov 2017 20:28:38 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1511641717; bh=0OqPM2ZVPNhkalsRbtVXYxBgY456qZgewn2C9UQi9rY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=sz2cyNYR2C1B2+M3VZc50hw9U+vU/AQCJ7mu8YvI75aa6EgzJOTj46Y4exz5WbkICS+JSgqfavlXFiAKsmTEIXTw+2dX5ghZxU5MXyAY+XTpiUJQmZEXGeI5gXDYgK1wbsukj48I98vuxYUj3yLOPiWYzJ4klHolKSOHYB8TX5ZC/6NSorhPprQBOhuSIkkjOEneAQAgQQX/Ua+/56mg4O/1cHJvY/ic7fBPFAc1jMzGeYuX5XTucn1GzR6pmwKTyodsAjApMAUMEVhznIPmimUK0xNYER2fSZDXZ3fUtyYil+e0VVIqym9qwhok5mJ99eQCucSSnvuRADzwyD/R6w== X-YMail-OSG: T02lxHQVM1mlEkr8y22W2zuJMGSOBLbJi24n4l1fkObBlqTDfJPUojtAKth.wa0 2KiUB5bX__d7G2j8kmgZCH24TKL7Hv0TP6MZ3OZUMCQH.LJr8lprrndmLt7oqWWXtLHiHEO3UWRO 2Uh.D8oedPR9HxLhKCGRlFnjW39pJ8KClJ6aM2rvSdNc66zoDSywKJ83MuDn7Xylgn9MLhXZQ1ps WS8yrh.oPUFwUFXKPjS5UhqK2Ao4wuPXT3u7MMLnAytt77SJX50NMRPTijh9xjxZUNnItiEquKRs Ob.T.4Dbb5csyL.SdbY7RaKjIhydkHA7aXohtGkqingL50tBEr6R3wEOjAikG_Xpm2sJsAu6mXWZ GoZvqCY.CNTUfRMGLEiUfXsb4A1GQx8iKC4lu0E0fkcZg8lfv1ik4g4dlh4vYVbIl63fwuDCq39V 5qCR.QrkhJZr5BeDna79CiRU8TRufLuvqEev1iPU3TpxJu5gwKLvlrU98bcZojHD4_jJGUevQt6m FDdMvse86JARUgAnNy2chkOJePEkDRyyquqXhe5K6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sat, 25 Nov 2017 20:28:37 +0000 Received: from [127.0.0.1] by smtp207.mail.ne1.yahoo.com with NNFMP; 25 Nov 2017 20:28:35 -0000 X-Yahoo-Newman-Id: 967115.2630.bm@smtp207.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: T02lxHQVM1mlEkr8y22W2zuJMGSOBLbJi24n4l1fkObBlqT DfJPUojtAKth.wa02KiUB5bX__d7G2j8kmgZCH24TKL7Hv0TP6MZ3OZUMCQH .LJr8lprrndmLt7oqWWXtLHiHEO3UWRO2Uh.D8oedPR9HxLhKCGRlFnjW39p J8KClJ6aM2rvSdNc66zoDSywKJ83MuDn7Xylgn9MLhXZQ1psWS8yrh.oPUFw UFXKPjS5UhqK2Ao4wuPXT3u7MMLnAytt77SJX50NMRPTijh9xjxZUNnItiEq uKRsOb.T.4Dbb5csyL.SdbY7RaKjIhydkHA7aXohtGkqingL50tBEr6R3wEO jAikG_Xpm2sJsAu6mXWZGoZvqCY.CNTUfRMGLEiUfXsb4A1GQx8iKC4lu0E0 fkcZg8lfv1ik4g4dlh4vYVbIl63fwuDCq39V5qCR.QrkhJZr5BeDna79CiRU 8TRufLuvqEev1iPU3TpxJu5gwKLvlrU98bcZojHD4_jJGUevQt6mFDdMvse8 6JARUgAnNy2chkOJePEkDRyyquqXhe5K6 X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Subject: Re: head -r326193 (e.g.) buildworld broken: rejecting some . . ./usr/src/amd64.amd64/tmp/usr/include/stdio.h content To: Mark Millard Cc: FreeBSD Toolchain , FreeBSD Current References: <5E1C6F4E-C573-4B99-AF96-FCB756B0A75B@dsl-only.net> <5D3C8011-1B5F-45CB-8390-9A6E9862FB47@dsl-only.net> From: Pedro Giffuni Message-ID: <79bca8ee-7961-8e51-10bd-a65154ecd430@FreeBSD.org> Date: Sat, 25 Nov 2017 15:28:36 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <5D3C8011-1B5F-45CB-8390-9A6E9862FB47@dsl-only.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 20:28:39 -0000 Thank you for the report ... On 11/25/17 15:15, Mark Millard wrote: > [Quick top post:] > > Reverting to -r326192 and rebuilding avoided the issue. > > Prior notes: > > On 2017-Nov-25, at 12:02 PM, Mark Millard wrote: > >> For example, >> >> /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:449:47: error: function definition is not allowed here >> static __inline int __sputc(int _c, FILE *_p) { >> >> for: >> >> /* >> * The __sfoo macros are here so that we can >> * define function versions in the C library. >> */ >> #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) >> #if defined(__GNUC__) && defined(__STDC__) >> static __inline int __sputc(int _c, FILE *_p) { >> if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) >> return (*_p->_p++ = _c); >> else >> return (__swbuf(_c, _p)); >> } >> #else >> /* >> * This has been tuned to generate reasonable code on the vax using pcc. >> */ >> #define __sputc(c, p) \ >> (--(p)->_w < 0 ? \ >> (p)->_w >= (p)->_lbfsize ? \ >> (*(p)->_p = (c)), *(p)->_p != '\n' ? \ >> (int)*(p)->_p++ : \ >> __swbuf('\n', p) : \ >> __swbuf((int)(c), p) : \ >> (*(p)->_p = (c), (int)*(p)->_p++)) >> #endif >> >> >> >> More of the prefix of the messages: >> >> >> >> --- var.o --- >> In file included from /usr/src/bin/sh/var.c:70: >> In file included from /usr/src/bin/sh/myhistedit.h:35: >> In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:48: >> /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:255:6: warning: declaration of built-in function 'fprintf' requires inclusion of the header [-Wbuiltin-requires-header] >> int fprintf(FILE * __restrict, const char * __restrict, ...); >> ^ >> /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:260:6: warning: declaration of built-in function 'fscanf' requires inclusion of the header [-Wbuiltin-requires-header] >> int fscanf(FILE * __restrict, const char * __restrict, ...); >> ^ >> --- csh_make --- >> Building /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/rescue/rescue/usr/src/bin/csh/sh.init.o >> --- sh_make --- >> /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:284:6: warning: declaration of built-in function 'vfprintf' requires inclusion of the header [-Wbuiltin-requires-header] >> int vfprintf(FILE * __restrict, const char * __restrict, >> ^ >> /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:293:6: warning: declaration of built-in function 'vfscanf' requires inclusion of the header [-Wbuiltin-requires-header] >> int vfscanf(FILE * __restrict, const char * __restrict, __va_list) >> ^ >> /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/stdio.h:449:47: error: function definition is not allowed here >> static __inline int __sputc(int _c, FILE *_p) { >> ^ >> In file included from /usr/src/bin/sh/var.c:70: >> In file included from /usr/src/bin/sh/myhistedit.h:35: >> In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:254: >> In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar.h:69: >> In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctype.h:97: >> /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/runetype.h:96:1: error: function definition is not allowed here >> { >> ^ >> In file included from /usr/src/bin/sh/var.c:70: >> In file included from /usr/src/bin/sh/myhistedit.h:35: >> In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/histedit.h:254: >> In file included from /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/wchar.h:69: >> /usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/include/_ctype.h:101:1: error: function definition is not allowed here >> { >> ^ >> . . . (much omitted) . . . I can't reproduce it ... I have been running tinderbox builds with the changes for a while. Jenkins wasn't affected either: https://ci.freebsd.org/job/FreeBSD-head-amd64-build/6040/ I have seen problems on arm with zstd though. Pedro. From owner-freebsd-toolchain@freebsd.org Sat Nov 25 21:10:18 2017 Return-Path: Delivered-To: freebsd-toolchain@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 C3A64DF02AC for ; Sat, 25 Nov 2017 21:10:18 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic311-36.consmr.mail.ne1.yahoo.com (sonic311-36.consmr.mail.ne1.yahoo.com [66.163.188.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 85E856E95C for ; Sat, 25 Nov 2017 21:10:18 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1511644216; bh=MFQyhm/Z6TwvgOSSwDm5VaFI/21sth4/JgbHH4MVITg=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From:Subject; b=WT8s1Leb+uwG2DbqiLUasOZYxE/h0w/7puVRBSRjMuZ6E+I+28G4VOdQD6B3Dc+chP+vdxazdjs3Jsm4YJshdOiBjeIQqz4UZFPxQUstYLb7rU+hhRULknmzgGFqOqqCoFFxfl0s8Ce7gK/biDZOui97Fs1ZBz9kArDD42FoiWgMpfhaE/VVzObLthoVhNfUjrRpmQnPIIDcqfJSnI4hrJdsgNxPUHW7Fk1jN78ROFJYVInU7NLFcK0n46WN9/zBk56LjS3LuB9wgH8M1Zki3HSW1SlHsh15z3OBGUPAUD0i2UemQxAyEPMM/Dm3qazWvGGGMO7NO4lKkYAt2wM6Cw== X-YMail-OSG: 6wVkQRUVM1mqrHX1Qch1o67bkcnZwL8kDxYR6IAHMpMAPc914WthaGBGLodkhAq Cy5vFl0ZYU.XI46CreycSUwdztYQXxVEwfEMQCOB5lEww4tBar228.VT6imnGReUBXefxdAihqAI wQU3Ar8sCARR3U76TH.dboqvEOBw1gQj5KSSBPbDV3oqjNMQBg0doWaSqs.2xgQDa2NCXYAPYFri HBC1derTyTonRD7MZCuT6mCJ2yxbxbzgoEyfvRDhDDToexsP8FKQNrYYVEgKOvYqRVZd0byWBkNB tA.Qb8vPoW.BgMHevS2dcm_CUv.6.NLaHmxS0rJT4dCn9oKaUlJFjZK23OcjNVf7gn1z09w3KFRu h7F.6cKcZsn2db3zQ2oSxdfcgrtZ0OMKEfwRtQ1tPm53RE7yhRDI5Vq_Et0rGP3rpBcpNb9cNtPz phdWLoG5Lhf0iwuz3lmp1cIdeeF834oCZr.KcYQKyoPUPCZ8uBAo92QcaShJzNEBz5E7Uzq5yvCh iEaPNmxHLckSfCF5TEG1V1BCTEZ5914PHCOdB5q4M Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sat, 25 Nov 2017 21:10:16 +0000 Received: from [127.0.0.1] by smtp219.mail.ne1.yahoo.com with NNFMP; 25 Nov 2017 21:10:13 -0000 X-Yahoo-Newman-Id: 587411.48927.bm@smtp219.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6wVkQRUVM1mqrHX1Qch1o67bkcnZwL8kDxYR6IAHMpMAPc9 14WthaGBGLodkhAqCy5vFl0ZYU.XI46CreycSUwdztYQXxVEwfEMQCOB5lEw w4tBar228.VT6imnGReUBXefxdAihqAIwQU3Ar8sCARR3U76TH.dboqvEOBw 1gQj5KSSBPbDV3oqjNMQBg0doWaSqs.2xgQDa2NCXYAPYFriHBC1derTyTon RD7MZCuT6mCJ2yxbxbzgoEyfvRDhDDToexsP8FKQNrYYVEgKOvYqRVZd0byW BkNBtA.Qb8vPoW.BgMHevS2dcm_CUv.6.NLaHmxS0rJT4dCn9oKaUlJFjZK2 3OcjNVf7gn1z09w3KFRuh7F.6cKcZsn2db3zQ2oSxdfcgrtZ0OMKEfwRtQ1t Pm53RE7yhRDI5Vq_Et0rGP3rpBcpNb9cNtPzphdWLoG5Lhf0iwuz3lmp1cId eeF834oCZr.KcYQKyoPUPCZ8uBAo92QcaShJzNEBz5E7Uzq5yvChiEaPNmxH LckSfCF5TEG1V1BCTEZ5914PHCOdB5q4M X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Subject: ARM broken since a while From: Pedro Giffuni To: FreeBSD Current Cc: FreeBSD Toolchain References: <5E1C6F4E-C573-4B99-AF96-FCB756B0A75B@dsl-only.net> <5D3C8011-1B5F-45CB-8390-9A6E9862FB47@dsl-only.net> <79bca8ee-7961-8e51-10bd-a65154ecd430@FreeBSD.org> Message-ID: <96795c0d-5b7f-2ebc-ac39-59061a57aeec@FreeBSD.org> Date: Sat, 25 Nov 2017 16:10:14 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <79bca8ee-7961-8e51-10bd-a65154ecd430@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 21:10:18 -0000 On 11/25/17 15:28, Pedro Giffuni wrote: > > ... > > I have seen problems on arm with zstd though. > For the record: arm.armv6 buildworld failed, check _.arm.armv6.buildworld for details .... ===> lib/libzstd (all) Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function UpdateCPSRUse, file /usr/src/contrib/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp, line 961. cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.0svn) Target: armv6--freebsd12.0-gnueabihf Thread model: posix InstalledDir: /usr/bin cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. cc: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: cc: note: diagnostic msg: /tmp/zstd_compress-3f783c.c cc: note: diagnostic msg: /tmp/zstd_compress-3f783c.sh cc: note: diagnostic msg: ******************** --- zstd_compress.o --- *** [zstd_compress.o] Error code 254 make[7]: stopped in /scratch/tmp/pfg/head/lib/libzstd .... ____ Pedro. From owner-freebsd-toolchain@freebsd.org Sat Nov 25 21:33:57 2017 Return-Path: Delivered-To: freebsd-toolchain@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 05A1FDF0886; Sat, 25 Nov 2017 21:33:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ADE406F3FA; Sat, 25 Nov 2017 21:33:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7D53236D9E; Sat, 25 Nov 2017 22:33:53 +0100 (CET) From: Dimitry Andric Message-Id: <394C737D-3764-46CD-AA83-446FD3055C79@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_D3DED544-4600-4802-937F-AC9EBF8179EB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: ARM broken since a while Date: Sat, 25 Nov 2017 22:33:52 +0100 In-Reply-To: <96795c0d-5b7f-2ebc-ac39-59061a57aeec@FreeBSD.org> Cc: FreeBSD Current , FreeBSD Toolchain To: Pedro Giffuni References: <5E1C6F4E-C573-4B99-AF96-FCB756B0A75B@dsl-only.net> <5D3C8011-1B5F-45CB-8390-9A6E9862FB47@dsl-only.net> <79bca8ee-7961-8e51-10bd-a65154ecd430@FreeBSD.org> <96795c0d-5b7f-2ebc-ac39-59061a57aeec@FreeBSD.org> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 21:33:57 -0000 --Apple-Mail=_D3DED544-4600-4802-937F-AC9EBF8179EB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 25 Nov 2017, at 22:10, Pedro Giffuni wrote: >=20 > On 11/25/17 15:28, Pedro Giffuni wrote: >>=20 >> ... >>=20 >> I have seen problems on arm with zstd though. >>=20 > For the record: > arm.armv6 buildworld failed, check _.arm.armv6.buildworld for details > .... > =3D=3D=3D> lib/libzstd (all) > Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), = function UpdateCPSRUse, file = /usr/src/contrib/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp, line 961. > cc: error: unable to execute command: Abort trap (core dumped) This is probably after the most recent zstd import, see also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223072 and https://bugs.llvm.org/show_bug.cgi?id=3D35023 No progress at all upstream, though. :-/ -Dimitry --Apple-Mail=_D3DED544-4600-4802-937F-AC9EBF8179EB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWhnhwAAKCRCwXqMKLiCW o5SpAJ99O4v6bfH3J6JbwQQjpdFf3THISgCg6MkMlHZp7dZTBAdKvRQ0wOCW9lM= =mz+K -----END PGP SIGNATURE----- --Apple-Mail=_D3DED544-4600-4802-937F-AC9EBF8179EB-- From owner-freebsd-toolchain@freebsd.org Sat Nov 25 21:58:20 2017 Return-Path: Delivered-To: freebsd-toolchain@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 9A039DF1258 for ; Sat, 25 Nov 2017 21:58:20 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-161.reflexion.net [208.70.210.161]) (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 458D8701E5 for ; Sat, 25 Nov 2017 21:58:19 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 13268 invoked from network); 25 Nov 2017 21:58:13 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 25 Nov 2017 21:58:13 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Sat, 25 Nov 2017 16:58:13 -0500 (EST) Received: (qmail 6783 invoked from network); 25 Nov 2017 21:58:12 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 25 Nov 2017 21:58:12 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 1E56DEC8B7B; Sat, 25 Nov 2017 13:58:12 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: ARM broken since a while From: Mark Millard In-Reply-To: <96795c0d-5b7f-2ebc-ac39-59061a57aeec@FreeBSD.org> Date: Sat, 25 Nov 2017 13:58:11 -0800 Cc: FreeBSD Current , FreeBSD Toolchain Content-Transfer-Encoding: quoted-printable Message-Id: <1A30D197-8194-4596-BC10-09F748C9915C@dsl-only.net> References: <5E1C6F4E-C573-4B99-AF96-FCB756B0A75B@dsl-only.net> <5D3C8011-1B5F-45CB-8390-9A6E9862FB47@dsl-only.net> <79bca8ee-7961-8e51-10bd-a65154ecd430@FreeBSD.org> <96795c0d-5b7f-2ebc-ac39-59061a57aeec@FreeBSD.org> To: Pedro Giffuni X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 21:58:20 -0000 =3D=3D=3D Mark Millard markmi at dsl-only.net On 2017-Nov-25, at 1:10 PM, Pedro Giffuni wrote: > On 11/25/17 15:28, Pedro Giffuni wrote: >>=20 >> ... >>=20 >> I have seen problems on arm with zstd though. >>=20 > For the record: > arm.armv6 buildworld failed, check _.arm.armv6.buildworld for details > .... > =3D=3D=3D> lib/libzstd (all) > Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), = function UpdateCPSRUse, file = /usr/src/contrib/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp, line 961. > cc: error: unable to execute command: Abort trap (core dumped) > cc: error: clang frontend command failed due to signal (use -v to see = invocation) > FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on = LLVM 5.0.0svn) > Target: armv6--freebsd12.0-gnueabihf > Thread model: posix > InstalledDir: /usr/bin > cc: note: diagnostic msg: PLEASE submit a bug report to = https://bugs.freebsd.org/submit/ and include the crash backtrace, = preprocessed source, and associated run script. > cc: note: diagnostic msg: > ******************** >=20 > PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: > Preprocessed source(s) and associated run script(s) are located at: > cc: note: diagnostic msg: /tmp/zstd_compress-3f783c.c > cc: note: diagnostic msg: /tmp/zstd_compress-3f783c.sh > cc: note: diagnostic msg: >=20 > ******************** > --- zstd_compress.o --- > *** [zstd_compress.o] Error code 254 >=20 > make[7]: stopped in /scratch/tmp/pfg/head/lib/libzstd > .... For this there is: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223072 and: https://bugs.llvm.org/show_bug.cgi?id=3D35023 The detailed error message has changed over time but the above tracks that. I've not seen this problem (before armv7 or after I switched), possibly because I use -mcpu=3Dcortex-a7 explicitly. (For aarch64: -mcpu=3Dcortex-a53 .) =3D=3D=3D Mark Millard markmi at dsl-only.net