Questions tagged [uclibc]

uclibc is a version of the C standard library for embedded systems

110 questions
0
votes
1 answer

How do I do a static build with uclibc

I have a uclibc toolchain that works. I can compile a simple hello.c program statically (arm-linux-gcc hello.c -o hello -static -s) but source packages are automatically compiled dynamically. How can I change the default to static?
jocala
  • 31
  • 2
  • 6
0
votes
1 answer

is it possible to cross compile (with uclibc toolchain) a program which uses a shared library that causes 'undefined reference to printf@GLIBC_2.0'

I'm cross compiling a SDK for an embedded board using pre-built mips-linux-uclibc- toolchain. While compiling a set of sources that makes use of libom_api.so library causes an error "undefined reference to `printf@GLIBC_2.0'" and 10 other symbols…
0
votes
1 answer

Unable to cross-compile Python-2.7.18 for x86,uclibc

I'm trying to cross-compile Python 2.7.18 for an x86,uclibc machine using a crosstool-ng example toolchain. The commands used are the following: CONFIG_SITE=config.site…
m.dorian
  • 489
  • 1
  • 6
  • 24
0
votes
1 answer

Unable to cross-compile dropbear for uclibc

I am trying to cross-compile Dropbear for an x86 machine where glibc is missing and instead, uclibc is being used. For that aim, I have cross-compiled zlib for this same instruction set using a custom crosstool-ng toolchain and installed it to a…
m.dorian
  • 489
  • 1
  • 6
  • 24
0
votes
0 answers

printf("%m") reports an error yet errno is set to 0

I'm connecting to a TCP socket, nonblockingly. printf("%m") prints out Operation now in progress yet errno is set to 0. I save errno's value before printing too, to make sure printf doesn't fiddle with it. It's weird - printf should output Success.…
0
votes
0 answers

sem_wait() from uClibc on MIPS platform returns Not Implemented

It so happend that we are forced to use Linux 2.6.21 which was released in 2007 on MIPS platform, and no, changing kernel is out of the question, or rather the question is really expensive. For that I'm building my own toolchain using crosstool-ng…
xphil
  • 1
  • 2
0
votes
0 answers

ERROR: unknown type name '__float128' while compiling stdlib.h

Trying to compile tcpdump package with uClibc Getting error while compiling stdlib.h ERROR: unknown type name '__float128' while compiling stdlib.h Unable to identify why the error is. I don't know whether i am missing any dependencies.
Sheik
  • 17
  • 7
0
votes
0 answers

Cross-compiling PortAudio for MIPS fails with "cannot find -lasound" despite setting -L/usr/lib

I'm trying to compile an example C program that links against PortAudio for a MIPSEL OpenWRT architecture targeting the MT7688 chip. My starting point is this 351MB Docker image that has a working MIPSEL GNU uclibc toolchain (run source env.sh to…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
0
votes
0 answers

executable program loads dynamic library multiple times when observe by strace

I have built a complex executable program in MIPS against uCLibc library and many other dynamic shared libraries. This program works fine but it takes over 20 seconds to load, when I observed it by "strace", I found that it keep opening and closing…
Skyland06
  • 11
  • 2
0
votes
1 answer

Buildroot Cross Compiling GDB Server for MIPS32

I'm trying to cross compile a version of GDB server from source for the MIPS32 architecture. I'm using an x86_64 machine. I'm using the Buildroot uClibc compiler for MIPS (mips-buildroot-linux-uclibc-gcc). From the GDB server directory I run the…
CS Student
  • 1,613
  • 6
  • 24
  • 40
0
votes
0 answers

Undefined reference to std::to_string while linking

I am trying to cross-compile a program with uClibc and I am always getting an error with undefined reference to std::to_string while linking is performed. I already applied the workaround, which should help to solve this issue: #include…
Jakub J.
  • 11
  • 6
0
votes
0 answers

Is uClibc only used in Linux based Operating Systems?

uClibc (or uClibc-ng) is stated as a C library for embedded Linux systems. The documentation cites Linux everywhere and say the library is very carefully optimized for Linux. Although the library has been specially developed to be used in Linux, is…
user4546925
0
votes
1 answer

Using uclibc linker for glibc compiled binary?

I have a binary which I need to get working on an embedded system which uses uclibc, the binary was compiled against glibc, should this work? I get an error saying that the binary doesn't exist when I try to run it, so I checked what libraries were…
Paul
  • 5,756
  • 6
  • 48
  • 78
0
votes
1 answer

uClibc shared libs unloading during exit()

I'm using a shared library that creates worker threads during initialization. The app is linked with uClibc. When it returns from main() it crashes in __pthread_cond_wait() or similar from a worker thread that the shared lib doesn't properly stop…
patraulea
  • 652
  • 2
  • 5
  • 26
0
votes
1 answer

How to find the allocated size pointed by dynamic and static pointer in C - uclibc ,Linux, mips?

Situation - I am using a third party stack. I have a source code of the third party. This code is quite clumsy and a there are a lot of problems related to buffer over-run. My Solution - In order to trace down this issue, I am overriding the…
dexterous
  • 6,422
  • 12
  • 51
  • 99