NetBSD-Bugs archive

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

port-atari/56187: port-atari does not cross-build (build.sh) on Darwin due to keymaps



>Number:         56187
>Category:       port-atari
>Synopsis:       port-atari does not cross-build (build.sh) on Darwin due to keymaps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-atari-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 18 18:20:00 +0000 2021
>Originator:     Chris Pinnock
>Release:        Observed on both latest NetBSD 9.2 and -current sources
>Organization:
>Environment:
macOS Big Sur 11.3.1/x86
Darwin MacMini-8795 20.4.0 Darwin Kernel Version 20.4.0: Thu Apr 22 21:46:47 PDT 2021; root:xnu-7195.101.2~1/RELEASE_X86_64 x86_64
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

>Description:
The cross-build of the atari port fails in the standalone sections
when building the keymaps.
#    create  de/de-kbdmap.d
/Volumes/TimeMachine/Chris/NetBSD/current/src/../objects/atari/tooldir.Darwin-20.4.0-x86_64/bin/nbhost-mkdep -f de-kbdmap.d.tmp  --           /Volumes/TimeMachine/Chris/NetBSD/current/src/sys/arch/atari/stand/keymaps/de/de-kbdmap.c &&  mv -f de-kbdmap.d.tmp de-kbdmap.d
#    create  de/.depend
rm -f .depend
/Volumes/TimeMachine/Chris/NetBSD/current/src/../objects/atari/tooldir.Darwin-20.4.0-x86_64/bin/nbhost-mkdep -s .lo\ .ln\ .d -d -f .depend de-kbdmap.d
#   compile  de/de-kbdmap.lo
cc -O   -c -o de-kbdmap.lo.o    /Volumes/TimeMachine/Chris/NetBSD/current/src/sys/arch/atari/stand/keymaps/de/de-kbdmap.c
/Volumes/TimeMachine/Chris/NetBSD/current/src/sys/arch/atari/stand/keymaps/de/de-kbdmap.c:206:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(void)
^
/Volumes/TimeMachine/Chris/NetBSD/current/src/sys/arch/atari/stand/keymaps/de/de-kbdmap.c:208:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
  exit(write (1, &ascii_kbdmap, sizeof (kbdmap)) == sizeof (kbdmap) ? 0 : 1);
  ^
/Volumes/TimeMachine/Chris/NetBSD/current/src/sys/arch/atari/stand/keymaps/de/de-kbdmap.c:208:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
/Volumes/TimeMachine/Chris/NetBSD/current/src/sys/arch/atari/stand/keymaps/de/de-kbdmap.c:208:8: error: implicit declaration of function 'write' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  exit(write (1, &ascii_kbdmap, sizeof (kbdmap)) == sizeof (kbdmap) ? 0 : 1);
       ^
1 warning and 2 errors generated.

*** Failed target: de-kbdmap.lo
*** Failed commands:
        ${_MKTARGET_COMPILE}
        ${HOST_COMPILE.c} -o ${.TARGET}.o ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC}
        ${MV} ${.TARGET}.o ${.TARGET}
*** [de-kbdmap.lo] Error code 1


>How-To-Repeat:
./build.sh -U -m atari build
with either 9 branch sources or current sources on Darwin.

>Fix:



Home | Main Index | Thread Index | Old Index