Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Compiling fails on MacOS



On Fri, Nov 01, 2024 at 12:18:05AM +0700, Robert Elz wrote:
>     Date:        Thu, 31 Oct 2024 08:32:02 +0100
>     From:        "K. Schreiner" <ks%ub.uni-mainz.de@localhost>
>     Message-ID:  <ZyMycrMwN6SKOCMv%himap.keks@localhost-at-home.local>
> 
>   | with source cvs'updated some minutes ago on MacOS:
> 
> Would all those who had trouble building the ctags tool
> please try again with sources updates no more than a
> few minutes ago (from now).
> 
> Let me know if there are still issues.

thanks for the quick fix, ctags compiles fine now.


But there's another problem compiling __strsignal.c:

...
    compile  libc/__strsignal.o
/u/NetBSD/src/lib/libc/string/__strsignal.c: In function '__strsignal':
/u/NetBSD/src/lib/libc/string/__strsignal.c:78:24: error: cast discards 'const' qualifier from pointer target type [-Werror=cast-qual]
   78 |                 return((char *)sys_siglist[signum]);
      |                        ^
cc1: all warnings being treated as errors

*** Failed target:  __strsignal.o
*** Failed command: /u/NetBSD/arch/amd64/TOOLS/bin/x86_64--netbsd-gcc -O2 -pipe -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror -fPIE -fstack-protector -Wstack-protector --param ssp-buffer-size=1 --sysroot=/u/NetBSD/arch/amd64/dest -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -D_DIAGNOSTIC -D_LIBC_INTERNAL -I/u/NetBSD/src/lib/csu/common -I/u/NetBSD/src/lib/libc/include -I/u/NetBSD/src/lib/libc -I. -I/u/NetBSD/src/sys -I/u/NetBSD/src/lib/libc/compat/../locale -I/u/NetBSD/src/lib/libc/compat/stdlib -I/u/NetBSD/src/lib/libc/compat/../stdlib -D__BUILD_LEGACY -I/u/NetBSD/src/lib/libc/../../common/lib/libc/quad -I/u/NetBSD/src/lib/libc/../../common/lib/libc/string -I/u/NetBSD/src/lib/libc/../../common/lib/libc/arch/x86_64/string -I/u/NetBSD/src/lib/libc/../../common/lib/libc/arch/x86_64/atomic -I/u/NetBSD/src/lib/libc/../../common/lib/libc/hash/sha3 -D__DBINTERFACE_PRIVATE -I/u/NetBSD/src/libexec/ld.elf_so -I/u/NetBSD/src/lib/libc/dlfcn -I/u/NetBSD/src/lib/libc/gdtoa -I/u/NetBSD/src/lib/libc/locale -DHonor_FLT_ROUNDS -I/u/NetBSD/src/lib/libc/arch/x86_64/gdtoa -DWITH_RUNE -I/u/NetBSD/src/lib/libc -D_ACL_PRIVATE -DPOSIX_MISTAKE -DCOMPAT__RES -DUSE_POLL -DPORTMAP -DUSG_COMPAT -DSUPPORT_POSIX2008 -D_FORTIFY_SOURCE=2 -c /u/NetBSD/src/lib/libc/string/__strsignal.c -o __strsignal.o.o
*** Error code 1

Stop.
nbmake[6]: stopped making "realall" in /u/NetBSD/src/lib/libc

*** Failed target:  dependall
*** Failed command: cd "/u/NetBSD/src/lib/libc"; /u/NetBSD/arch/amd64/TOOLS/bin/nbmake realall
*** Error code 1
...

This, of course, compiles fine on "native" NetBSD; tried both amd64 and evbarm64-el, same failure when cross-compiling on MacOS.


Kurt


Home | Main Index | Thread Index | Old Index