Skip to contentSkip to conversation

New: Cannot compile software on the target machine

Buildroot bugzilla at busybox.net 1 participant 6 messages Sep 24, 2012 – Nov 28, 2013

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=5570

Host: x86_64 Arch Linux box
Target: arm (littel endian) arm1176jzf-s (BCM2708)
Summary: Cannot compile software on the target machine
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: mari.hahn at uni-muenster.de
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Version: buildroot-20120922.tar.bz2

While compiling simple hello world programs on the target machine does work, compiling complex software doesn't.

I get error messages like this one:

libtool: link: warning: library `/usr/lib/libintl.la' was moved.
grep:
/home/maribu/buildroot/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib//libiconv.la:
No such file or directory
sed:
/home/maribu/buildroot/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib//libiconv.la:
No such file or directory
libtool: link:
`/home/maribu/buildroot/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib//libiconv.la' is not a valid libtool archive

the libtool archive "libintl.la" is present at /usr/lib, but libtool is
searching for it in "/home/maribu/buildroot/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/" which was the correct path on the cross compiling host, but not on the target.
I tried to export LD_LIBARY_PATH=/usr/lib which does work as root, bus for some reason is completely ignored (without any feedback) as normal user.

I think this is a bug, because in my humble opinion there should be no reference to host specific paths within the resulting image.

I would be very happy if someone would suggest a quick workaround so I can start compiling again.

Regards,
Maribu

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 5570] Cannot compile software on the target machine

https://bugs.busybox.net/show_bug.cgi?id=5570

--- Comment #1 from Maribu <[email protected]> 2012-09-24 14:10:05 UTC --- Ok, I found references inside /usr/bin/libtool and also in /usr/lib/*.la on the target machine referring to paths on the host machine.

For now I fixed the pathes manually. Hopefully I can now compile on the target machine.

Regards,
Maribu

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 5570] Cannot compile software on the target machine

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5570

--- Comment #2 from Samuel Martin <[email protected]> 2012-09-24 14:27:32 UTC --- Hi Maribu,

You're talking about the target toolchain, right?

Note that this is not really the way most of the developers around work, so this barely maintained and tested.

See this thread:
http://lists.busybox.net/pipermail/buildroot/2012-August/057987.html

Regards,

Sam

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 5570] Cannot compile software on the target machine

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5570

--- Comment #3 from Maribu <[email protected]> 2012-09-24 17:09:09 UTC --- Hi,Sam!

Yes, I'm using the target toolchain. I understand that the target toolchain is not a commonly requested feature and it is generally a much better idea to cross compile all software.

If I can get the target toolchain working properly I will post what I have done to achieve this.

Regards,
Maribu

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 5570] Cannot compile software on the target machine

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5570

--- Comment #4 from Maribu <[email protected]> 2012-09-24 20:13:56 UTC --- Ok, with all paths referring to host machine in /usr/bin/libtool and /usr/lib/*.la changed to corresponding counterparts in the target file system, I can build static librarys. But ld seems to be broken. I'll try to rebuild binutils so I get a working ld.

Regards,
Maribu

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 5570] Cannot compile software on the target machine

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5570

Gustavo Zacarias <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #5 from Gustavo Zacarias <[email protected]> 2013-11-28 17:25:06 UTC --- This is deprecated functionality, hence marking as WONTFIX.
Support for building in the target was always flaky/broken and nobody cared to fix it properly so it was decided to drop that option some time ago.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.