Hello Roberto!

Steffen Nurpmeso wrote in
<20200603135346.rbmv5%[email protected]>:
 |Roberto Ricci wrote in
 |<20200603132131.GA19797@ricci>:
 ||I'm trying to cross-compile s-nail version 14.9.19 on a Void Linux host.
 ||
 ||I run the command:
 ||    make CC=name_of_cross_compiler OPT_CROSS_BUILD=yes config
 ||but I get the following error:
 ||    [...]
 ||     . OS error mapping table generated ... no
 ||    make: *** [makefile:23: config] Error 1
 ||
 ||This probably happens because the config script needs to compile a program
 ||and then run it. Obviously it fails if I am cross-compiling.
 ...
 |What a mess ;-))
 ...
 |moment, i think i will have to create something that uses the
 |preprocessor to dump out data, and then a portable (awk?) parser
 |has to parse that.  Alternatively we need to add support for an
 ...

So i have done exactly this, and it seems to work just fine.
I hope CROSS_BUILD now works.  Sorry for that inconvenience!
I have pushed it to [master] and the [stable/] series.

(I have never tested CROSS_BUILD myself, i saw xtraeme doing stuff
to make something like this work on VoidLinux, and i thought
something like "that i can support regulary also", but it seems
i have missed that.  The cross-compile tool chains are so large,
and then i could not run them unless i also have VMs etc etc etc.)

Writing this revealed bugs in two different awk implementations
btw, one segmentation violation and one parse error amazing.  Bug
reported upstream.

Thanks, Roberto!

P.S.: be aware -commit lists can get noisy sometimes, i am not
truly super-organized and sometimes am rotating...

Good night, and
Ciao from Germany,

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to