Hi,
I'm trying to build uclibc-ng-test, but I can't link with complex trigo functions (such as cacos, casin, catan, etc.). They are required for the following test targets: test-double, test-double-finite, test-float, test-float-finite, test-idouble, and test-ifloat. They are declared in uclibc-ng/sysdeps/linux/common/bits/cmathcalls.h, but I can't find their definitions.
Does uclibc-ng define them?
Thanks,
--
Laurent Thévenoux
lthevenoux(a)kalray.eu
Kalray S.A.
180 Avenue de l'Europe 38330 Montbonnot FRANCE
Hello.
I faced a problem I can't solve by myself so I will be grateful for any
help.
This code causes segfault:
#include <poll.h>
#include <pthread.h>
static void * thread_func (void *arg) {
int count = 0;
struct pollfd pfds[1] = { 0 };
poll(pfds, count, 1000);
}
int main () {
pthread_t thread;
if (pthread_create(&thread, NULL, thread_func, NULL)) return 1;
if (pthread_cancel(thread)) return 2;
if (pthread_join(thread, NULL)) return 3;
return 0;
}
This is how backtrace looks:
Thread 2 received signal SIG32.
Thread 2:
#0 0xb76b24f6 in __poll_nocancel (fds=0xb76a0414, nfds=0, timeout=1000)
at libc/sysdeps/linux/common/poll.c:27
#1 0xb76b2585 in __GI_poll (fds=0xb76a0414, nfds=0, timeout=1000) at
libc/sysdeps/linux/common/poll.c:208
#2 0x080484c3 in thread_func ()
#3 0xb77954b0 in start_thread (arg=0xb76ebba0) at
libpthread/nptl/pthread_create.c:285
#4 0xb76fcae7 in clone () at libc/sysdeps/linux/i386/clone.S:103
Thread 1:
#0 0xb77996f1 in pthread_join (threadid=3077487520, thread_return=0x0)
at libpthread/nptl/pthread_join.c:88
#1 0x08048522 in main ()
Architecture is i386.
Interesting thing is that segmentation fault only happens when uClibc-ng
built with debug enabled (DODEBUG=y).
Thank you.
Hi,
This patch enables to compile uClibc-ng in FDPIC mode with a compiler
defaulting to Thumb mode (eg. targeting a cortex-M processor).
OK?
Thanks,
Christophe
Added in kernel in kernel 3.10 in
1ff3c9677bff ("timekeeping: Add CLOCK_TAI clockid")
NOTE: CLOCK_SGI_CYCLE was not added, as it has been lately removed.
Signed-off-by: Petr Vorel <petr.vorel(a)gmail.com>
---
Hi,
added in glibc 2.21 and in musl 0.9.12.
Kind regards,
Petr
---
libc/sysdeps/linux/common/bits/time.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libc/sysdeps/linux/common/bits/time.h b/libc/sysdeps/linux/common/bits/time.h
index c4269ae47..e35fa867f 100644
--- a/libc/sysdeps/linux/common/bits/time.h
+++ b/libc/sysdeps/linux/common/bits/time.h
@@ -65,6 +65,8 @@
# define CLOCK_REALTIME_ALARM 8
/* Like CLOCK_BOOTTIME but also wakes suspended system. */
# define CLOCK_BOOTTIME_ALARM 9
+/* Like CLOCK_REALTIME but in International Atomic Time. */
+# define CLOCK_TAI 11
/* Flag to indicate time is absolute. */
# define TIMER_ABSTIME 1
--
2.19.1
Hi,
I'm having an issue where it seems recvmmsg/sendmmsg is being included into
the c library regardless of kernel version. I work with kernel versions <
2.6.33 before this feature was included. When compiling applications,
autoconf is then mistakenly told from the c-library that recvmmsg/sendmmsg
is supported by the kernel, resulting in runtime errors. I use buildroot
to compile my toolchains.
Looking through uclibc-ng git, it looks like this feature was added with
this commit.
https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=6e15fafa200666…
thanks,
Lance Fredrickson
Hello,
On Sat, Oct 06, 2018 at 12:00:02PM +0200, devel-request(a)uclibc-ng.org wrote:
> Message: 1
> Date: Fri, 5 Oct 2018 07:48:40 -0600
> From: Lance Fredrickson <lancethepants(a)gmail.com>
> To: devel(a)uclibc-ng.org
> Subject: [uclibc-ng-devel] Fwd: recvmmsg/sendmmsg not in kernel <
> Linux 2.6.33
> Message-ID: <fc65bbd1-8cfa-f4cb-9a5b-25e21a273494(a)gmail.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hi,
>
> I'm having an issue where it seems recvmmsg/sendmmsg is being included
> into the c library regardless of kernel version. I work with kernel
> versions < 2.6.33 before this feature was included. When compiling
> applications, autoconf is then mistakenly told from the c-library that
> recvmmsg/sendmmsg is supported by the kernel, resulting in runtime
> errors. I use buildroot to compile my toolchains.
>
> Looking through uclibc-ng git, it looks like this feature was added with
> this commit.
> https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=6e15fafa200666…
+# ifdef __NR_recvmmsg
^^^^^^^^^^^^^
+ return (ssize_t)INLINE_SYSCALL(recvmmsg, 5, sockfd, msg, vlen, flags, tmo);
+# else
......
+ return (ssize_t)__socketcall(SYS_RECVMMSG, args);
+# endif
+}
You kernel define __NR_recvmmsg in unistd.h ?
Best Regards
Guo Ren