LibBSD | Branch 7-freebsd-14 broken with 7 main tools (#66)

Chris Johns (@chris) gitlab at rtems.org
Sun Oct 26 08:50:43 UTC 2025




Chris Johns commented: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/66#note_135342


This patch lets the build complete:

```diff
diff --git a/libbsd.py b/libbsd.py
index e481ffe1..daf02227 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -54,7 +54,7 @@ _defaults = {
     'common-warnings' : ['-Wall',
                          '-Wno-format',
                          '-Wno-pointer-sign'],
-    'common-no-warnings': ['-w'],
+    'common-no-warnings': ['-w', '-Wno-implicit-function-declaration'],
     'cflags': [],
     'cxxflags': [],
```

however is breaks C++ files:

```
cc1plus: warning: command-line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++
```

It seems we need to now add C and C++ common flags and separate the sources.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/66#note_135342
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20251026/f490790d/attachment-0001.htm>


More information about the bugs mailing list