[erlang-questions] Error building R12B-4 on Ubuntu 8.04

Michael T. Richter <>
Mon Sep 15 16:46:39 CEST 2008


On Mon, 2008-09-15 at 16:18 +0200, Raimo Niskanen wrote:

> (cd /home/michael/Development/junk/lib/hipe/rtl && \
>  erlc -W  +debug_info +warn_obsolete_guard +inline -o../ebin hipe_rtl_arch.erl)



> That is, run the command manually and see if you get better
> error printouts.


No difference in output at all.


> 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.


Here's the snippets that seem relevant.
---8<---
2140  stat64("./hipe_rtl_arch.erl", {st_mode=S_IFREG|0644,
st_size=18214, ...}) = 0
2140  open("./hipe_rtl_arch.erl", O_RDONLY|O_LARGEFILE) = 7
---8<---
2140
stat64("/home/michael/Development/junk/lib/hipe/rtl/../ebin/hipe_rtl_arch.bea#", 0xbfe548d0) = -1 ENOENT (No such file or directory)
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)
2140  stat64("./io_lib_format.beam", 0xbfe548d0) = -1 ENOENT (No such
file or directory)
2140  open("./io_lib_format.beam", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
2140
stat64("/home/michael/Development/junk/bootstrap/lib/kernel/ebin/io_lib_format.beam", 0xbfe548d0) = -1 ENOENT (No such file or directory)
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)
2140
stat64("/home/michael/Development/junk/bootstrap/lib/stdlib/ebin/io_lib_format.beam", {st_mode=S_IFREG|0644, st_size=25504, ...}) = 0
2140
open("/home/michael/Development/junk/bootstrap/lib/stdlib/ebin/io_lib_format.beam", O_RDONLY|O_LARGEFILE) = 7
2140  read(7, "FOR1\0\0c\230BEAMAtom\0\0\3.\0\0\0]\rio_lib_"..., 25504)
= 25504
2140  close(7)                          = 0
2140  getcwd("/home/michael/Development/junk/lib/hipe/rtl", 8191) = 44
2140  writev(1, [{"", 0}, {"/home/michael/Development/junk/l"..., 91}],
2) = 91
2140  munmap(0xb756c000, 970752)        = 0
---8<---
2140  fcntl64(0, F_GETFL)               = 0x2 (flags O_RDWR)
2140  fcntl64(0, F_SETFL, O_RDWR)       = 0
2140  exit_group(1)                     = ?
2144  <... futex resumed> )             = ? ERESTART_RESTARTBLOCK (To be
restarted)


> Is your /home/michael filesystem full?


38GB free.


> It seems the erlc compiler cannot write a temp file,
> and it is during compilation of the Hipe compiler.


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.

-- 
Michael T. Richter <> (GoogleTalk:
)
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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080915/575aed7d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080915/575aed7d/attachment.bin>


More information about the erlang-questions mailing list