From nobody Wed Jan 18 20:18:58 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NxxtC4GBBz2stPY for ; Wed, 18 Jan 2023 20:18:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NxxtC2yhXz3xQp for ; Wed, 18 Jan 2023 20:18:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674073139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iA1SepAOWBovd++n2zUzo25/C+b3Y1QtpLATh6CD2aI=; b=K0YM6kZXerxqWPWIOdY3G5TB5wcFI/ZrZvKp9FRULYZd+RzsxdWstJ3AH84VG1OagLmPSh 1XmsEndrKYQGmZXxzFMNcu05FYQY5lXiMVCQjqTZCFMpK9rGS3/VjGPJT20xubiLQ6I0e1 NhrB+GEaEp6e2yrLDroW2pP1mdOAq1ZtbPHmUow9QGsL/63ItKnbZi36hq/+41H+O/ZbWU JI5Vd85D33f73oXOgVz0PD5eDwT7nzAIl5ygNPuEhDD57twQWMh9eE958B3NN8qgiOdgmy sE6UAm+zL8JzNWiLaS99sOiiK2JzzktkNM80HmyqW8WYFBjg1Y9qf6293gMnyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674073139; a=rsa-sha256; cv=none; b=LpH4BLM7G2gjb57b3NqhXdKjLo8R31opYR6ijCfsCCBi4v1Vvy+rgUE97Rnw0joGQZt0th l1BcOpvd0cAPcBrcOYks0SYEt7lt14mbNUatJx3P3nJXFuSnGBtgmoDWRIBvGlmwsBbdTW gb13PfxT3Tcv6iH/9TUpz4sYKS2OZC9xMJVW5QY3s484f+YTvJom3BSYH5ARRABF10KQLA EIP3fDMkunyOmGvCPou/qjyhAjYLlWykrglUE6KT16pf19dVK6Av9gVgGpD+I0Dv9+DhjY 7OYHT9WOSgPpwOUYaFSrEVmGwdDoOLmNOgzzFV04TTC2Ad9hD8h7wSSFkxRuSQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NxxtC1wKLzPDD for ; Wed, 18 Jan 2023 20:18:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30IKIxQq012349 for ; Wed, 18 Jan 2023 20:18:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30IKIxK4012348 for ports-bugs@FreeBSD.org; Wed, 18 Jan 2023 20:18:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 269034] java/eclipse: fix build with clang 15 Date: Wed, 18 Jan 2023 20:18:58 +0000 X-Bugzilla-Reason: AssignedTo 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 Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@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 List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269034 Bug ID: 269034 Summary: java/eclipse: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: jonc@chen.org.nz Flags: maintainer-feedback?(jonc@chen.org.nz) CC: jonc@chen.org.nz During an exp-run for llvm 15 (see bug 265425), it turned out that java/ecl= ipse failed to build with clang 15: [INFO] [exec] Building GTK3 bindings: [INFO] [exec] gmake[1]: Entering directory '/wrkdirs/usr/ports/java/eclipse/work/eclipse.platform.releng.aggregator-R4= _24/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.freebsd.amd64= /tmpdir' ... [INFO] [exec] cc -O -Wall -fPIC -DSWT_VERSION=3D4952r11 -DFREEBSD= -DGTK -I`pkg-config --variable=3Dprefix gtk+-3.0`/include -I/usr/local/openjdk11/include -I/usr/local/openjdk11/include/freebsd -DJNI= 64 -m64 -Werror `pkg-config --cflags gtk+-3.0 gtk+-unix-print-3.0` -c os.c [INFO] [exec] os.c:10086:31: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] [INFO] [exec] rc =3D (jint)((jint (*)())arg0)(arg1, arg2, ar= g3); [INFO] [exec] ^ [INFO] [exec] os.c:10098:31: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] [INFO] [exec] rc =3D (jint)((jint (*)())arg0)(arg1, arg2); [INFO] [exec] ^ [INFO] [exec] os.c:10704:33: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] [INFO] [exec] rc =3D (jlong)((jlong (*)())arg0)(arg1, arg2, = arg3, arg4); [INFO] [exec] ^ [INFO] [exec] os.c:10716:33: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] [INFO] [exec] rc =3D (jlong)((jlong (*)())arg0)(arg1, arg2, = arg3, arg4, arg5, arg6); [INFO] [exec] ^ [INFO] [exec] os.c:10728:33: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] [INFO] [exec] rc =3D (jlong)((jlong (*)())arg0)(arg1, arg2, = arg3, arg4, arg5, arg6, arg7); [INFO] [exec] ^ These -Werror warnings are in code generated by JNIGenerator, so they cannot directly be fixed (at least not without hacking on JNIGenerator itself). Instead we need to add -Wno-deprecated-non-prototype for clang 15 and highe= r. To achieve this, we have to pass CFLAGS to MAVEN_ENV, and adjust the gtk build.sh script to respect the CFLAGS setting in the environment. --=20 You are receiving this mail because: You are the assignee for the bug.=