jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

native compilers not working #234

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Get an up to date system (latest mercurial repo from google code), and up to 
date compiler binaries (e.g. 5[acl]).  Try to build c code for a native inferno 
(e.g. in libkern).  The compilers crash (at least for arm, power, mips).

Attached is a transcript of a build attempt.  I ran gdb, which seems to point 
to a relatively straight-forward error.

Reverting to the code before the april-2010 compiler update gives working 
binaries again (haven't looked at which changes broke things).

With the compiler updates, an old problem with the code resurfaced on OpenBSD.  
In utils/libmach/qdb.c, a function "qdiv" clashes with openbsd's qdiv from 
stdlib.h... This was worked around in Inferno by renaming the function in qdb.c.

Original issue reported on code.google.com by mechiel@ueber.net on 13 Jul 2010 at 10:14

Attachments:

GoogleCodeExporter commented 9 years ago
it's a bit worrying, given the age of the relevant change, but it might be 
better now.

Original comment by Charles....@gmail.com on 13 Jul 2010 at 11:06

GoogleCodeExporter commented 9 years ago

Original comment by Charles....@gmail.com on 14 Jul 2010 at 9:24