Author Topic: Native Onboard Development / Sdk  (Read 3756 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Native Onboard Development / Sdk
« on: May 12, 2006, 08:18:45 pm »
I've been trying to run native onboard compilation on the Z, under 3.4.5.1-rc2, but can't get it to work. So I have two questions.

In the latest OOO Newsletter it mentions a native SDK. Where is it? I couldn't find it?

If that's a no go, could someone walk me through setting up a native development environment on the Z. I've installed a ton of packages, which I think are necessary.

Now when I try compiling a simple hello world prog, I get:
Code: [Select]
/usr/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: cannot find /usr/lib/libc_nonshared.a inside /usr/bin/../../usr
collect2: ld returned 1 exit status

The file libc_nonshared.a is in /usr/lib/

I can't determine what the problem is. Can someone help me?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Native Onboard Development / Sdk
« Reply #1 on: May 13, 2006, 01:37:02 am »
try
Quote
ln -s /usr /usr/

(/usr/bin/../../usr/usr/lib/libc_nonshared.a = /usr/usr/lib/libc_nonshared.a )
« Last Edit: May 13, 2006, 01:38:44 am by pgas »
SLC-860 cacko / senao wifi

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Native Onboard Development / Sdk
« Reply #2 on: May 13, 2006, 02:01:55 am »
Quote
try
Quote
ln -s /usr /usr/

(/usr/bin/../../usr/usr/lib/libc_nonshared.a = /usr/usr/lib/libc_nonshared.a )
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126852\"][{POST_SNAPBACK}][/a][/div]
Thanks:

In the meantime I've committed this ugly hack:
Code: [Select]
Edit /usr/lib/libc.so and change to:

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-littlearm)
/* GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED
( /lib/ld-linux.so.2 ) ) */
 GROUP ( /lib/libc.so.6 /lib/libc_nonshared.a  AS_NEEDED
( /lib/ld-linux.so.2 ) )

and libpthread.so

ln -s /lib/ld-linux.so.2 /usr/lib
ln -s /usr/lib/libpthread_nonshared.a /lib/
ln -s /usr/lib/libc_nonshared.a /lib/
Seems to be working so far.

Will see how it goes.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze