From nobody Fri Nov 24 13:11:57 2023 X-Original-To: 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 4ScFkQ3GSVz52Glp for ; Fri, 24 Nov 2023 13:11:58 +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 4ScFkQ0fNLz3SHZ for ; Fri, 24 Nov 2023 13:11:58 +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=1700831518; 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=VOtKjTOFEs9eH7mF6w3z1b8J8kytmx58IYSf8bUocS0=; b=IrcnSM2egA4X+xj3qitjsKHy0HTp+vvVz/1roSuDk75gX556vZIT8dl6AfGSFahvHI4xhL o3qCe1wuiM+S9WUB8qrll+PxjOjWCRC4YDlUkhUZW23Qnf/uvl8o4o21eRnhV2Kks0NwQW fPlUl+2PwgHtxIlelfq2pRBkjdnRSBDy6cWfgLLWbEBqrQKAuc6ktzmHGoACsNijNSHJJx wZ7j46Zt1MdYjvLjaqUCUSGJjexoEys2iqlkX8+h2vkg2VcZiT8uvH8A8ilOrsL98vHaWb bifgaFR/6Wz0nk/63l/uv/4zq9piB56XkUc9waVsYZ+GHo1TokV6w6IQfdcfuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700831518; a=rsa-sha256; cv=none; b=ZCJXvNjT/QJzAttKqzEHnOgA5/e0SuljuR4+ulPxaRyz3cuaaUeRKFnuPQc3MkNwwY7oTE +2+qOJV8d6otMq7QgBoaffv+n2kg3NcFI64ZAuDU2L+SOWMi2ZrJ8vXL+qaaeEmk3NbIKA DgFebFhRxmKl3knomY7t84lNmf6tM6ba0VQP7IqRrFMpcNHOcWM33Scfby5TxT7XmETXqv zmYv8Bf1imUssxQ88w4fKpIjJ29ctxGEihtak+ERJPYrNLs54MD1ptufjbsZsoprLgoHY9 bort+dwnyWOwrLDl5U+hrD5wNP/YG3gtsZ5QQJA2/wVc7as0Qi2j0SV6kXkhMA== 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 4ScFkP6qmczmD4 for ; Fri, 24 Nov 2023 13:11:57 +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 3AODBvQR085778 for ; Fri, 24 Nov 2023 13:11:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AODBvko085777 for bugs@FreeBSD.org; Fri, 24 Nov 2023 13:11:57 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: bugs@FreeBSD.org Subject: [Bug 275305] warning "-Wdeprecated-non-prototype" breaks build a system with "WITH_OFED_EXTRA" option Date: Fri, 24 Nov 2023 13:11:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yyv83@mail.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275305 Bug ID: 275305 Summary: warning "-Wdeprecated-non-prototype" breaks build a system with "WITH_OFED_EXTRA" option Product: Base System Version: 14.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: yyv83@mail.ru It looks like the default flags have changed in glang 15. buildworld ends with the following errors: --- /usr/src/contrib/ofed/opensm/opensm/st.c:185:11: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] st_table *st_init_table_with_size(type, size) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:211:11: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] st_table *st_init_table(type) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:222:11: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] st_table *st_init_numtable_with_size(size) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:233:11: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] st_table *st_init_strtable_with_size(size) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:239:6: error: a function definition without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] void st_free_table(table) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:279:5: error: a function definition without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] int st_lookup(table, key, value) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:318:5: error: a function definition without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] int st_insert(table, key, value) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:338:6: error: a function definition without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] void st_add_direct(table, key, value) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:350:13: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] static void rehash(table) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:379:11: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] st_table *st_copy(old_table) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:419:5: error: a function definition without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] int st_delete(table, key, value) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:463:5: error: a function definition without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] int st_delete_safe(table, key, value, never) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:502:6: error: a function definition without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] void st_cleanup_safe(table, never) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:512:6: error: a function definition without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] void st_foreach(table, func, arg) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:547:12: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] static int strhash(string) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:581:12: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] static int numcmp(x, y) ^ /usr/src/contrib/ofed/opensm/opensm/st.c:587:17: error: a function definiti= on without a prototype is deprecated in all versions of C and is not supported= in C2x [-Werror,-Wdeprecated-non-prototype] static st_ptr_t numhash(n) ^ 17 errors generated. *** [st.o] Error code 1 make[5]: stopped in /usr/src/usr.bin/ofed/opensm --- all_subdir_usr.sbin --- make[4]: stopped in /usr/src/usr.sbin/acpi --- all_subdir_usr.bin --- --- all_subdir_usr.bin/clang --- make[4]: stopped in /usr/src/usr.bin/clang --- all_subdir_usr.sbin --- make[3]: stopped in /usr/src/usr.sbin make[2]: stopped in /usr/src --- all_subdir_usr.bin --- --- all_subdir_usr.bin/ofed --- 1 error make[5]: stopped in /usr/src/usr.bin/ofed/opensm make[4]: stopped in /usr/src/usr.bin/ofed make[3]: stopped in /usr/src/usr.bin --- all_subdir_usr.bin/clang --- --- all_subdir_usr.bin/clang/llvm-objdump --- make[4]: stopped in /usr/src/usr.bin/clang --- all_subdir_usr.bin/clang/llvm-profdata --- make[4]: stopped in /usr/src/usr.bin/clang --- all_subdir_usr.bin/clang/llvm-readobj --- make[4]: stopped in /usr/src/usr.bin/clang make[3]: stopped in /usr/src/usr.bin make[2]: stopped in /usr/src 114.97 real 2456.39 user 196.50 sys make[1]: stopped in /usr/src make: stopped in /usr/src --- If you add "-Wno-error=3Ddeprecated-non-prototype" flag, then buildworld completed successfully, but I'm not sure that this is the optimal solution. --=20 You are receiving this mail because: You are the assignee for the bug.=