Need help to compile Apllication binaries

harsh poshtiwala hiharsh at gmail.com
Wed Nov 7 15:25:21 UTC 2007


Hi All,


I have flashed uclibc baes kernel and root file system on ARM926
EJS based target.

I didn't cross compile application binaries with uclibc_small
cross compiler, but i had compiled it with arm-linux-gnueabi-
glibc_small.


When ever we try to execute the any APPLICATION binaries it gives
error message file not found

#pwd
#tcuSw

#./shu.out
sh: /.shu.out: not found

The same happens with all the application binaries.




Now as a quick check i compiled a "hello world" program on host
linux machine with arm-linux-uclibc_small cross compiler this
doesn't print anything on target but it doesn't give error "not
found"

#./a.out
#

what are your comments on this?

NOW I DECIDED TO COMPILE APPLICATIONS WITH UCLIBC_SMALL

I tried to compile our all application binaries with ulibc_small
cross compiler but it failed and looks like ulibc_small doesn't
have shared memory support how can we add that in uclibc?


/cm_data/tcu/ap/g1/build/> vim makefile
/cm_data/tcu/ap/g1/build/> make all
/ptr/local/tools/WindRiver/ARM/gnu/3.4.4-wrlinux-1.4/x86-
linux2/bin/arm-wrs-linux-gnueabi-arm-uclibc_small-gcc
-g -fno-omit-frame-pointer -mcpu=arm926ej-s -pipe -MD -MP
-DARCH=arm -c -o obj_arm/onmu.o
-I/cm_data/tcu/ap/common/kernel/frameDriver/include
-I/cm_data/tlmsystem/AirInterface/ATP/ATP_C/src
-I/cm_data/tcu/ap/common/inc
-I/cm_data/tcu/ap/common/third_party/curl/curl-
7.17.0/include/curl
-I/cm_data/tcu/ap/common/kernel/frameDriver/module
-I/cm_data/tcu/ap/common/kernel/frameDriver/lib  -DONMU_TEST
-DPMU_TEST -DCNCM_TEST  -DVICM_UNIT_TEST -DPACK_MSG -DVERSION=
-DPLATFORM_ARM  -mfloat-abi=soft -DTARGET_PLATFORM
/cm_data/tcu/ap/common/src/onmu.c
<unknown> tried to exec get_feature but failed (No such file or
directory)
/ptr/local/tools/WindRiver/ARM/gnu/3.4.4-wrlinux-1.4/x86-
linux2/bin/arm-wrs-linux-gnueabi-arm-uclibc_small-gcc
-g -mcpu=arm926ej-s -o bin_arm/onmu.out -DONMU_TEST -DPMU_TEST
-DCNCM_TEST  -DVICM_UNIT_TEST -DPACK_MSG -DVERSION=
-DPLATFORM_ARM  -mfloat-abi=soft -DTARGET_PLATFORM obj_arm/onmu.o
obj_arm/tfwApi.o obj_arm/cpuApi.o obj_arm/cpuStaticFileParse.o
obj_arm/mr.o obj_arm/mrTrace.o
/cm_data/tcu/ap/common/kernel/frameDriver/libdrv.a
obj_arm/tracelogger.o bin_arm/htp_arm.a -lm -lrt -lpthread
obj_arm/cpuApi.o: In function `updateDynamicConfig':
/cm_data/tcu/ap/common/src/cpuApi.c:147: undefined reference to
`shm_open'
obj_arm/cpuStaticFileParse.o: In function `initStaticConfig':
/cm_data/tcu/ap/common/src/cpuStaticFileParse.c:236: undefined
reference to `shm_open'
/cm_data/tcu/ap/common/src/cpuStaticFileParse.c:262: undefined
reference to `shm_unlink'
/cm_data/tcu/ap/common/src/cpuStaticFileParse.c:263: undefined
reference to `shm_open'
obj_arm/cpuStaticFileParse.o: In function `cleanupStaticInfo':
/cm_data/tcu/ap/common/src/cpuStaticFileParse.c:338: undefined
reference to `shm_unlink'
obj_arm/mr.o: In function `mrExit':
/cm_data/tcu/ap/common/src/mr.c:96: undefined reference to
`shm_unlink'
obj_arm/mr.o: In function `shmAlloc':
/cm_data/tcu/ap/common/src/mr.c:309: undefined reference to
`shm_unlink'
/cm_data/tcu/ap/common/src/mr.c:310: undefined reference to
`shm_open'
obj_arm/mr.o: In function `getMrShm':
/cm_data/tcu/ap/common/src/mr.c:349: undefined reference to
`shm_open'
collect2: ld returned 1 exit status
make: *** [bin_arm/onmu.out] Error 1

-- 
Thanks & Regards
Harsh



More information about the uClibc mailing list