RTEMS Source Builder | Can not Build gdb-15.2-arm64-apple-darwin (#98)
Heinz Junkes (@junkes)
gitlab at rtems.org
Thu Apr 10 10:43:49 UTC 2025
Heinz Junkes created an issue: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/98
## Summary
<!--
Can not build gdb-15.2 on arm64-apple-darwin.
```
Apple clang version 17.0.0 (clang-1700.0.13.3)
Target: arm64-apple-darwin24.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
```
-->
## Steps to reproduce
I have tried it with RTEMS6.1 release and the current one (7-origin/main).
```
...
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/make sets $(MAKE)... yes
checking for style of include used by /Applications/Xcode.app/Contents/Developer/usr/bin/make... GNU
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/make supports nested variables... yes
checking dependency style of /usr/bin/cc -O2 -pipe -fbracket-depth=1024 -I/Volumes/Epics/rtems-bbb/tools/rtems-source-builder/rtems/build/tmp/sb-501/tools/rtems-default-tools/Volumes/Epics/rtems-bbb/install/rtems/7/include -I/Volumes/Epics/rtems-bbb/tools/rtems-source-builder/rtems/build/tmp/sb-501-internal/include... gcc3
checking whether /Applications/Xcode.app/Contents/Developer/usr/bin/make supports nested variables... (cached) yes
checking whether ln -s works... yes
checking for arm64-apple-darwin24.4.0-ranlib... ranlib
checking for arm64-apple-darwin24.4.0-ar... (cached) ar
configure: updating cache ./config.cache
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile.gnulib.inc
config.status: creating Makefile
config.status: creating import/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default commands
make[1]: *** [all] Error 2
shell cmd failed: /bin/sh -ex /Volumes/Epics/rtems-bbb/tools/rtems-source-builder/rtems/build/arm-rtems7-gdb-15.2-arm64-apple-darwin24.4.0-1/do-build
error: building arm-rtems7-gdb-15.2-arm64-apple-darwin24.4.0-1
```
Problems with zlib?
```
...
checking whether mbrtowc and mbstate_t are properly declared... (cached) yes
checking for iswlower... (cached) yes
In file included from ../../gdb-15.2/zlib/zutil.c:8:
../../gdb-15.2/zlib/zutil.h:170:11: warning: 'OS_CODE' macro redefined [-Wmacro-redefined]
170 | # define OS_CODE 19
| ^
../../gdb-15.2/zlib/zutil.h:141:11: note: previous definition is here
141 | # define OS_CODE 7
| ^
In file included from ../../gdb-15.2/zlib/zutil.c:10:
In file included from ../../gdb-15.2/zlib/gzguts.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: error: expected identifier or '('
318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
../../gdb-15.2/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
In file included from ../../gdb-15.2/zlib/zutil.c:10:
In file included from ../../gdb-15.2/zlib/gzguts.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: error: expected ')'
../../gdb-15.2/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen(checking whether basename is declared... ) */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
(cached) 26 | #define NULL (no
(void*)0)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: note: to match this '('
../../gdb-15.2/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:15: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
In file included from ../../gdb-15.2/zlib/zutil.c:10:
In file included from ../../gdb-15.2/zlib/gzguts.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: error: expected ')'
318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
../../gdb-15.2/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:22: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: note: to match this '('
../../gdb-15.2/zlib/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
../../gdb-15.2/zlib/zutil.c:133:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
133 | const char * ZEXPORT zError(err)
| ^
../../gdb-15.2/zlib/zutil.c:305:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
305 | voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
| ^
../../gdb-15.2/zlib/zutil.c:315:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
315 | void ZLIB_INTERNAL zcfree (opaque, ptr)
| ^
4 warnings and 3 errors generated.
make[2]: *** [libz_a-zutil.o] Error 1
make[1]: *** [all-zlib] Error 2
make[1]: *** Waiting for unfinished jobs....
checking for gawk... (cached) awk
```
### Pre-set options
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/98
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/20250410/7f0c70ef/attachment-0001.htm>
More information about the bugs
mailing list