[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /proc and build environments



* Ben Hutchings:

> Depending on the architecture, this and several other files in /proc may
> be required by the Boehm garbage collector which is part of gcj's
> implementation of the Java virtual machine.  The quoted message comes
> from this:
>
>   ptr_t GC_linux_stack_base(void)
>   {
>     /* We read the stack base value from /proc/self/stat.  We do this	*/
>     /* using direct I/O system calls in order to avoid calling malloc   */
>     /* in case REDIRECT_MALLOC is defined.				*/ 
>     ...
>     f = open("/proc/self/stat", O_RDONLY);
>     if (f < 0 || STAT_READ(f, stat_buf, STAT_BUF_SIZE) < 2 * STAT_SKIP) {
> 	ABORT("Couldn't read /proc/self/stat");
>     }

Aha, thanks.  I somehow missed that the second message was fatal.  So it
is definitely the lack of /proc which causes the installation failure.


Reply to: