What is clang error code 254?

Mark Millard marklmi at yahoo.com
Fri Jan 25 07:08:27 UTC 2019


bob prohaska fbsd at www.zefox.net wrote on
Thu Jan 24 18:22:40 UTC 2019 :

> The pattern of clang crashes during buildworld on RPI3 continues, 
> most consistently reporting Error code 254.
> 
> I've looked on the web for clang error codes and find nothing.
> Even the llvm.org website isn't helpful. There are references 
> to error 254, but nothing seems recent, and no error list is
> mentioned.

I found it traces to:

   // Return a special value to indicate that the process received an unhandled
   // signal during execution as opposed to failing to execute.
   WaitResult.ReturnCode = -2;

in /usr/src/contrib/llvm/lib/Support/Unix/Program.inc . (I did the
trace between that and main by inspection but I'll not list the details
here.)

-2 treated as an unsigned-byte is 254 for the rpi3 (and most common
FreeBSD machines [all?]).


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-arm mailing list