uclibc is a version of the C standard library for embedded systems
Questions tagged [uclibc]
110 questions
0
votes
0 answers
is dst a special environment variable
I am trying to build code under OpenWRT. I find that the uClibc compilation breaks [fails to build saying linux/errno.h is not found] if I have an environment variable [defined as export dst=/projects//... on a network-share].
If I change the name…

pkal
- 45
- 4
0
votes
1 answer
Custom glibc in non-standard path on machine with uclibc and gcc compiled against uclibc
I have machine with uClibc, and I've managed to get glibc work on it using a simple wrapper I made.
It can compile simple programs like hello world, and almost any other c program.
But, it doesn't compile most of gnu and others programs because of…

Ivan
- 9
- 4
0
votes
1 answer
open dir failed. Value too large for defined data type
I have tried all the existing solutions in stack overflow for similar questions :
Mostly it was suggested to declare _FILE_OFFSET_BITS to 64. But this did not work.
Sample Code :
dir = opendir("/data/system/dropbox");
if (!dir) {
…

Sandeep
- 18,356
- 16
- 68
- 108
0
votes
1 answer
unhandled MPU fault on Cortex-M3 with uclinux and uclibc
This is a hard question but I hope someone could help ;)
Here is the crash I have from simplest app which just calls pthread_create():
/ # /opt/zpm_thread
00032 : pthread_initialize: initial thread stack bounds: bos=0x1, tos=0xffffffff
00032 :…

pulse
- 303
- 4
- 18
0
votes
1 answer
How to build FLAT userspace binary for ucLinux on buildroot with arm2010q1 toolchain
I have a buildroot system for cortex-M3 without MMU based on ucLinux kernel 2.6.33. Support for FLAT, ZFLAT, SHARED_FLAT enabled in kernel.
Inside buildroot everything is set to M3 etc.
I have working system with working kernel and busybox (which…

pulse
- 303
- 4
- 18
0
votes
0 answers
How to Cross Compile a source code using Clang?
I have clang 3.4 installed in my host machine(Ubuntu 12.04 LTS) and trying to cross compile a simple C++11 program to execute in a mips32r1(little endian) + uclibc environment.
While trying to cross compile, I'm getting below error,(attached a…

Arunprasad Rajkumar
- 1,374
- 1
- 15
- 31
0
votes
1 answer
Need to build automake for the host in buildroot
I have just upgraded to latest version of buildroot. With the previous version after buildroot was done, I would see automake/autoconf in my uclibc/usr/bin. But with the latest version of buildroot ( 2014 ), I dont see that anymore.
Can anyone let…

eldukae
- 91
- 1
- 2
- 8
0
votes
1 answer
Strange compiler behaviour
I'm trying to compile my project, which uses boost.
Main integer type for me is a int32_t and int64_t from sys/types.h.
If I compile project with host-system compiler (GCC 4.8.3, x86_64) process finished with success and binary file is correct work,…

Dcow
- 1,413
- 1
- 19
- 42
0
votes
2 answers
uClibc vfork() is causing segmentation fault
I am using armv7 for openwrt development and facing a segfault caused by vfork.
I have wrote a small test program with the following segments:
...
pid_t child_t;
if((child_t = vfork()) < 0)
{
printf("error!\n");
…

dear_tzvi
- 745
- 6
- 19
0
votes
2 answers
C http server stops after unpredictable time
I am writing a custom HTTP server in C for my OpenWrt router. It makes use of the uclibc library. I am only using one static buffer which I am very careful not to overflow, and no multi-threading is involved. It doesn't contain any complex data…

user3650388
- 11
- 2
0
votes
1 answer
Why the function sleep() can not work when the klee execute the Objectfile?
Yesterday I asked question on stackoverflow, but I have not described it clearly, so I change the way to ask, maybe make the problem clear.
First, I modify the example get_sign.c which the klee provide, I include the unistd.h in the program, and…

wangxf
- 160
- 1
- 11
0
votes
1 answer
how to correct config buildroot/uCLibc to get the spawn function
I try to use buildroot (2014.02) to generate ucLibc(0.9.33.2) Toolchain for mips, but it would not generate the spawn.h and other spawn related files on output/build/uclibc-0.9.33.2/ nor output/host folder,
I confirmed that the…

Yehudi
- 189
- 1
- 1
- 11
0
votes
1 answer
pthread_exit() is reached before pthread_join call
Having this piece of code:
#include
#include
#include
#include
void* PrintHello(void* data){
printf("Hello from new thread\n");
pthread_exit(NULL);
}
int main(int argc, char* argv[]){
…

MABC
- 576
- 2
- 11
- 29
0
votes
1 answer
Fallback ipv4 mechanism when ipv6 communication failed
I have some problem to understand an issue which concerns fallback mechanism in network communication.
Setup : Embedded device (mips) with uclibc and busybox
I am a client with ipv6 adress. I need to contact a service on xxx.com. When I test the…

ArthurLambert
- 749
- 1
- 7
- 30
0
votes
2 answers
Memory fault in memcpy call
Im facing with a "memory fault" when calling to:
extern void *memcpy (void *__restrict __dest,
__const void *__restrict __src, size_t __n)
__THROW __nonnull ((1, 2));
This is the piece of code:
fprintf(stderr, "sysconfig line 440…

MABC
- 576
- 2
- 11
- 29