Questions tagged [uclibc]

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

110 questions
2
votes
1 answer

Setting up cross-compiler for MIPS-I version 1

I was looking for cross compiler which is compiling for MIPS-I version 1 target and I found this: ftp://ftp.dd-wrt.com/others/sourcecode/toolchains/current-toolchains.tar.bz2 After archive extraction I copied…
user1978386
  • 237
  • 8
  • 19
2
votes
1 answer

arm-angstrom-linux-gnueabi-gcc linker fails to link against uclibc

I am trying to build an application for angstrom linux (that uses uclibc instead of libstdc++, in my case). I am using bitbake and openembedded. With a simple toolchain I am able to build successfully by adding only -muclibc flag. With bitbake my…
gc5
  • 9,468
  • 24
  • 90
  • 151
1
vote
1 answer

Using a buildroot created toolchain outside of Buildroot?

I'm trying to compile XFCE using Uclibc. Uclibc was generated by crosstool-ng via buildroot. How do i use the toolchain to build something outside of buildroot? I've had a look at the instructions on both buildroot's and uclibc's website and they…
Xleedos
  • 948
  • 2
  • 9
  • 17
1
vote
1 answer

Linux + uClibc + pthread (C) : application freezes at the end

I'm trying to build my own uClibc embedded system. I encountered some problems, but after 2 days, I solved all of them. Only one is remaining: pthread doesnt work correctly. Here is simple program, from python's configure script: #include…
user1080431
1
vote
1 answer

Do uClibc/glibc provide any feature to redirect errors to syslog?

Do uClibc/glibc provide any feature to redirect errors to syslog? The erros like "can't resolve symbol" need to go to syslog instead of stderr on console.
Lunar Mushrooms
  • 8,358
  • 18
  • 66
  • 88
1
vote
0 answers

How to get the prebuilt binary of `uclibc`?

I'm planing to collect the libc.so generated by uclibc/musl in different arch(arm,aarch64,mips,etc) to do some reverse enigneering work. But I find it slow to build a whole toolchain on different arch using buildroot. Is there a platform holds the…
syheliel
  • 151
  • 1
  • 7
1
vote
0 answers

Segfault when writing to cerr iostream, uclibc-ng unhandled exception

The following code executes fine when compiled using GLIBC (g++ on Ubuntu 18.04). But when cross-compiling with a buildroot toolchain that uses uclibc with C++ support (g++), the result is a segmentation fault. Inspection of the core dump indicates…
ARob
  • 11
  • 2
1
vote
1 answer

How to get uclibc visible in crosstool-ng config menu?

I'm trying to build a crosstool-ng toolchain and I'm following the bootlin training. In this training, it seems that the C library that has been chosen is the UCLIBC library. However, after I downloaded the prebuilt toolchain from github repository…
Y.G
  • 51
  • 2
  • 8
1
vote
2 answers

Program compiled with glibc can run on Linux with uClibc?

I have a program compiled using glibc and I need it runs on a MIPS target with Openwrt firmware using uClibc. Is this possible? I put the program in Openwrt and when I try to run it the result is: not found. What is the problem? Thank you.
iteam
  • 11
  • 3
1
vote
2 answers

GCC link against .so file without souce code

I am trying to compile compile a simple "hello world" program for an Axis A210 (cris architecture). I managed to get download GCC from the vendor, but it came with glibc, and the camera is running uClibc-0.9.27. I pulled the file…
redfast00
  • 1,363
  • 1
  • 12
  • 23
1
vote
0 answers

How to correctly compile uClibc++ with musl?

I need to compile c++ code with uClibc++ and musl. To do that, first I must compile uClibc++ agains musl. But trying to do so, I have run to a few errors, like missing __snprintf_chk and __cxa_thread_atexit_impl In short: how are you suppose to do…
789
  • 718
  • 1
  • 10
  • 30
1
vote
1 answer

Compiling with deleted functions fails with uclibc

I have a project I am porting from glibc to uclibc, and ran into this oddity. gcc --std=c++11 Foo.cpp -o Foo-glibc x86_64-linux-uclibc-gcc --std=c++11 Foo.cpp -o Foo-uclibc // Compiles under glibc and uclibc class Foo { Foo() = default; …
jdm0x09912
  • 23
  • 5
1
vote
1 answer

package manager for docker container running image busybox:uclibc

I want to install net-tools on one of my running containers, which is running busybox:uclibc image. But this image doesn't have any package manager like apt-get or apk. Is there a way to do it or should I just make changes to my image?
ashutosh singh
  • 76
  • 3
  • 11
1
vote
1 answer

MIPS GCC cross-compiler build fails: "cannot find -lc"

I am trying to set up a GCC 4.9.4 cross-compiler for a QCA955X-based router with Linux 2.6.31. This is a MIPS32R2-abi CPU that uses uClibc-0.9.30.1 (as found in /lib.) Due to this, I have decided to compile a GCC 4.x with the matching uClibc and…
1
vote
0 answers

How to build GCC CC with old linux kernel headers; buildroot

I am attempting to build a cross compiling toolchain using a buildroot package from '09. Unfortunately, I don't have the luxury of upgrading an existing busybox system on my target platform. Background: The target platform runs on an arm926EJ (5TE…