<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
On Mon, 2008-09-15 at 16:18 +0200, Raimo Niskanen wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
(cd /home/michael/Development/junk/lib/hipe/rtl && \
 erlc -W  +debug_info +warn_obsolete_guard +inline -o../ebin hipe_rtl_arch.erl)
</PRE>
</BLOCKQUOTE>
<PRE>

</PRE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
That is, run the command manually and see if you get better
error printouts.
</PRE>
</BLOCKQUOTE>
<BR>
No difference in output at all.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
If that fails, add "strace -fo strace.log" before "erlc -W" and see
if that log says anything interesting about why the file write fails.
</PRE>
</BLOCKQUOTE>
<BR>
Here's the snippets that seem relevant.<BR>
---8<---<BR>
2140  stat64("./hipe_rtl_arch.erl", {st_mode=S_IFREG|0644, st_size=18214, ...}) = 0<BR>
2140  open("./hipe_rtl_arch.erl", O_RDONLY|O_LARGEFILE) = 7<BR>
---8<---<BR>
<B>2140  stat64("/home/michael/Development/junk/lib/hipe/rtl/../ebin/hipe_rtl_arch.bea#", 0xbfe548d0) = -1 ENOENT (No such file or directory)</B><BR>
<B>2140  open("/home/michael/Development/junk/lib/hipe/rtl/../ebin/hipe_rtl_arch.bea#", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)</B><BR>
2140  stat64("./io_lib_format.beam", 0xbfe548d0) = -1 ENOENT (No such file or directory)<BR>
2140  open("./io_lib_format.beam", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<BR>
2140  stat64("/home/michael/Development/junk/bootstrap/lib/kernel/ebin/io_lib_format.beam", 0xbfe548d0) = -1 ENOENT (No such file or directory)<BR>
2140  open("/home/michael/Development/junk/bootstrap/lib/kernel/ebin/io_lib_format.beam", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<BR>
2140  stat64("/home/michael/Development/junk/bootstrap/lib/stdlib/ebin/io_lib_format.beam", {st_mode=S_IFREG|0644, st_size=25504, ...}) = 0<BR>
2140  open("/home/michael/Development/junk/bootstrap/lib/stdlib/ebin/io_lib_format.beam", O_RDONLY|O_LARGEFILE) = 7<BR>
2140  read(7, "FOR1\0\0c\230BEAMAtom\0\0\3.\0\0\0]\rio_lib_"..., 25504) = 25504<BR>
2140  close(7)                          = 0<BR>
2140  getcwd("/home/michael/Development/junk/lib/hipe/rtl", 8191) = 44<BR>
2140  writev(1, [{"", 0}, {"/home/michael/Development/junk/l"..., 91}], 2) = 91<BR>
2140  munmap(0xb756c000, 970752)        = 0<BR>
---8<---<BR>
2140  fcntl64(0, F_GETFL)               = 0x2 (flags O_RDWR)<BR>
2140  fcntl64(0, F_SETFL, O_RDWR)       = 0<BR>
2140  exit_group(1)                     = ?<BR>
2144  <... futex resumed> )             = ? ERESTART_RESTARTBLOCK (To be restarted)<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    Is your /home/michael filesystem full?<BR>
</BLOCKQUOTE>
<BR>
38GB free.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
It seems the erlc compiler cannot write a temp file,
and it is during compilation of the Hipe compiler.
</PRE>
</BLOCKQUOTE>
<BR>
It's looking like it can't even open said file, despite the O_CREAT, O_TRUNCATE pairing.  Very odd.  I can create the file by touching it, though, so something else is wrong here.<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<B>Michael T. Richter</B> <<A HREF="mailto:ttmrichter@gmail.com">ttmrichter@gmail.com</A>> (<B>GoogleTalk:</B> ttmrichter@gmail.com)<BR>
<I>Politics is the art of looking for trouble, finding it whether it exists or not, diagnosing it incorrectly, and applying the wrong remedy. (Ernest Benn)</I>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>