Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc: add GCC 14 #24096

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

gcc: add GCC 14 #24096

wants to merge 2 commits into from

Conversation

rsalvaterra
Copy link
Member

Deleted (upstreamed):

  • 020-Include-safe-ctype.h-after-C-standard-headers-to-avo.patch [1]
  • 021-libcc1-fix-vector-include.patch [2]

All other patches automatically rebased.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9970b576b7e4ae337af1268395ff221348c4b34a
[2] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5213047b1d50af63dfabb5e5649821a6cb157e33

Also include a build fix for attr.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

@rsalvaterra
Copy link
Member Author

Build-tested:

  • mediatek/filogic (Banana Pi R3)

@trippleflux
Copy link

trippleflux commented May 8, 2024

Would you take a look at net-snmp, for other packages seems quite simple for gcc 14 compilation supports,
but I am stuck with net-snmp

Already added :

TARGET_CFLAGS += $(FPIC) -w

But still stopped at :

mibgroup/ieee802dot11.c: In function 'var_ieee802dot11':
mibgroup/ieee802dot11.c:353:8: error: implicit declaration of function 'header_generic' [-Wimplicit-function-declaration]
  353 |   if ( header_generic ( vp, name, length, exact,var_len,write_method )
      |        ^~~~~~~~~~~~~~
mibgroup/ieee802dot11.c: In function 'load80211Structs':
mibgroup/ieee802dot11.c:3985:15: error: implicit declaration of function 'if_nametoindex' [-Wimplicit-function-declaration]
 3985 |     ifIndex = if_nametoindex ( ifName );
      |               ^~~~~~~~~~~~~~
mibgroup/ieee802dot11.c: In function 'addList':
mibgroup/ieee802dot11.c:4705:8: error: assignment to 'struct <anonymous> *' from incompatible pointer type 'struct <anonymous> *' [-Wincompatible-pointer-types]
 4705 |   list = ( LIST_HEAD ( , avNode ) * ) l;            // NOTE: don't know how to get
      |        ^
mibgroup/ieee802dot11.c: In function 'flushList':
mibgroup/ieee802dot11.c:4789:8: error: assignment to 'struct <anonymous> *' from incompatible pointer type 'struct <anonymous> *' [-Wincompatible-pointer-types]
 4789 |   list = ( LIST_HEAD ( , avNode ) * ) l;    // NOTE: don't know how to get
      |        ^
make[4]: *** [Makefile:101: mibgroup/ieee802dot11.lo] Error 1

For rrdtool1 :
Makefile :

TARGET_CFLAGS += $(FPIC) --std=c99 -w -D_SVID_SOURCE

Patch :

diff -Naur a/src/rrd_cgi.c b/src/rrd_cgi.c
--- a/src/rrd_cgi.c
+++ b/src/rrd_cgi.c
@@ -5,6 +5,8 @@
  *****************************************************************************/
 
 #include "rrd_tool.h"
+#include <stdlib.h>
+#include <strings.h>
 #include <cgi.h>
 #include <time.h>
 
diff -Naur a/src/rrd_graph.c b/src/rrd_graph.c
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
@@ -2475,7 +2475,7 @@
       }
       gdImageDestroy(img); 
      }
-     close(fi); 
+     fclose(fi); 
    } else {
      rrd_set_error("Error Opeing %s: %s",image,  strerror(errno));
    }

For apinger :
Patch :

diff -Naur a/src/conf.c b/src/conf.c
--- a/src/conf.c
+++ b/src/conf.c
@@ -25,6 +25,7 @@
 #ifdef HAVE_STRING_H
 # include <string.h>
 #endif
+#include "debug.h"
 #include "conf.h"
 #include "cfgparser1.h"

[EDIT]
Found the possible fixes for the net-snmp :
net-snmp.patch

Deleted (upstreamed):

020-Include-safe-ctype.h-after-C-standard-headers-to-avo.patch [1]
021-libcc1-fix-vector-include.patch [2]

All other patches automatically rebased.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9970b576b7e4ae337af1268395ff221348c4b34a
[2] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5213047b1d50af63dfabb5e5649821a6cb157e33

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Add a trivial patch in order to do so.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
@neheb
Copy link
Contributor

neheb commented May 15, 2024

Second patch needs to be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants