Busybox hwclock failing to build with musl RISC-V 32-bit: SYS_settimeofday undefined

2024-04-07 Thread Thomas Petazzoni
(NULL, tz); #endif if (ret) bb_simple_perror_msg_and_die("settimeofday"); } I am not sure whether this is a Busybox problem or a musl problem, which is why I'm cross-posting on both mailing lists. Thanks a lot in advance for your feedback, Thomas -- Thomas Petazzon

Busybox hwclock failing to build with musl RISC-V 32-bit: SYS_settimeofday undefined

2024-04-07 Thread Thomas Petazzoni
(NULL, tz); #endif if (ret) bb_simple_perror_msg_and_die("settimeofday"); } I am not sure whether this is a Busybox problem or a musl problem, which is why I'm cross-posting on both mailing lists. Thanks a lot in advance for your feedback, Thomas -- Thomas Petazzon

Re: bbox: musl versus uclibc

2017-08-16 Thread Thomas Petazzoni
www.uclibc.org domain (or the server itself) to it. Cc'ing Waldemar, who maintains uClibc-ng. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com ___ busybox mailing list bu

Re: bbox: musl versus uclibc

2017-08-16 Thread Thomas Petazzoni
ibc-ng is alive at https://uclibc-ng.org/. Regular releases (actually more regular than musl in recent months!), updated web site, responsive maintainer, lots of cleanup in the code base, and QA effort. So saying that uClibc is dead is completely incorrect. Best regards, Thomas -- Thomas Petaz

TLS support fails to build on i686 with gcc 4.8

2017-07-30 Thread Thomas Petazzoni
]: *** Waiting for unfinished jobs Best regards, Thomas Petazzoni -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo

Re: [PATCH 2/2] arch/{sparc,sparc64}/Makefile: define ARCH_FPIC

2017-07-19 Thread Thomas Petazzoni
t; > 0 4 > > > > So the size is only 0x21c. > > > > Any idea on how to investigate this further? > > I think what happens is compiler does not know where applet_names[] are, > assumes it's in another library and generates a reloc. > Then, the "short" fpic reloc does not work at link time. And so, from there? Is it a compiler bug? Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

Re: [PATCH 2/2] arch/{sparc,sparc64}/Makefile: define ARCH_FPIC

2017-07-18 Thread Thomas Petazzoni
he 8 KB limit detailed in gcc's documentation about -fpic vs. -fPIC: $ ./output/host/usr/bin/sparc-linux-readelf -a output/target/lib/libbusybox.so.1.26.2 | grep "\.got" [17] .got PROGBITS000dc000 0cc000 00021c 04 WA 0 0 4 So the size is only 0x21c. Any idea

[PATCH 2/2] arch/{sparc,sparc64}/Makefile: define ARCH_FPIC

2017-07-14 Thread Thomas Petazzoni
reach this limit, and we hit it when building Busybox on SPARC/SPARC64 with the CONFIG_BUILD_LIBBUSYBOX=y option enabled. Therefore, this commit redefines ARCH_FPIC as -fPIC on sparc and sparc64 to solve this issue. Signed-off-by: Thomas Petazzoni <thomas.petazz...@free-electrons.com> ---

[PATCH 1/2] Makefile: include per-arch Makefile before Makefile.flags

2017-07-14 Thread Thomas Petazzoni
Makefile.flags contains: ARCH_FPIC ?= -fpic ARCH_FPIE ?= -fpie However, arch/$(ARCH)/Makefile gets included *after* Makefile.flags, and therefore doesn't get the chance to provide its own value. Fix this by including arch/$(ARCH)/Makefile *before* Makefile.flags. Signed-off-by: Thomas

Re: [PATCH] modutils: support finit_module syscall

2017-03-15 Thread Thomas Petazzoni
le init function was executed but failed (in which case we don't want to fall back on init module) from the cases where finit_module() failed because the module was compressed, or any other issue not related to the module init function failing. Ideas? Thanks, Thomas -- Thomas Petazzoni, CTO,

Re: Busybox binary ends up only 340 bytes

2016-04-17 Thread Thomas Petazzoni
on STM32 platforms. You could give it a try, it builds a working uClibc-ng based toolchain and Busybox. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ___ busy

Re: [PATCH v2] applets: Add installation of individual binaries

2015-06-28 Thread Thomas Petazzoni
+ fi else if [ $2 = --hardlinks ]; then bb_path=$prefix/bin/busybox -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ___ busybox

Re: A patch from SliTaz

2013-11-03 Thread Thomas Petazzoni
/libbb.h:40:0, Warning: #warning redirecting incorrect #include sys/poll.h to poll.h [-Wcpp] I think this was fixed in Busybox recently. Yes, see http://git.buildroot.net/busybox/commit/?id=af4f0e48eccd1ab1abe361bb70960a8b73775722 Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux

[PATCH 0/3] Build/warning fixes for the musl C library

2013-10-05 Thread Thomas Petazzoni
Hello, The musl C library, available from www.musl-libc.org is an alternative C library. The following three patches fix some warnings or build failures when building Busybox against the musl C library. Best regards, Thomas Thomas Petazzoni (3): libbb: use poll.h instead of sys/poll.h

[PATCH 2/3] network/ifconfig: include linux/if_slip.h instead of net/if_slip.h

2013-10-05 Thread Thomas Petazzoni
The musl C library doesn't provide the net/if_slip.h since userspace applications can just as well use the linux/if_slip.h kernel header. This commit fixes the build of the ifconfig applet with the musl C library. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com

[PATCH 3/3] networking/libiproute: use linux/if_packet.h instead of net/if_packet.h

2013-10-05 Thread Thomas Petazzoni
with the musl C library. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- networking/libiproute/iplink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index bad2017..32ccb1c 100644

[PATCH 1/3] libbb: use poll.h instead of sys/poll.h

2013-10-05 Thread Thomas Petazzoni
-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- include/libbb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libbb.h b/include/libbb.h index e520060..f03f454 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -37,7 +37,7 @@ #include libgen.h

Re: [PATCH 0/3] Build/warning fixes for the musl C library

2013-10-05 Thread Thomas Petazzoni
tag, because I needed those patches to integrate the musl support in Buildroot. Would it be possible to get the poll.h fix merged as well? Thanks! Thomas -- Thomas Petazzoni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com

Re: Thank you for not using autoconf

2013-06-03 Thread Thomas Petazzoni
is concerned, autotools-based or CMake-based packages are *way* much easier to handle than any hand-written build system. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: Fix resource.h related build failures on glibc trunk

2012-10-28 Thread Thomas Petazzoni
/passwd.c:104:16: warning: unused variable ‘rlimit_fsize’ [-Wunused-variable] ... miscutils/time.c:23:16: error: field ‘ru’ has incomplete type Fix this by including sys/resource.h. Signed-off-by: Markus Trippelsdorf mar...@trippelsdorf.de Acked-by: Thomas Petazzoni thomas.petazz...@free

Re: BeagleBone for ALSA jackd

2012-10-25 Thread Thomas Petazzoni
you need. My favorite is Buildroot, but there are plenty of others: PTXdist, OpenEmbedded, Yocto, and more. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

udhcpc -r broken ?

2011-08-02 Thread Thomas Petazzoni
... Sending select for 192.168.0.14... Sending discover for 192.168.0.14... [...] Is it my understanding of the -r option that is incorrect, or the behavior of udhcpc ? Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training

Re: Config error - PHP with HTTPD

2011-08-02 Thread Thomas Petazzoni
httpd config file: *.php:/path/to/your/php Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ___ busybox mailing list busybox@busybox.net

[PATCH] zcip.script: fix ip environment variable

2011-07-28 Thread Thomas Petazzoni
The environment variable containing the IP address allocated by zcip is ip and not IP. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- examples/zcip.script |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/zcip.script b/examples