Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Various problem using buildroot-2012.05
@ 2012-06-18  3:35 Ming-Ching Tiew
  2012-06-18  5:55 ` Ming-Ching Tiew
  2012-06-18  6:45 ` Thomas Petazzoni
  0 siblings, 2 replies; 11+ messages in thread
From: Ming-Ching Tiew @ 2012-06-18  3:35 UTC (permalink / raw)
  To: buildroot


I encountered various problems using buildroot-2012.05, all to do with using buildroot as a chroot build environment.

1. Seem "Copying development files to target did not copy libc.so.

   Seems this was reported sometime ago, a fix was provided but somehow it's not propagated to support/scripts/copy.sh.

   The fix is to add this line to copy.sh

 cp -af $(STAGING_DIR)/usr/lib/libc.so $(TARGET_DIR)/usr/lib

2. I wrote a test program in the chroot environment, 

#include <stdio.h>
#include <dlfcn.h>
#include <stdlib.h>

int main(int argc, char **argv) 
{
   void *lib_handle;
   double (*fn)(int *);
   int x;
   char *error;

   lib_handle = dlopen("libctest.so", RTLD_NOW);
   if (!lib_handle) 
   {
      fprintf(stderr, "1: RTLD_NOW: %s\n", dlerror());
      exit(1);
   }
   return 0;
}

    # cc -rdynamic  mytest.c -ldl
/usr/lib/gcc/i686-unknown-linux-uclibc/4.6.3/../../../libdl.a(libdl.os): In function `_dl_find_hash':
libdl.c:(.text+0x9fa): undefined reference to `_dl_allocate_static_tls'
libdl.c:(.text+0xa1a): undefined reference to `_dl_allocate_static_tls'
/usr/lib/gcc/i686-unknown-linux-uclibc/4.6.3/../../../libdl.a(libdl.os): In function `_dl_load_elf_shared_library':
libdl.c:(.text+0x1e51): undefined reference to `_dl_next_tls_modid'
/usr/lib/gcc/i686-unknown-linux-uclibc/4.6.3/../../../../i686-unknown-linux-uclibc/bin/ld: a.out: hidden symbol `_dl_allocate_static_tls' isn't defined
/usr/lib/gcc/i686-unknown-linux-uclibc/4.6.3/../../../../i686-unknown-linux-uclibc/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

Is there any other libraries which are missing also in the coying ?

 

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Buildroot] Various problem using buildroot-2012.05
@ 2012-06-18  7:46 Ming-Ching Tiew
  2012-06-18  8:36 ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Ming-Ching Tiew @ 2012-06-18  7:46 UTC (permalink / raw)
  To: buildroot


--- On Mon, 6/18/12, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:

> From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Subject: Re: [Buildroot] Various problem using buildroot-2012.05
> To: buildroot at busybox.net
> Date: Monday, June 18, 2012, 6:45 AM
> Le Sun, 17 Jun 2012 20:35:15 -0700
> (PDT),
> Ming-Ching Tiew <mctiew@yahoo.com>
> a ?crit :
> 
> > I encountered various problems using buildroot-2012.05,
> all to do
> > with using buildroot as a chroot build environment.
> 
> Why would you do this?
> 

Because there are many packages are not made to compile in a cross environment. For many, it's not a trial task to adapt those packages for cross compiling. 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-11-12  7:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18  3:35 [Buildroot] Various problem using buildroot-2012.05 Ming-Ching Tiew
2012-06-18  5:55 ` Ming-Ching Tiew
2012-06-18  6:45 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2012-06-18  7:46 Ming-Ching Tiew
2012-06-18  8:36 ` Thomas Petazzoni
2012-11-10 14:28   ` Bernd Kuhls
2012-11-10 14:51     ` Stefan Fröberg
2012-11-10 20:21       ` Bernd Kuhls
2012-11-11 22:47       ` Arnout Vandecappelle
2012-11-12  0:04         ` Stefan Fröberg
2012-11-12  7:36           ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox