LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Mklibs command line (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/mklibs-command-line-4175442417/)

Seb-o-tronic 12-21-2012 04:39 AM

Mklibs command line
 
Hello,

Electronics design engineer, I had a training about embedded linux few days ago.

That was a two days traning about how to cross-compile the kernel and root-fs using fedora.

At home, I use ubuntu as an office computer. Computer science is not my job ... I'm just a desktop user of Linux.

From december 15th, I'm stuck with mklibs wich seems to disagree copying files to target lib directory.

I'm using ELDK 5.x, BusyBox and the last stable version of the kernel.

Here is what I'm receiving from mklibs command.

Code:

sebastien@seb-laptop:~/embedded/newdistro$ mklibs --target armv4t-gcc -D -L /home/sebastien/embedded/ELDK/armv4t/sysroots/armv4t-linux-gnueabi/usr/src/debug/eglibc-2.16-r15+svnr20393/eglibc-2_16/libc -d lib bin/busybox
Traceback (most recent call last):
  File "/usr/bin/mklibs", line 343, in <module>
    default_lib_path = multiarch(["/lib/", "/usr/lib/", "/usr/X11R6/lib/"])
  File "/usr/bin/mklibs", line 267, in multiarch
    stdout=subprocess.PIPE, stderr=devnull)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

And the system variables I'm using:
Code:

sebastien@seb-laptop:~/embedded/newdistro$ echo $CROSS_COMPILE
arm-linux-gnueabi-
sebastien@seb-laptop:~/embedded/newdistro$ echo $ARCH
arm
sebastien@seb-laptop:~/embedded/newdistro$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/sebastien/embedded/ELDK/armv4t/sysroots/i686-eldk-linux/usr/bin:/home/sebastien/embedded/ELDK/armv4t/sysroots/i686-eldk-linux/usr/bin/armv4t-linux-gnueabi:/home/sebastien/embedded/ELDK/armv4t/sysroots/armv4t-linux-gnueabi/usr/include:/home/sebastien/CodeSourcery/Sourcery_G++_Lite/bin/

Is there someone to help me going out of that trouble?

Thank you so much :)

jonassman 01-13-2013 03:13 AM

Hello,

I've got the same error while running mklibs --version

Code:
~$ mklibs --version
Traceback (most recent call last):
File "/usr/bin/mklibs", line 343, in <module>
default_lib_path = multiarch(["/lib/", "/usr/lib/", "/usr/X11R6/lib/"])
File "/usr/bin/mklibs", line 267, in multiarch
stdout=subprocess.PIPE, stderr=devnull)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

My system is Debian Wheezy
Kernel version - Linux 3.2.0-2-686-pae #1 SMP Fri Jun 1 18:56:14 UTC 2012 i686 GNU/Linux
Path - /home/myuser/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/jungo/bin:/sbin:/usr/sbin:/usr/local/sbin


Thanks for your help

Seb-o-tronic 03-26-2013 05:32 AM

Hi,

I'm still experiencing that trouble. Nothing changed from december.

Getting help on embedded seems to be particulary difficult ;)


All times are GMT -5. The time now is 08:12 AM.