Source: rc Version: 1.7.4+97.gceb59bb-2 User: debian-cr...@lists.debian.org Usertags: ftcbfs
rc fails to cross build from source, because it fails running ./mksignals. This tool seems to be intended towards creating a lookup table from signal number to signal name. It's not going to work this way for cross compilation at all. I'm not sure exactly whether we need rc to be cross buildable given that most embedded users seem to prefer systemd, but let me explain what it would take to fix this: The signal numbers in mksignal.c should be looked up using AC_COMPUTE_INT in configure.ac. Then given the discovered numbers, one can create the source code without relying on host architecture execution. One way would be to write a shell script creating sigmsgs.c and sigmsgs.h. Alternatively, mksignal.c could be retained and instead of relying on the signal macros, it would use the results from AC_COMPUTE_INT and be compiled with CC_FOR_BUILD as discovered by AX_CC_FOR_BUILD (from the autoconf-archive). Do you think this is worth the effort? If not, please tag this bug wontfix. Helmut