Displaying 20 results from an estimated 48 matches for "__glibc__".
2016 Feb 17
1
Re: [PATCH supermin v2 4/4] init: Debug which libc is in use.
...--- a/init/init.c
> +++ b/init/init.c
> @@ -94,6 +94,15 @@ main ()
> print_uptime ();
> fprintf (stderr, "supermin: ext2 mini initrd starting up: "
> PACKAGE_VERSION
> +#if defined(__dietlibc__)
> + " dietlibc"
> +#elif defined(__GLIBC__)
> + " glibc"
This needs to be put as last, as libc implementations that copied the
glibc headers (such as uclibc) define __GLIBC__...
> +#elif defined(__NEWLIB_H__)
> + " newlib"
> +#elif defined(__UCLIBC__)
> + " uClibc"...
2020 Mar 28
0
[klibc:update-dash] dash: system: Disable glibc warning on sigsetmask
...ions(+), 1 deletion(-)
diff --git a/usr/dash/system.h b/usr/dash/system.h
index c8424f75..f23e3863 100644
--- a/usr/dash/system.h
+++ b/usr/dash/system.h
@@ -36,8 +36,17 @@
static inline void sigclearmask(void)
{
-#ifdef HAVE_SIGSETMASK
+#if defined(HAVE_SIGSETMASK) && \
+ (!defined(__GLIBC__) || \
+ (defined(__GNUC__) && (__GNUC__ * 1000 + __GNUC_MINOR__) >= 4006))
+#ifdef __GLIBC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
sigsetmask(0);
+#ifdef __GLIBC__
+#pragma GCC diagnostic pop
+#endif
#else
sigs...
2005 Oct 16
1
getting dmraid to use klibc
...nclude/sys/stat.h.
/usr/lib/klibc/include/sys/stat.h: In function 'mkfifo':
/usr/lib/klibc/include/sys/stat.h:28: error: 'S_IFMT' undeclared (first use in
this function)
after investigating a little I found out that <features.h> is being included (is this
right?) and defines __GLIBC__ and thus S_IFMT is not being defined from
/usr/include/linux/stat.h:10
of course this fixes the problem in features.h:291
#ifndef __KLIBC__
#define __GLIBC__ 2
#define __GLIBC_MINOR__ 3
#endif
but I'm not sure whether this is the right approach and/or something should be
changed in klibc/g...
2004 Oct 25
1
failed to cross compile 3.0.7
Hi, All,
I try to crosee compile 3.0.7 for mips, but failed and
got the following message:
Configure: error: cannot run test program while cross
compiling
Can anybody give me a hint about what I did may be
wrong?
Thanks
Youren
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
2010 Apr 02
1
[PATCH] dash: cd fix getpwd
...t>
Cc: Herbert Xu <herbert at gondor.apana.org.au>
---
usr/dash/cd.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/usr/dash/cd.c b/usr/dash/cd.c
index 8a23110..ba9a1bc 100644
--- a/usr/dash/cd.c
+++ b/usr/dash/cd.c
@@ -253,12 +253,13 @@ getpwd()
{
#ifdef __GLIBC__
char *dir = getcwd(0, 0);
+ if (dir)
+ return dir;
#else
char buf[PATH_MAX];
- char *dir = getcwd(buf, sizeof(buf));
+ if(getcwd(buf, sizeof(buf)))
+ return savestr(buf);
#endif
- if (dir)
- return dir;
sh_warnx("getcwd() failed: %s", strerror(errno));
return nullstr;
}
--...
2018 Sep 04
8
[Bug 1277] New: v1.8.0 FTBFS on Void Linux due to conflicting definitions
https://bugzilla.netfilter.org/show_bug.cgi?id=1277
Bug ID: 1277
Summary: v1.8.0 FTBFS on Void Linux due to conflicting
definitions
Product: iptables
Version: unspecified
Hardware: x86_64
OS: other
Status: NEW
Severity: blocker
Priority: P5
Component: unknown
2016 Oct 03
3
(Thin)LTO llvm build
...:string &Name) {
there is reference to morestack:
#if defined(__i386__) || defined(__x86_64__)
// __morestack lives in libgcc, a static library.
if (&__morestack && Name == "__morestack")
return (uint64_t)&__morestack;
#endif
#endif // __linux__ && __GLIBC__
On Mon, Oct 3, 2016 at 3:32 PM, Teresa Johnson <tejohnson at google.com> wrote:
>
>
> On Mon, Oct 3, 2016 at 2:59 PM, Xinliang David Li <xinliangli at gmail.com>
> wrote:
>
>> Is -fsplit-stack option used anywhere? My wild guess is that with ld.bfd,
>> the...
2014 Apr 22
2
[LLVMdev] [RFC] [PATCH] Fix for sys::Process::GetMallocUsage() when using ptmalloc2 allocator in glibc
...nning the unit test)
is to build and run the attached "malloc-test.c" program on a system
that uses glibc. You will see that after malloc'ing 256MiB of memory
uordblks is still zero but hblkhd has increased.
This is an RFC because I'm not very happy with my use of...
#if defined(__GLIBC__)
This will work in the common case where glibc is being used with its
standard allocator. However it will completely fail in the case where
LLVM is being used as a library and a developer chooses to use a
different allocator. For example if tcmalloc [2] is used then the
calculation is wrong[3] bec...
2016 Oct 03
2
(Thin)LTO llvm build
...>
>> #if defined(__i386__) || defined(__x86_64__)
>> // __morestack lives in libgcc, a static library.
>> if (&__morestack && Name == "__morestack")
>> return (uint64_t)&__morestack;
>> #endif
>> #endif // __linux__ && __GLIBC__
>>
>>
>> On Mon, Oct 3, 2016 at 3:32 PM, Teresa Johnson <tejohnson at google.com>
>> wrote:
>>
>>>
>>>
>>> On Mon, Oct 3, 2016 at 2:59 PM, Xinliang David Li <xinliangli at gmail.com>
>>> wrote:
>>>
>>>&g...
2017 Jun 04
2
LLVM compilation problem with musl
I'm trying to compile LLVM with musl libc library. The compilation process fails on the following:
x86_64-linux-musl-g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I../lib/Support -Iinclude -I../include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter
2018 May 14
1
Unable to build 'lld' on Mac OS 10.9
...ooking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - notfound
-- Looking for setenv
-- Looking for setenv - found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for dladdr
-- Looking for dladdr - found
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - notfound
-- Looking for sched_getaffinity
-- Looking for sched_getaffinity -not found
-- Looking for CPU_COUNT
-- Looking for CPU_COUNT - notfound
-- Looking for pthread_getname_np
-- Looking for pthread_getname_np -found
-- Looking for pthread_setname_np
-- Look...
2012 Oct 12
2
[LLVMdev] cmake+ninja build error for compiler-rt sources
...g for argz_insert
-- Looking for argz_insert - found
-- Looking for argz_next
-- Looking for argz_next - found
-- Looking for argz_stringify
-- Looking for argz_stringify - found
-- Looking for dlerror
-- Looking for dlerror - found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test HAVE_INT64_T
-- Performing Test HAVE_INT64_T - Success
-- Performing Test HAVE_UINT64_T
-- Performing Test HAVE_UINT64_T - Success
-- Performing Test HAVE_U_INT64_T
-- Performing Test HAVE_U_INT64_T - Success
-- Performing Test HAVE_ERROR_T
-- Per...
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...t; > -- Looking for argz_next - found
> > -- Looking for argz_stringify
> > -- Looking for argz_stringify - found
> > -- Looking for dlerror
> > -- Looking for dlerror - found
> > -- Looking for dlopen
> > -- Looking for dlopen - found
> > -- Looking for __GLIBC__
> > -- Looking for __GLIBC__ - found
> > -- Performing Test HAVE_INT64_T
> > -- Performing Test HAVE_INT64_T - Success
> > -- Performing Test HAVE_UINT64_T
> > -- Performing Test HAVE_UINT64_T - Success
> > -- Performing Test HAVE_U_INT64_T
> > -- Performin...
2012 Oct 12
0
[LLVMdev] cmake+ninja build error for compiler-rt sources
...- found
> -- Looking for argz_next
> -- Looking for argz_next - found
> -- Looking for argz_stringify
> -- Looking for argz_stringify - found
> -- Looking for dlerror
> -- Looking for dlerror - found
> -- Looking for dlopen
> -- Looking for dlopen - found
> -- Looking for __GLIBC__
> -- Looking for __GLIBC__ - found
> -- Performing Test HAVE_INT64_T
> -- Performing Test HAVE_INT64_T - Success
> -- Performing Test HAVE_UINT64_T
> -- Performing Test HAVE_UINT64_T - Success
> -- Performing Test HAVE_U_INT64_T
> -- Performing Test HAVE_U_INT64_T - Success
>...
2016 Oct 04
2
(Thin)LTO llvm build
...efined(__x86_64__)
>>>> // __morestack lives in libgcc, a static library.
>>>> if (&__morestack && Name == "__morestack")
>>>> return (uint64_t)&__morestack;
>>>> #endif
>>>> #endif // __linux__ && __GLIBC__
>>>>
>>>>
>>>> On Mon, Oct 3, 2016 at 3:32 PM, Teresa Johnson <tejohnson at google.com>
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Mon, Oct 3, 2016 at 2:59 PM, Xinliang David Li <
>>&g...
2011 Oct 25
0
[LLVMdev] [LLVMDev] Clang stopped compiling?
On Oct 25, 2011, at 6:09 AM, Marcello Maggioni wrote:
> Hi, I'm trying to compile the latest clang/llvm SVN versions and I get
> this error on multiple systems :
Linking, not compiling, but still.
I am getting a similar error when building this morning.
> Undefined symbols for architecture x86_64:
> "clang::Sema::checkPseudoObjectRValue(clang::Expr*)", referenced
2012 Oct 13
0
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...next - found
>> > -- Looking for argz_stringify
>> > -- Looking for argz_stringify - found
>> > -- Looking for dlerror
>> > -- Looking for dlerror - found
>> > -- Looking for dlopen
>> > -- Looking for dlopen - found
>> > -- Looking for __GLIBC__
>> > -- Looking for __GLIBC__ - found
>> > -- Performing Test HAVE_INT64_T
>> > -- Performing Test HAVE_INT64_T - Success
>> > -- Performing Test HAVE_UINT64_T
>> > -- Performing Test HAVE_UINT64_T - Success
>> > -- Performing Test HAVE_U_INT64_...
2016 Feb 17
0
[PATCH supermin v2 4/4] init: Debug which libc is in use.
...it/init.c
index 25d6bc6..38392c4 100644
--- a/init/init.c
+++ b/init/init.c
@@ -94,6 +94,15 @@ main ()
print_uptime ();
fprintf (stderr, "supermin: ext2 mini initrd starting up: "
PACKAGE_VERSION
+#if defined(__dietlibc__)
+ " dietlibc"
+#elif defined(__GLIBC__)
+ " glibc"
+#elif defined(__NEWLIB_H__)
+ " newlib"
+#elif defined(__UCLIBC__)
+ " uClibc"
+#endif
"\n");
read_cmdline ();
--
2.5.0
2016 Oct 04
2
(Thin)LTO llvm build
...gt; // __morestack lives in libgcc, a static library.
>>>>>> if (&__morestack && Name == "__morestack")
>>>>>> return (uint64_t)&__morestack;
>>>>>> #endif
>>>>>> #endif // __linux__ && __GLIBC__
>>>>>>
>>>>>>
>>>>>> On Mon, Oct 3, 2016 at 3:32 PM, Teresa Johnson <tejohnson at google.com>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> O...
2019 Jan 25
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...onversion(const char *, const char *);
-#ifdef HAVE_STRTOD
-static double getdouble(void);
-#endif
static int rval;
static char **gargv;
diff --git a/usr/dash/cd.c b/usr/dash/cd.c
index 89c6c30c..2d9d4b52 100644
--- a/usr/dash/cd.c
+++ b/usr/dash/cd.c
@@ -254,13 +254,16 @@ getpwd()
{
#ifdef __GLIBC__
char *dir = getcwd(0, 0);
+
if (dir)
return dir;
#else
char buf[PATH_MAX];
- if(getcwd(buf, sizeof(buf)))
+
+ if (getcwd(buf, sizeof(buf)))
return savestr(buf);
#endif
+
sh_warnx("getcwd() failed: %s", strerror(errno));
return nullstr;
}
diff --git a/usr/dash/trap.c b/u...