Displaying 3 results from an estimated 3 matches for "have_kern_usrstack".
2006 Jul 28
3
R uses private function in libc (PR#9107)
...xport the symbol:
__libc_stack_end;
however, newer versions of libc no longer export it. R has some serious
problems around this, because the code has:
# ifdef linux
extern void * __libc_stack_end;
# endif
and
#if defined(linux)
R_CStackStart = (uintptr_t) __libc_stack_end;
#elif defined(HAVE_KERN_USRSTACK)
in r-2.3.1/src/unix/system.c
This code needs to be fixed. It is causing all sorts of problems when trying to
run R across multiple systems with different libc versions.
--Quanah
2016 Feb 01
1
Wrong config check for __libc_stack_end
...#ifdef ... #elseif ... #else ... # endif
branch which *uses* the __libc_stack_end "variable" would
hopefully be a speedup in comparison with the alternatives; from
system.c mentioned above:
#if defined(HAVE_LIBC_STACK_END)
R_CStackStart = (uintptr_t) __libc_stack_end;
#elif defined(HAVE_KERN_USRSTACK)
{
/* Borrowed from mzscheme/gc/os_dep.c */
int nm[2] = {CTL_KERN, KERN_USRSTACK};
void * base;
size_t len = sizeof(void *);
(void) sysctl(nm, 2, &base, &len, NULL, 0);
R_CStackStart = (uintptr_t) base;
}
#else
if(R_running_as_main_program) {
/* This is not the main progr...
2016 Feb 01
3
Wrong config check for __libc_stack_end
>>>>> Alba Pompeo <albapompeo at gmail.com>
>>>>> on Fri, 29 Jan 2016 08:23:26 -0200 writes:
> Here is my log from 'make check' using an Intel i5 64-bit
> processor - http://pastebin.com/raw/N6SYAuFX Here is
> Isaac's log from 'make check' using an Intel Atom 32-bit
> processor -