Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880545 (c23-porting) - [Tracker] Packages fail with -std=gnu23/-std=c23 (-Werror=deprecated-non-prototype and friends)
Summary: [Tracker] Packages fail with -std=gnu23/-std=c23 (-Werror=deprecated-non-prot...
Status: CONFIRMED
Alias: c23-porting
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: https://wiki.gentoo.org/wiki/Modern_C...
Whiteboard: Packages blocking this tracker fail w...
Keywords: Tracker
Depends on: 871018 880331 880363 880369 880383 880389 880397 880399 880407 880409 880433 880435 880439 880481 880483 880487 880489 880503 880505 880507 880509 880525 880531 880535 880831 881829 881865 881867 881953 881971 881975 881977 881981 881985 881987 881991 882013 882359 882361 882829 883165 883301 883417 883659 884269 885585 903603 912307 914864 914865 919444 923758 923762 923886 928855 937993 942206 942958 943671 943714 943731 943766 943772 943773 943774 943780 943781 943783 943786 943788 943790 943791 943792 943793 943794 943797 943799 943800 943802 943803 943804 943805 943806 943807 943808 943810 943812 943815 943817 943818 943819 943821 943822 943823 943826 943827 943829 943830 943832 943833 943835 943836 943837 943839 943840 943841 943842 943844 943845 943846 943850 943851 943852 943854 943855 943856 943858 943859 943863 943867 943875 943881 943888 943889 943891 943892 943893 943897 943898 943900 943902 943903 943904 943905 943906 943907 943911 943912 943913 943915 943916 943917 943919 943922 943927 943928 943930 943932 943933 943936 943938 943944 943945 943946 943947 943948 943950 943952 943953 943954 943955 943956 943957 943958 943959 943961 943962 943963 943965 943966 943967 943968 943969 943970 943972 943977 943978 943979 943980 943982 943983 943984 943985 943986 943987 943989 943994 943995 943996 943998 944000 944001 944002 944003 944004 944008 944009 944013 944021 944027 944030 944031 944037 944038 944042 944046 944049 944067 944088 944089 944090 944093 944095 944098 944099 944100 944101 944108 944109 944113 944114 944116 944117 944119 944121 944123 944124 944126 944127 944129 944132 944133 944134 944136 944139 944141 944142 944144 944150 944151 944155 944157 944159 944161 944162 944167 944169 944171 944172 944173 944175 944179 944180 944181 944182 944183 944184 944185 944191 944192 944195 944203 944206 944207 944215 944224 944225 944226 944227 944228 944229 944231 944234 944235 944236 944238 944240 944241 944242 944244 944245 944246 944247 944248 944249 944250 944252 944254 944255 944256 944257 944258 944259 944260 944261 944263 944264 944267 944269 944270 944274 944275 944276 944277 944279 944281 944283 944296 944298 944299 944303 944304 944305 944306 944309 944321 944323 944326 944327 944328 944329 944330 944331 944342 944346 944347 944350 944352 944353 944354 944355 944358 944361 944366 944367 944368 944372 944373 944376 944377 944382 944383 944384 944385 944386 944387 944388 944397 944398 944401 944418 944419 944420 944421 944422 944424 944426 944427 944428 944430 944431 944432 944433 944434 944436 944437 944438 944440 944441 944442 944443 944444 944445 944446 944448 944450 944452 944456 944458 944460 944461 944468 944469 944470 944471 944472 944473 944474 944485 944746 944747 944750 944751 944756 944757 944759 944760 944761 944762 944763 944764 944766 944767 944768 944777 944781 944814 944844 944845 944846 944847 944850 944851 944852 944854 944855 944857 944858 944861 944862 944863 944864 944865 944866 944868 944869 944870 944871 944872 944873 944874 944875 944876 944877 944878 944879 944880 944881 944882 944884 944886 944889 944890 944891 944892 944895 944896 944897 944898 944900 944901 944903 944908 944909 944910 944911 944912 944914 944915 944917 944918 944919 944920 944930 944931 944932 944933 944934 944935 944936 944937 944938 944978 944979 944981 944983 944984 944985 944987 944988 944989 944990 944991 944992 944994 944995 944997 944998 945000 945018 945019 945020 945021 945026 945027 945028 945039 945041 945042 945043 945044 945045 945057 945058 945060 945062 945067 945068 945075 945093 945094 945095 945096 945097 945099 945100 945118 945121 945122 945124 945155 945178 945179 945180 945181 945182 945185 945186 945187 945188 945189 945190 945191 945192 945193 945196 945197 945198 945199 945200 945201 945202 945205 945206 945207 945208 945240 945242 945243 945244 945249 945253 945257 945259 945261 945262 945263 945267 945272 945281 945282 945283 945284 945288 945289 945290 945291 945293 945294 945295 945298 945317 945318 945319 945320 945321 945322 945325 945335 945339 945353 945354 945401 945462 945468 945469 945471 945502 945504 945509 945512 945513 945514 945516 945517 945519 945520 945521 945522 945643 945644 945719 945720 945721 945723 945724 945726 945736 945737 945738 945739 945790 945791 945792 945793 945794 945795 945803 945810 945811 945825 945871 945918 945947 945968 945970 945982 946003 946062 946063 946064 946065 946142 946177 946189 946204 946205 946208 946273 946274 946283 946332 946359 946361 946368 946406 946407 946411 946515 946519 946520 946521 946522 946523 946524 946543 946553 946573 946583 946625 946656 946657 946659 946674 946691 946693 946698 946728 946837 946838 946840 946933 946934 946936 946956 946978 946987 947004 947015 947026 947100 947155 947175 947527 947758 947763 947764 947794 947850 947906 947922 947988 948098 948102 948108 948138 948181 948182 948183 948465 948494 948956 948960 948964 948965 948972 949088 949219 949220 949415 949509 949521 949523 949570 949598 949622 949638 949695 949866 949868 949870 949926 950208 950237 950248 950326 950646 950653 950977 831308 870766 876985 880329 880333 880381 880387 880391 880393 880417 880431 880457 880485 880519 880529 880537 880815 881863 881957 881959 881965 881967 881979 881983 881989 882057 883313 883315 883893 884155 884255 884335 891533 894598 908207 908414 913565 914639 914761 915963 919267 921310 926314 929081 930372 930385 940128 943665 943672 943687 943690 943694 943699 943701 943704 943707 943709 943710 943711 943712 943715 943722 943726 943727 943733 943734 943743 943745 943746 943747 943748 943753 943757 943759 943764 943765 943767 943768 943782 943784 943785 943795 943796 943798 943801 943809 943811 943813 943814 943816 943820 943824 943825 943828 943831 943834 943838 943843 943847 943849 943853 943857 943860 943861 943862 943864 943868 943869 943873 943874 943880 943882 943883 943890 943895 943896 943899 943901 943908 943909 943910 943914 943921 943924 943925 943926 943931 943934 943939 943942 943943 943951 943960 943964 943971 943973 943974 943976 943988 943999 944011 944012 944014 944017 944019 944020 944028 944029 944034 944039 944041 944044 944048 944050 944052 944053 944054 944055 944057 944058 944059 944060 944061 944062 944064 944065 944066 944068 944069 944070 944071 944074 944075 944076 944077 944092 944094 944096 944097 944102 944103 944104 944105 944106 944107 944110 944111 944112 944120 944125 944130 944131 944137 944138 944140 944143 944147 944149 944153 944168 944170 944176 944178 944193 944212 944213 944218 944223 944230 944232 944233 944237 944239 944243 944265 944266 944271 944284 944286 944297 944300 944301 944302 944322 944337 944341 944344 944345 944356 944360 944364 944371 944381 944400 944402 944403 944423 944425 944429 944435 944447 944449 944451 944453 944508 944748 944749 944755 944758 944853 944856 944860 944867 944885 944893 944894 944902 944906 944907 944913 944980 944982 944996 945040 945056 945070 945098 945123 945158 945183 945184 945194 945195 945203 945250 945251 945254 945256 945258 945292 945297 945324 945352 945397 945487 945503 945693 945717 945733 945741 945802 945917 945958 946137 946145 946226 946277 946410 946527 946581 946622 946658 946782 946901 946954 946955 947143 947207 947274 947561 948107 948330 948911 948952 948986 949086 949337 949386 949571 949574 949814 949835 950712 950713
Blocks: gcc-15
  Show dependency tree
 
Reported: 2022-11-08 22:49 UTC by Sam James
Modified: 2025-03-09 10:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-08 22:49:07 UTC
This is related but separate to Clang 16. Clang 15+ started warning on this but it's not fatal right now.

-Werror=deprecated-non-prototype issues are forbidden in C23 (C2x) so at the latest, this will become a problem for us when compilers switch in ~2025/2026/2027 to C23 as default, but it might become a problem sooner if Clang decides to change.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-15 23:51:27 UTC
These will affect GCC 15: https://inbox.sourceware.org/gcc-cvs/20241115234634.9D1633858CDA@sourceware.org/T/#u.
Comment 2 Larry the Git Cow gentoo-dev 2024-11-18 01:41:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d931e94d9cc1babc010aa589662c0dcda119fdd5

commit d931e94d9cc1babc010aa589662c0dcda119fdd5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-18 01:40:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-18 01:41:04 +0000

    sys-devel/gcc: add 15.0.0_pre20241117
    
    Bug: https://bugs.gentoo.org/880545
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                      |  2 ++
 sys-devel/gcc/gcc-15.0.0_pre20241117.ebuild | 53 +++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-23 14:13:16 UTC
I've written up some docs at https://wiki.gentoo.org/wiki/Modern_C_porting#Fixes_.28C23.29.

Please ask if you get stuck (ideally on IRC in #gentoo-toolchain, but CCing on a bug is OK, just be aware I may miss it).