Arun Reddy | 1 May 01:07 2008
Picon

Re: Buildroot ARM toolchain build Error: libexpat

Another update.

I noticed that the error I got:

Checking for XML_ParserCreate in -lexpat... no
Checking for XML_ParserCreate in -lbsdxml... no
Configure: error: *** neither libexpat not libbsdxml could be found ***

shows -lexpat and -lbsdxml. So I tried setting up the LD_LIBRARY_PATH environment variable to include the directory where the libexpat is located. I went ahead and did that and then did "export" with the expectation that libexpat could now be located, but the build still fails with the same error.

Also, I tried "enabling" expat in the configure file under /root/buildroot/build_arm/avahi-0.6.22. I called ./configure --enable-expat=yes, but I end up with an error with that as well, it complains about some PKG_CONFIG_PATH variable which I cannot find or change in the configure file.

Any ideas?

On Wed, Apr 30, 2008 at 7:02 AM, Arun Reddy <reddyac-Re5JQEeQqe8@public.gmane.orgm> wrote:
I'd just like to point out that I located "libexpat" in my build system and a bunch of files are under /usr/lib as libexpat.a, libexpat.la, libexpat.so, etc. Do you guys these need to be moved somewhere in /root/buildroot/build_arm/staging_dir/ for them to be located?


On Tue, Apr 29, 2008 at 4:43 PM, Arun Reddy <reddyac-Re5JQEeQqe8@public.gmane.orgm> wrote:
Hi Thiago,

I actually did not have expat in the menuconfig. The build process fails after it does a check for a whole bunch of files shown here...

http://img209.imageshack.us/img209/4053/buildrootproblemra9.jpg

I am not sure whether it needs expat to actually complete the build process or not. I went ahead and changed my buildroot .config file to include expat just in case, but I still get the same error. I attached my .config file as you requested. (I had to save it as a .txt file because I am using VirtualBox and my shared folder wouldn't accept the .config file itself). Thank you for your help.


On Tue, Apr 29, 2008 at 3:18 PM, Thiago A. Corrêa <thiago.correa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,

If this is a package from buildroot that you are compiling, it should
be looking for libexpat in the staging_dir, not in the system
libs/includes.

Did you enable expat in the menuconfig? Which package is failing?
Could you share your .config file?

Kind Regards,
  Thiago A. Correa

On Tue, Apr 29, 2008 at 7:07 PM, Arun Reddy <reddyac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> A little more info on the problem. I tried to build again using a different
> configuration just to see if the problem was unique, but I ran into the same
> one again. After a little bit of Google searching, it seems to me that there
> might be an undefined symbol error. I looked  at the config.log file to see
> if I could find it but couldn't pinpoint anything.
>
> I should also point out, when I look at config.log:
>
> (/root/buildroot/build_arm/avahi-0.6.22/config.log), I see that the line $
> ./configure has "--disable-expat" in it. Is this why my build is getting the
> error that libexpat can't be found?
>
> Thanks for any help!
>
>
>
> On Mon, Apr 28, 2008 at 3:32 PM, Arun Reddy <reddyac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > Hi everyone,
> >
> > I have done a kernel configuration for at91sam9263ek, and I am now going
> through the build process. I have fixed up some errors I encountered with
> missing packages, but I then encountered that...
> >
> > Checking for XML_ParserCreate in -lexpat... no
> > Checking for XML_ParserCreate in -lbsdxml... no
> > Configure: error: *** neither libexpat not libbsdxml could be found ***
> >
> > I made sure to install the expat package (apt-get install libexpat-dev)
> and tried to find out if I needed to install the libbsdxml package as well,
> but couldn't find enough information online about what libbsdxml is (it does
> seem like it's just another name for libexpat) or any solutions to this
> error.
> >
> > Anyone know what the problem here is, and what package I actually need?
> Thanks!
> >
>
>
> _______________________________________________
>  buildroot mailing list
>  buildroot-2zL2ArBv0bUdnm+yROfE0A@public.gmane.org
>  http://busybox.net/mailman/listinfo/buildroot
>
_______________________________________________
buildroot mailing list
buildroot <at> uclibc.org
http://busybox.net/mailman/listinfo/buildroot



_______________________________________________
buildroot mailing list
buildroot@...
http://busybox.net/mailman/listinfo/buildroot
Jared Holzman | 1 May 05:22 2008
Picon

Glib 1.2 doesn't build shared libraries

Hey Guys,

Got any solutions to this problem? glib keeps configuring itself to not produce static libraries resulting in the following build termination:

---snip---
cp: cannot stat `/home/jared/src/buildroot/build_arm/staging_dir/lib/libglib.so': No such file or directory
make: *** [/home/jared/src/buildroot/project_build_arm/at91sam9263ek/root/lib/libglib-1.2.so.0.0.10] Error 1
---snip---

The relevant parts of the configure runtime log is
---snip---
        ./configure \
        --target=arm-linux \
        --host=arm-linux \
        --build=i386-pc-linux-gnu \
        --prefix=/usr \
        --exec-prefix=/usr \
        --bindir=/usr/bin \
        --sbindir=/usr/sbin \
        --libdir=/lib \
        --libexecdir=/usr/lib \
        --sysconfdir=/etc \
        --datadir=/usr/share \
        --localstatedir=/var \
        --includedir=/usr/include \
        --mandir=/usr/man \
        --infodir=/usr/info \
        --enable-shared \
         \
    )
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... arm-unknown-linux-gnu
checking build system type... i386-pc-linux-gnu
checking for ranlib... /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ranlib
checking for gcc... /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc -Os  -I/home/jared/src/buildroot/build_arm/staging_dir/usr/include -I/home/jared/src/buildroot/build_arm/staging_dir/include --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/ -isysroot /home/jared/src/buildroot/build_arm/staging_dir -mtune=arm9tdmi
checking whether the C compiler (/home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc -Os  -I/home/jared/src/buildroot/build_arm/staging_dir/usr/include -I/home/jared/src/buildroot/build_arm/staging_dir/include --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/ -isysroot /home/jared/src/buildroot/build_arm/staging_dir -mtune=arm9tdmi  ) works... yes
checking whether the C compiler (/home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc -Os  -I/home/jared/src/buildroot/build_arm/staging_dir/usr/include -I/home/jared/src/buildroot/build_arm/staging_dir/include --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/ -isysroot /home/jared/src/buildroot/build_arm/staging_dir -mtune=arm9tdmi  ) is a cross-compiler... yes
checking whether we are using GNU C... yes
checking whether /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc -Os  -I/home/jared/src/buildroot/build_arm/staging_dir/usr/include -I/home/jared/src/buildroot/build_arm/staging_dir/include --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/ -isysroot /home/jared/src/buildroot/build_arm/staging_dir -mtune=arm9tdmi accepts -g... yes
checking for ld used by GCC... /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ld -L/home/jared/src/buildroot/build_arm/staging_dir/lib -L/home/jared/src/buildroot/build_arm/staging_dir/usr/lib --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/
checking if the linker (/home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ld -L/home/jared/src/buildroot/build_arm/staging_dir/lib -L/home/jared/src/buildroot/build_arm/staging_dir/usr/lib --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/) is GNU ld... yes
checking for BSD-compatible nm... /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-nm
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc option to produce PIC... -fPIC
checking if /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc PIC flag -fPIC works... yes
checking if /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc supports -c -o file.o... yes
checking if /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc supports -c -o file.lo... yes
checking if /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc supports -fno-rtti -fno-exceptions ... no
checking if /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc static flag -static works... -static
checking if the linker (/home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ld -L/home/jared/src/buildroot/build_arm/staging_dir/lib -L/home/jared/src/buildroot/build_arm/staging_dir/usr/lib --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/) is GNU ld... yes
checking whether the linker (/home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ld -L/home/jared/src/buildroot/build_arm/staging_dir/lib -L/home/jared/src/buildroot/build_arm/staging_dir/usr/lib --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/) supports shared libraries... yes
checking command to parse /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-nm output... ok
checking how to hardcode library paths into programs... immediate
checking for /home/jared/src/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ld -L/home/jared/src/buildroot/build_arm/staging_dir/lib -L/home/jared/src/buildroot/build_arm/staging_dir/usr/lib --sysroot=/home/jared/src/buildroot/build_arm/staging_dir/ option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
---snip---

I've also attached the config.log. Any ideas?


--

Regards,

Jared Holzman

Electronics Design Engineer

Genesys Electronics Design Pty Ltd

Unit 5, 33 Ryde Rd Pymble
NSW, Australia 2073

Direct: +612 9496 8924
Phone: +612 9496 8900
Fax: +612 9496 8999

j.holzman-2Cscb70fuDDpVLaUnt/cCfQIK84fMopw@public.gmane.org
www.genesysdesign.com.au

Attachment (config.zip): application/x-zip-compressed, 4963 bytes
_______________________________________________
buildroot mailing list
buildroot@...
http://busybox.net/mailman/listinfo/buildroot
Will Newton | 1 May 11:02 2008
Picon

Re: mplayer in buildroot

On Wed, Apr 30, 2008 at 6:06 PM, John Voltz <john.voltz@...> wrote:
> I cannot get mplayer to build for x86 in buildroot. I keep getting this
> error:
>
> cabac.h:513: error: can't find a register in class 'GENERAL_REGS' while
> reloading 'asm'
> cabac.h:513: error: 'asm' operand has impossible constraints
>
> Why can't it use inline assembler? It compiles just fine if I build it for
> AVR32.

AVR32 will not use the same inline assembler. The error message
suggests the constraints for the asm operands are too restrictive in
some way, or it may be the compiler isn't doing a great job of
register allocation. Try a newer/older compiler, adjust the
constraints or see if asm optimizations can be selectively disabled.
ninevoltz | 1 May 16:03 2008

svn commit: trunk/buildroot/package/x11r7/xserver_xorg-server

Author: ninevoltz
Date: 2008-05-01 07:03:20 -0700 (Thu, 01 May 2008)
New Revision: 21905

Log:
patch for xserver tslib support

Added:
   trunk/buildroot/package/x11r7/xserver_xorg-server/xserver_xorg-server-1.4-tslib-fix.patch

Changeset:
Added: trunk/buildroot/package/x11r7/xserver_xorg-server/xserver_xorg-server-1.4-tslib-fix.patch
===================================================================
---
trunk/buildroot/package/x11r7/xserver_xorg-server/xserver_xorg-server-1.4-tslib-fix.patch	
                       (rev 0)
+++
trunk/buildroot/package/x11r7/xserver_xorg-server/xserver_xorg-server-1.4-tslib-fix.patch	2008-05-01
14:03:20 UTC (rev 21905)
 <at>  <at>  -0,0 +1,9  <at>  <at> 
+--- a/configure	2008-03-18 12:07:31.000000000 -0400
++++ b/configure	2008-03-18 16:13:03.000000000 -0400
+ <at>  <at>  -35720,7 +35720,7  <at>  <at>  _ACEOF
+ 	    ;;
+     esac
+     KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.a'
+-    KDRIVE_LOCAL_LIBS="$DIX_LIB $CONFIG_LIB $KDRIVE_LIB $TSLIB_LIBS $KDRIVE_OS_LIB
$KDRIVE_PURE_LIBS $KDRIVE_STUB_LIB"
++    KDRIVE_LOCAL_LIBS="$DIX_LIB $CONFIG_LIB $KDRIVE_LIB $KDRIVE_OS_LIB $KDRIVE_PURE_LIBS $KDRIVE_STUB_LIB"
+     KDRIVE_LIBS="$XSERVERLIBS_LIBS $KDRIVE_LOCAL_LIBS"
\ No newline at end of file
ninevoltz | 1 May 16:07 2008

svn commit: trunk/buildroot/package: atk cairo libglib2 libgtk2 pango

Author: ninevoltz
Date: 2008-05-01 07:07:11 -0700 (Thu, 01 May 2008)
New Revision: 21906

Log:
remove unnecessary libdir-la.patch patches and modify Makefile.autotools.in to patch libtool automatically.

Added:
   trunk/buildroot/package/buildroot-libtool.patch

Removed:
   trunk/buildroot/package/atk/atk-1.9.1-libdir-la.patch
   trunk/buildroot/package/cairo/cairo-1.4.14-libdir-la.patch
   trunk/buildroot/package/libglib2/libglib2-2.15.4-libdir-la.patch
   trunk/buildroot/package/libgtk2/libgtk2-2.12.6-libdir-la.patch
   trunk/buildroot/package/pango/pango-1.19.3-libdir-la.patch

Modified:
   trunk/buildroot/package/Makefile.autotools.in

Changeset:
Modified: trunk/buildroot/package/Makefile.autotools.in
===================================================================
--- trunk/buildroot/package/Makefile.autotools.in	2008-05-01 14:03:20 UTC (rev 21905)
+++ trunk/buildroot/package/Makefile.autotools.in	2008-05-01 14:07:11 UTC (rev 21906)
 <at>  <at>  -142,7 +142,12  <at>  <at> 
 	$(Q)mkdir -p $( <at> D)
 	$(Q)$(INFLATE$(suffix $($(PKG)_SOURCE))) $(DL_DIR)/$($(PKG)_SOURCE) | \
 	$(TAR) --strip-components=1 -C $( <at> D) $(TAR_OPTIONS) -
-	chmod -R ug+rw $( <at> D)  
+# some packages have messed up permissions inside
+	$(Q)chmod -R ug+rw $( <at> D)
+# if the package uses libtool, patch it for cross-compiling in buildroot
+	for i in `find $( <at> D) -name ltmain.sh`; do \
+		toolchain/patch-kernel.sh $${i%/*} package buildroot-libtool.patch; \
+	done 
 	$(Q)touch $ <at> 

 # Patch
 <at>  <at>  -185,6 +190,9  <at>  <at> 
 	$(call MESSAGE,"Configuring")
 	$(Q)if test "$($(PKG)_AUTORECONF)" = "YES"; then \
 		cd $( <at> D)/$($(PKG)_SUBDIR) && $(AUTORECONF); \
+		for i in `find $( <at> D)/$($(PKG)_SUBDIR) -name ltmain.sh`; do \
+			../../toolchain/patch-kernel.sh $${i%/*} ../../package buildroot-libtool.patch; \
+		done \
 	fi
 	cd $( <at> D)/$($(PKG)_SUBDIR) && rm -f config.cache && \
 	$(TARGET_CONFIGURE_OPTS) \

Deleted: trunk/buildroot/package/atk/atk-1.9.1-libdir-la.patch
===================================================================
--- trunk/buildroot/package/atk/atk-1.9.1-libdir-la.patch	2008-05-01 14:03:20 UTC (rev 21905)
+++ trunk/buildroot/package/atk/atk-1.9.1-libdir-la.patch	2008-05-01 14:07:11 UTC (rev 21906)
 <at>  <at>  -1,77 +0,0  <at>  <at> 
---- atk-1.9.1/ltmain.sh.orig	2004-11-23 09:19:19.000000000 -0700
-+++ atk-1.9.1/ltmain.sh	2007-01-13 14:36:53.000000000 -0700
- <at>  <at>  -231,8 +231,9  <at>  <at> 
- 	# line option must be used.
- 	if test -z "$tagname"; then
- 	  $echo "$modename: unable to infer tagged configuration"
--	  $echo "$modename: specify a tag with \`--tag'" 1>&2
--	  exit $EXIT_FAILURE
-+	  $echo "$modename: defaulting to \`CC'"
-+	  $echo "$modename: if this is not correct, specify a tag with \`--tag'"
-+#	  exit $EXIT_FAILURE
- #        else
- #          $echo "$modename: using $tagname tagged configuration"
- 	fi
- <at>  <at>  -2279,8 +2280,14  <at>  <at> 
- 	    absdir="$abs_ladir"
- 	    libdir="$abs_ladir"
- 	  else
--	    dir="$libdir"
--	    absdir="$libdir"
-+            # Adding 'libdir' from the .la file to our library search paths
-+            # breaks crosscompilation horribly.  We cheat here and don't add
-+            # it, instead adding the path where we found the .la.  -CL
-+	    dir="$abs_ladir"
-+	    absdir="$abs_ladir"
-+	    libdir="$abs_ladir"
-+	    #dir="$libdir"
-+	    #absdir="$libdir"
- 	  fi
- 	else
- 	  if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
- <at>  <at>  -2754,6 +2761,16  <at>  <at> 
- 		esac
- 		if grep "^installed=no" $deplib > /dev/null; then
- 		  path="$absdir/$objdir"
-+#		This interferes with crosscompilation. -CL
-+#		else
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  if test -z "$libdir"; then
-+#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
-+#		    exit 1
-+#		  fi
-+#		  if test "$absdir" != "$libdir"; then
-+#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
-+#		  fi
- 		else
- 		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- 		  if test -z "$libdir"; then
- <at>  <at>  -5141,6 +5158,10  <at>  <at> 
- 	    # Replace all uninstalled libtool libraries with the installed ones
- 	    newdependency_libs=
- 	    for deplib in $dependency_libs; do
-+              # Replacing uninstalled with installed can easily break crosscompilation,
-+              # since the installed path is generally the wrong architecture.  -CL
-+              newdependency_libs="$newdependency_libs $deplib"
-+              continue
- 	      case $deplib in
- 	      *.la)
- 		name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
- <at>  <at>  -5459,10 +5480,13  <at>  <at> 
- 	  # At present, this check doesn't affect windows .dll's that
- 	  # are installed into $libdir/../bin (currently, that works fine)
- 	  # but it's something to keep an eye on.
--	  if test "$inst_prefix_dir" = "$destdir"; then
--	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
--	    exit $EXIT_FAILURE
--	  fi
-+	  #
-+	  # This breaks install into our staging area.  -PB
-+	  # 
-+	  # if test "$inst_prefix_dir" = "$destdir"; then
-+	  #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
-+	  #   exit $EXIT_FAILURE
-+	  # fi
- 
- 	  if test -n "$inst_prefix_dir"; then
- 	    # Stick the inst_prefix_dir data into the link command.

Added: trunk/buildroot/package/buildroot-libtool.patch
===================================================================
--- trunk/buildroot/package/buildroot-libtool.patch	                        (rev 0)
+++ trunk/buildroot/package/buildroot-libtool.patch	2008-05-01 14:07:11 UTC (rev 21906)
 <at>  <at>  -0,0 +1,86  <at>  <at> 
+--- a/ltmain.sh	2006-03-11 13:49:04.000000000 -0500
++++ b/ltmain.sh	2008-04-30 09:55:28.000000000 -0400
+ <at>  <at>  -273,8 +273,9  <at>  <at>  func_infer_tag ()
+ 	# line option must be used.
+ 	if test -z "$tagname"; then
+ 	  $echo "$modename: unable to infer tagged configuration"
+-	  $echo "$modename: specify a tag with \`--tag'" 1>&2
+-	  exit $EXIT_FAILURE
++	  $echo "$modename: defaulting to \`CC'"
++	  $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#	  exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+ 	fi
+ <at>  <at>  -2407,8 +2408,14  <at>  <at>  EOF
+ 	    absdir="$abs_ladir"
+ 	    libdir="$abs_ladir"
+ 	  else
+-	    dir="$libdir"
+-	    absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++	    dir="$abs_ladir"
++	    absdir="$abs_ladir"
++	    libdir="$abs_ladir"
++	    #dir="$libdir"
++	    #absdir="$libdir"
+ 	  fi
+ 	  test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+ 	else
+ <at>  <at>  -2545,7 +2552,7  <at>  <at>  EOF
+ 	   { test "$use_static_libs" = no || test -z "$old_library"; }; then
+ 	  if test "$installed" = no; then
+ 	    notinst_deplibs="$notinst_deplibs $lib"
+-	    need_relink=yes
++	    need_relink=no
+ 	  fi
+ 	  # This is a shared library
+ 
+ <at>  <at>  -2889,6 +2896,16  <at>  <at>  EOF
+ 		esac
+ 		if grep "^installed=no" $deplib > /dev/null; then
+ 		  path="$absdir/$objdir"
++#		This interferes with crosscompilation. -CL
++#		else
++#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#		  if test -z "$libdir"; then
++#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#		    exit 1
++#		  fi
++#		  if test "$absdir" != "$libdir"; then
++#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#		  fi
+ 		else
+ 		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ 		  if test -z "$libdir"; then
+ <at>  <at>  -5606,6 +5623,10  <at>  <at>  fi\
+ 	    # Replace all uninstalled libtool libraries with the installed ones
+ 	    newdependency_libs=
+ 	    for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+ 	      case $deplib in
+ 	      *.la)
+ 		name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+ <at>  <at>  -5927,10 +5948,13  <at>  <at>  relink_command=\"$relink_command\""
+ 	  # At present, this check doesn't affect windows .dll's that
+ 	  # are installed into $libdir/../bin (currently, that works fine)
+ 	  # but it's something to keep an eye on.
+-	  if test "$inst_prefix_dir" = "$destdir"; then
+-	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-	    exit $EXIT_FAILURE
+-	  fi
++	  #
++	  # This breaks install into our staging area.  -PB
++	  # 
++	  # if test "$inst_prefix_dir" = "$destdir"; then
++	  #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++	  #   exit $EXIT_FAILURE
++	  # fi
+ 
+ 	  if test -n "$inst_prefix_dir"; then
+ 	    # Stick the inst_prefix_dir data into the link command.

Deleted: trunk/buildroot/package/cairo/cairo-1.4.14-libdir-la.patch
===================================================================
--- trunk/buildroot/package/cairo/cairo-1.4.14-libdir-la.patch	2008-05-01 14:03:20 UTC (rev 21905)
+++ trunk/buildroot/package/cairo/cairo-1.4.14-libdir-la.patch	2008-05-01 14:07:11 UTC (rev 21906)
 <at>  <at>  -1,77 +0,0  <at>  <at> 
---- cairo/ltmain.sh.orig	2004-11-23 09:19:19.000000000 -0700
-+++ cairo/ltmain.sh	2007-01-13 14:36:53.000000000 -0700
- <at>  <at>  -231,8 +231,9  <at>  <at> 
- 	# line option must be used.
- 	if test -z "$tagname"; then
- 	  $echo "$modename: unable to infer tagged configuration"
--	  $echo "$modename: specify a tag with \`--tag'" 1>&2
--	  exit $EXIT_FAILURE
-+	  $echo "$modename: defaulting to \`CC'"
-+	  $echo "$modename: if this is not correct, specify a tag with \`--tag'"
-+#	  exit $EXIT_FAILURE
- #        else
- #          $echo "$modename: using $tagname tagged configuration"
- 	fi
- <at>  <at>  -2279,8 +2280,14  <at>  <at> 
- 	    absdir="$abs_ladir"
- 	    libdir="$abs_ladir"
- 	  else
--	    dir="$libdir"
--	    absdir="$libdir"
-+            # Adding 'libdir' from the .la file to our library search paths
-+            # breaks crosscompilation horribly.  We cheat here and don't add
-+            # it, instead adding the path where we found the .la.  -CL
-+	    dir="$abs_ladir"
-+	    absdir="$abs_ladir"
-+	    libdir="$abs_ladir"
-+	    #dir="$libdir"
-+	    #absdir="$libdir"
- 	  fi
- 	else
- 	  if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
- <at>  <at>  -2754,6 +2761,16  <at>  <at> 
- 		esac
- 		if grep "^installed=no" $deplib > /dev/null; then
- 		  path="$absdir/$objdir"
-+#		This interferes with crosscompilation. -CL
-+#		else
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  if test -z "$libdir"; then
-+#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
-+#		    exit 1
-+#		  fi
-+#		  if test "$absdir" != "$libdir"; then
-+#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
-+#		  fi
- 		else
- 		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- 		  if test -z "$libdir"; then
- <at>  <at>  -5141,6 +5158,10  <at>  <at> 
- 	    # Replace all uninstalled libtool libraries with the installed ones
- 	    newdependency_libs=
- 	    for deplib in $dependency_libs; do
-+              # Replacing uninstalled with installed can easily break crosscompilation,
-+              # since the installed path is generally the wrong architecture.  -CL
-+              newdependency_libs="$newdependency_libs $deplib"
-+              continue
- 	      case $deplib in
- 	      *.la)
- 		name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
- <at>  <at>  -5459,10 +5480,13  <at>  <at> 
- 	  # At present, this check doesn't affect windows .dll's that
- 	  # are installed into $libdir/../bin (currently, that works fine)
- 	  # but it's something to keep an eye on.
--	  if test "$inst_prefix_dir" = "$destdir"; then
--	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
--	    exit $EXIT_FAILURE
--	  fi
-+	  #
-+	  # This breaks install into our staging area.  -PB
-+	  # 
-+	  # if test "$inst_prefix_dir" = "$destdir"; then
-+	  #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
-+	  #   exit $EXIT_FAILURE
-+	  # fi
- 
- 	  if test -n "$inst_prefix_dir"; then
- 	    # Stick the inst_prefix_dir data into the link command.

Deleted: trunk/buildroot/package/libglib2/libglib2-2.15.4-libdir-la.patch
===================================================================
--- trunk/buildroot/package/libglib2/libglib2-2.15.4-libdir-la.patch	2008-05-01 14:03:20 UTC
(rev 21905)
+++ trunk/buildroot/package/libglib2/libglib2-2.15.4-libdir-la.patch	2008-05-01 14:07:11 UTC
(rev 21906)
 <at>  <at>  -1,77 +0,0  <at>  <at> 
---- glib/ltmain.sh.orig	2006-07-13 01:12:13.000000000 -0600
-+++ glib/ltmain.sh	2007-01-13 13:59:13.000000000 -0700
- <at>  <at>  -283,8 +283,9  <at>  <at> 
- 	# line option must be used.
- 	if test -z "$tagname"; then
- 	  $echo "$modename: unable to infer tagged configuration"
--	  $echo "$modename: specify a tag with \`--tag'" 1>&2
--	  exit $EXIT_FAILURE
-+	  $echo "$modename: defaulting to \`CC'"
-+	  $echo "$modename: if this is not correct, specify a tag with \`--tag'"
-+#	  exit $EXIT_FAILURE
- #        else
- #          $echo "$modename: using $tagname tagged configuration"
- 	fi
- <at>  <at>  -2434,8 +2435,14  <at>  <at> 
- 	    absdir="$abs_ladir"
- 	    libdir="$abs_ladir"
- 	  else
--	    dir="$libdir"
--	    absdir="$libdir"
-+            # Adding 'libdir' from the .la file to our library search paths
-+            # breaks crosscompilation horribly.  We cheat here and don't add
-+            # it, instead adding the path where we found the .la.  -CL
-+	    dir="$abs_ladir"
-+	    absdir="$abs_ladir"
-+	    libdir="$abs_ladir"
-+	    #dir="$libdir"
-+	    #absdir="$libdir"
- 	  fi
- 	  test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
- 	else
- <at>  <at>  -2918,6 +2925,16  <at>  <at> 
- 		esac
- 		if grep "^installed=no" $deplib > /dev/null; then
- 		  path="$absdir/$objdir"
-+#		This interferes with crosscompilation. -CL
-+#		else
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  if test -z "$libdir"; then
-+#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
-+#		    exit 1
-+#		  fi
-+#		  if test "$absdir" != "$libdir"; then
-+#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
-+#		  fi
- 		else
- 		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- 		  if test -z "$libdir"; then
- <at>  <at>  -5641,6 +5658,10  <at>  <at> 
- 	    # Replace all uninstalled libtool libraries with the installed ones
- 	    newdependency_libs=
- 	    for deplib in $dependency_libs; do
-+              # Replacing uninstalled with installed can easily break crosscompilation,
-+              # since the installed path is generally the wrong architecture.  -CL
-+              newdependency_libs="$newdependency_libs $deplib"
-+              continue
- 	      case $deplib in
- 	      *.la)
- 		name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
- <at>  <at>  -5962,10 +5983,13  <at>  <at> 
- 	  # At present, this check doesn't affect windows .dll's that
- 	  # are installed into $libdir/../bin (currently, that works fine)
- 	  # but it's something to keep an eye on.
--	  if test "$inst_prefix_dir" = "$destdir"; then
--	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
--	    exit $EXIT_FAILURE
--	  fi
-+	  #
-+	  # This breaks install into our staging area.  -PB
-+	  # 
-+	  # if test "$inst_prefix_dir" = "$destdir"; then
-+	  #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
-+	  #   exit $EXIT_FAILURE
-+	  # fi
- 
- 	  if test -n "$inst_prefix_dir"; then
- 	    # Stick the inst_prefix_dir data into the link command.

Deleted: trunk/buildroot/package/libgtk2/libgtk2-2.12.6-libdir-la.patch
===================================================================
--- trunk/buildroot/package/libgtk2/libgtk2-2.12.6-libdir-la.patch	2008-05-01 14:03:20 UTC
(rev 21905)
+++ trunk/buildroot/package/libgtk2/libgtk2-2.12.6-libdir-la.patch	2008-05-01 14:07:11 UTC
(rev 21906)
 <at>  <at>  -1,77 +0,0  <at>  <at> 
---- gtk/ltmain.sh.orig	2004-11-23 09:19:19.000000000 -0700
-+++ gtk/ltmain.sh	2007-01-13 14:36:53.000000000 -0700
- <at>  <at>  -231,8 +231,9  <at>  <at> 
- 	# line option must be used.
- 	if test -z "$tagname"; then
- 	  $echo "$modename: unable to infer tagged configuration"
--	  $echo "$modename: specify a tag with \`--tag'" 1>&2
--	  exit $EXIT_FAILURE
-+	  $echo "$modename: defaulting to \`CC'"
-+	  $echo "$modename: if this is not correct, specify a tag with \`--tag'"
-+#	  exit $EXIT_FAILURE
- #        else
- #          $echo "$modename: using $tagname tagged configuration"
- 	fi
- <at>  <at>  -2279,8 +2280,14  <at>  <at> 
- 	    absdir="$abs_ladir"
- 	    libdir="$abs_ladir"
- 	  else
--	    dir="$libdir"
--	    absdir="$libdir"
-+            # Adding 'libdir' from the .la file to our library search paths
-+            # breaks crosscompilation horribly.  We cheat here and don't add
-+            # it, instead adding the path where we found the .la.  -CL
-+	    dir="$abs_ladir"
-+	    absdir="$abs_ladir"
-+	    libdir="$abs_ladir"
-+	    #dir="$libdir"
-+	    #absdir="$libdir"
- 	  fi
- 	else
- 	  if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
- <at>  <at>  -2754,6 +2761,16  <at>  <at> 
- 		esac
- 		if grep "^installed=no" $deplib > /dev/null; then
- 		  path="$absdir/$objdir"
-+#		This interferes with crosscompilation. -CL
-+#		else
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  if test -z "$libdir"; then
-+#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
-+#		    exit 1
-+#		  fi
-+#		  if test "$absdir" != "$libdir"; then
-+#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
-+#		  fi
- 		else
- 		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- 		  if test -z "$libdir"; then
- <at>  <at>  -5141,6 +5158,10  <at>  <at> 
- 	    # Replace all uninstalled libtool libraries with the installed ones
- 	    newdependency_libs=
- 	    for deplib in $dependency_libs; do
-+              # Replacing uninstalled with installed can easily break crosscompilation,
-+              # since the installed path is generally the wrong architecture.  -CL
-+              newdependency_libs="$newdependency_libs $deplib"
-+              continue
- 	      case $deplib in
- 	      *.la)
- 		name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
- <at>  <at>  -5459,10 +5480,13  <at>  <at> 
- 	  # At present, this check doesn't affect windows .dll's that
- 	  # are installed into $libdir/../bin (currently, that works fine)
- 	  # but it's something to keep an eye on.
--	  if test "$inst_prefix_dir" = "$destdir"; then
--	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
--	    exit $EXIT_FAILURE
--	  fi
-+	  #
-+	  # This breaks install into our staging area.  -PB
-+	  # 
-+	  # if test "$inst_prefix_dir" = "$destdir"; then
-+	  #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
-+	  #   exit $EXIT_FAILURE
-+	  # fi
- 
- 	  if test -n "$inst_prefix_dir"; then
- 	    # Stick the inst_prefix_dir data into the link command.

Deleted: trunk/buildroot/package/pango/pango-1.19.3-libdir-la.patch
===================================================================
--- trunk/buildroot/package/pango/pango-1.19.3-libdir-la.patch	2008-05-01 14:03:20 UTC (rev 21905)
+++ trunk/buildroot/package/pango/pango-1.19.3-libdir-la.patch	2008-05-01 14:07:11 UTC (rev 21906)
 <at>  <at>  -1,77 +0,0  <at>  <at> 
---- pango/ltmain.sh.orig	2004-11-23 09:19:19.000000000 -0700
-+++ pango/ltmain.sh	2007-01-13 14:36:53.000000000 -0700
- <at>  <at>  -231,8 +231,9  <at>  <at> 
- 	# line option must be used.
- 	if test -z "$tagname"; then
- 	  $echo "$modename: unable to infer tagged configuration"
--	  $echo "$modename: specify a tag with \`--tag'" 1>&2
--	  exit $EXIT_FAILURE
-+	  $echo "$modename: defaulting to \`CC'"
-+	  $echo "$modename: if this is not correct, specify a tag with \`--tag'"
-+#	  exit $EXIT_FAILURE
- #        else
- #          $echo "$modename: using $tagname tagged configuration"
- 	fi
- <at>  <at>  -2279,8 +2280,14  <at>  <at> 
- 	    absdir="$abs_ladir"
- 	    libdir="$abs_ladir"
- 	  else
--	    dir="$libdir"
--	    absdir="$libdir"
-+            # Adding 'libdir' from the .la file to our library search paths
-+            # breaks crosscompilation horribly.  We cheat here and don't add
-+            # it, instead adding the path where we found the .la.  -CL
-+	    dir="$abs_ladir"
-+	    absdir="$abs_ladir"
-+	    libdir="$abs_ladir"
-+	    #dir="$libdir"
-+	    #absdir="$libdir"
- 	  fi
- 	else
- 	  if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
- <at>  <at>  -2754,6 +2761,16  <at>  <at> 
- 		esac
- 		if grep "^installed=no" $deplib > /dev/null; then
- 		  path="$absdir/$objdir"
-+#		This interferes with crosscompilation. -CL
-+#		else
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  if test -z "$libdir"; then
-+#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
-+#		    exit 1
-+#		  fi
-+#		  if test "$absdir" != "$libdir"; then
-+#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
-+#		  fi
- 		else
- 		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- 		  if test -z "$libdir"; then
- <at>  <at>  -5141,6 +5158,10  <at>  <at> 
- 	    # Replace all uninstalled libtool libraries with the installed ones
- 	    newdependency_libs=
- 	    for deplib in $dependency_libs; do
-+              # Replacing uninstalled with installed can easily break crosscompilation,
-+              # since the installed path is generally the wrong architecture.  -CL
-+              newdependency_libs="$newdependency_libs $deplib"
-+              continue
- 	      case $deplib in
- 	      *.la)
- 		name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
- <at>  <at>  -5459,10 +5480,13  <at>  <at> 
- 	  # At present, this check doesn't affect windows .dll's that
- 	  # are installed into $libdir/../bin (currently, that works fine)
- 	  # but it's something to keep an eye on.
--	  if test "$inst_prefix_dir" = "$destdir"; then
--	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
--	    exit $EXIT_FAILURE
--	  fi
-+	  #
-+	  # This breaks install into our staging area.  -PB
-+	  # 
-+	  # if test "$inst_prefix_dir" = "$destdir"; then
-+	  #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
-+	  #   exit $EXIT_FAILURE
-+	  # fi
- 
- 	  if test -n "$inst_prefix_dir"; then
- 	    # Stick the inst_prefix_dir data into the link command.
Olivier Singla | 1 May 16:11 2008
Picon

pthreads debugging issue (arm9)

Hi,

I am having some issue while trying to debug a multi-threaded application.
I am building for the AT91SAM9260-EK reference board (ARM9 based SOC).

Here a simple test.c program:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>

void *my_thread( void *arg ) {
    for ( int n = 0; n < 90; n++ ) {
        printf( "%d\n", n );
        sleep( 1 );
    }
    return NULL;
}

main() {
    pthread_t tid;
    pthread_attr_t attr;
    pthread_attr_init( &attr );
    pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED );
    pthread_create( &tid, &attr, my_thread, NULL );
    printf( "Thread created\n");
    sleep( 120 );
}

Here is how I cross compile it:
~/buildroot-9260/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc
-o test -O0 -g -std=gnu99 -lpthread test.c

Here is how the cross-compiler is built:
~$ ~/buildroot-9260/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc
-v
Using built-in specs.
Target: arm-linux-uclibc
Configured with:
/home/osingla/buildroot-9260/buildroot/toolchain_build_arm/gcc-4.2.1/configure
--prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=arm-linux-uclibc --enable-languages=c,c++
--with-sysroot=/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir
--with-build-time-tools=/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/usr/arm-linux-uclibc/bin
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--enable-shared
--with-gmp=/home/osingla/buildroot-9260/buildroot/toolchain_build_arm/gmp
--with-mpfr=/home/osingla/buildroot-9260/buildroot/toolchain_build_arm/mpfr
--enable-threads --disable-multilib --with-tune=arm920t :
(reconfigured) /home/osingla/buildroot-9260/buildroot/toolchain_build_arm/gcc-4.2.1/configure
--prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=arm-linux-uclibc --enable-languages=c,c++
--with-sysroot=/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir
--with-build-time-tools=/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/usr/arm-linux-uclibc/bin
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--enable-shared
--with-gmp=/home/osingla/buildroot-9260/buildroot/toolchain_build_arm/gmp
--with-mpfr=/home/osingla/buildroot-9260/buildroot/toolchain_build_arm/mpfr
--enable-threads --disable-multilib --with-tune=arm920t :
(reconfigured) /home/osingla/buildroot-9260/buildroot/toolchain_build_arm/gcc-4.2.1/configure
--prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=arm-linux-uclibc --enable-languages=c,c++
--with-sysroot=/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir
--with-build-time-tools=/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/usr/arm-linux-uclibc/bin
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--enable-shared
--with-gmp=/home/osingla/buildroot-9260/buildroot/toolchain_build_arm/gmp
--with-mpfr=/home/osingla/buildroot-9260/buildroot/toolchain_build_arm/mpfr
--enable-threads --disable-multilib --with-tune=arm920t
Thread model: posix
gcc version 4.2.1

Here is my .gdbinit:
set auto-solib-add 1
set solib-absolute-prefix /fake
set solib-search-path
/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/:\
/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/lib
set confirm off
file ./test -readnow
target remote 192.168.1.10:9000
dir $cdir:$cwd
handle SIG32 nostop
b main
cont

Here is a debugging session:
TARGET:
# gdbserver :9000 /tmp/test
Process /tmp/test created; pid = 1947
Listening on port 9000

HOST:
~$ ~/buildroot-9260/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gdb
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu
--target=arm-linux-uclibc".

warning: Remote failure reply: E01
0x40000930 in _start () from
/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/lib/ld-uClibc.so.0
Breakpoint 1 at 0x85fc: file test.c, line 17.

Breakpoint 1, main () at test.c:17
17          pthread_attr_init( &attr );
(gdb) n
18          pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED );
(gdb)
19          pthread_create( &tid, &attr, my_thread, NULL );
(gdb)

Program received signal SIG32, Real-time event 32.
20          printf( "Thread created\n");
(gdb) info threads
  1 Thread 1947  main () at test.c:20
(gdb) info sharedlibrary
From        To          Syms Read   Shared Object Library
0x40000930  0x40003f50  Yes
/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/lib/ld-uClibc.so.0
0x40011dd0  0x40018380  Yes
/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/lib/libpthread.so.0
0x40033800  0x40071e60  Yes
/home/osingla/buildroot-9260/buildroot/build_arm/staging_dir/lib/libc.so.0
(gdb) q
~$

When the thread has been created, it is not visible from the debugger.
It runs, but I can't put a breakpoint.
A few notes:

- I do not like the message "warning: Remote failure reply: E01", it
might mean that gdb host and gdbserver are not in sync for whatever
reason.

- If I put a breakpoint on the thread function, before 'cont', the
program terminates as soon the thread is created.

- the shared library 'thread_db' is not loaded (I think it should):
# cat /proc/2298/maps
00008000-00009000 r-xp 00000000 00:0c 4339       /tmp/test
00010000-00011000 rw-p 00000000 00:0c 4339       /tmp/test
00011000-00012000 rwxp 00011000 00:00 0          [heap]
40000000-40005000 r-xp 00000000 00:01 398        /lib/ld-uClibc-0.9.29.so
40005000-40006000 rw-p 40005000 00:00 0
4000c000-4000d000 r--p 00004000 00:01 398        /lib/ld-uClibc-0.9.29.so
4000d000-4000e000 rw-p 00005000 00:01 398        /lib/ld-uClibc-0.9.29.so
4000e000-40019000 r-xp 00000000 00:01 406        /lib/libpthread-0.9.29.so
40019000-40020000 ---p 40019000 00:00 0
40020000-40021000 r--p 0000a000 00:01 406        /lib/libpthread-0.9.29.so
40021000-40026000 rw-p 0000b000 00:01 406        /lib/libpthread-0.9.29.so
40026000-40028000 rw-p 40026000 00:00 0
40028000-400b5000 r-xp 00000000 00:01 414        /lib/libuClibc-0.9.29.so
400b5000-400bc000 ---p 400b5000 00:00 0
400bc000-400bd000 r--p 0008c000 00:01 414        /lib/libuClibc-0.9.29.so
400bd000-400be000 rw-p 0008d000 00:01 414        /lib/libuClibc-0.9.29.so
400be000-400c3000 rw-p 400be000 00:00 0
bebde000-bebf3000 rwxp befeb000 00:00 0          [stack]

I used linuxthreads (stable/old), and I checked 'pthreads debugging
support ' within uclibc menuconfig.

Any idea what I am missing?

TIA,
~Olivier
ninevoltz | 1 May 16:11 2008

svn commit: trunk/buildroot/package/festival: lexicons voices

Author: ninevoltz
Date: 2008-05-01 07:11:30 -0700 (Thu, 01 May 2008)
New Revision: 21907

Log:
fix festival file downloaders

Modified:
   trunk/buildroot/package/festival/lexicons/festlex.mk
   trunk/buildroot/package/festival/voices/festvox.mk

Changeset:
Modified: trunk/buildroot/package/festival/lexicons/festlex.mk
===================================================================
--- trunk/buildroot/package/festival/lexicons/festlex.mk	2008-05-01 14:07:11 UTC (rev 21906)
+++ trunk/buildroot/package/festival/lexicons/festlex.mk	2008-05-01 14:11:30 UTC (rev 21907)
 <at>  <at>  -12,13 +12,13  <at>  <at> 
 $(FESTLEX_STATUS_DIR)/.downloaded:
 	mkdir -p $(FESTLEX_STATUS_DIR)
 ifeq ($(BR2_PACKAGE_FESTLEX_CMU),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX1)
+	$(Q)test -e $(DL_DIR)/$(LEX1) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX1)
 endif
 ifeq ($(BR2_PACKAGE_FESTLEX_OALD),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX2)
+	$(Q)test -e $(DL_DIR)/$(LEX2) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX2)
 endif
 ifeq ($(BR2_PACKAGE_FESTLEX_POS),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX3)
+	$(Q)test -e $(DL_DIR)/$(LEX3) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(LEX3)
 endif
 	touch $ <at> 

Modified: trunk/buildroot/package/festival/voices/festvox.mk
===================================================================
--- trunk/buildroot/package/festival/voices/festvox.mk	2008-05-01 14:07:11 UTC (rev 21906)
+++ trunk/buildroot/package/festival/voices/festvox.mk	2008-05-01 14:11:30 UTC (rev 21907)
 <at>  <at>  -21,35 +21,35  <at>  <at> 
 $(FESTVOX_STATUS_DIR)/.downloaded:
 	mkdir -p $(FESTVOX_STATUS_DIR)
 ifeq ($(BR2_PACKAGE_FESTVOX_AWB),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE1)
+	$(Q)test -e $(DL_DIR)/$(VOICE1) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE1)
 endif
 ifeq ($(BR2_PACKAGE_FESTVOX_BDL),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE2)
+	$(Q)test -e $(DL_DIR)/$(VOICE2) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE2)
 endif
 ifeq ($(BR2_PACKAGE_FESTVOX_JMK),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE3)
+	$(Q)test -e $(DL_DIR)/$(VOICE3) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE3)
 endif
 ifeq ($(BR2_PACKAGE_FESTVOX_SLT),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE4)
+	$(Q)test -e $(DL_DIR)/$(VOICE4) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE4)
 endif
 ifeq ($(BR2_PACKAGE_FESTVOX_AWB_MULTISYN),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE5)
+	$(Q)test -e $(DL_DIR)/$(VOICE5) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE5)
 endif
 ifeq ($(BR2_PACKAGE_FESTVOX_JMK_MULTISYN),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE6)
+	$(Q)test -e $(DL_DIR)/$(VOICE6) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE6)
 endif
 ifeq ($(BR2_PACKAGE_FESTVOX_KAL_SIXTEENK),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE7)
+	$(Q)test -e $(DL_DIR)/$(VOICE7) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE7)
 endif
 ifeq ($(BR2_PACKAGE_FESTVOX_KED_EIGHTK),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE8)
+	$(Q)test -e $(DL_DIR)/$(VOICE8) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE8)
 endif
 ifeq ($(BR2_PACKAGE_FESTVOX_KED_SIXTEENK),y)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE9)
+	$(Q)test -e $(DL_DIR)/$(VOICE9) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(VOICE9)
 endif
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(FRONTEND1)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(FRONTEND2)
-	$(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(FRONTEND3)
+	$(Q)test -e $(DL_DIR)/$(FRONTEND1) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(FRONTEND1)
+	$(Q)test -e $(DL_DIR)/$(FRONTEND2) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(FRONTEND2)
+	$(Q)test -e $(DL_DIR)/$(FRONTEND3) || $(WGET) -P $(DL_DIR) $(FESTIVAL_SITE)/$(FRONTEND3)

 	touch $ <at> 
Arun Reddy | 1 May 16:51 2008
Picon

What is the best way to deactivate XML Parser (expat) for ARM build?

I have been stuck for quite a few days on a problem dealing with the build process failing because it cannot find the XML Parser library libexpat. I was wondering is this even necessary for the build to complete? Can I deactivate it? It seems my problem is very unique and no other people have encountered it when doing an ARM build, so how did you guys deactivate the XML Parser?

Thank you.

_______________________________________________
buildroot mailing list
buildroot@...
http://busybox.net/mailman/listinfo/buildroot
ninevoltz | 1 May 17:21 2008

svn commit: trunk/buildroot/scripts

Author: ninevoltz
Date: 2008-05-01 08:21:47 -0700 (Thu, 01 May 2008)
New Revision: 21908

Log:
some enhancements to the build-ext3-img script

Modified:
   trunk/buildroot/scripts/build-ext3-img

Changeset:
Modified: trunk/buildroot/scripts/build-ext3-img
===================================================================
--- trunk/buildroot/scripts/build-ext3-img	2008-05-01 14:11:30 UTC (rev 21907)
+++ trunk/buildroot/scripts/build-ext3-img	2008-05-01 15:21:47 UTC (rev 21908)
 <at>  <at>  -21,8 +21,8  <at>  <at> 

 IMAGE=${IMAGE_PATH}/${IMAGE_NAME}

-echo "Enter the path to the root filesystem that you want"
-echo "to install to the image"
+echo "Enter the path and filename for the root filesystem"
+echo "tarball that you want to install into the image"
 read ROOT_PATH

 if [ "${ROOT_PATH}" = "" ]; then
 <at>  <at>  -36,7 +36,7  <at>  <at> 
 CYLINDERS=${CYLINDERS%${ROOT_PATH}}
 BYTE_SIZE=${BYTE_SIZE%${ROOT_PATH}}

-CYLINDERS=`expr ${CYLINDERS} "+" 2`
+CYLINDERS=`expr ${CYLINDERS} "*" 2`

 echo "Now I will create an ext3 image file"
 echo "using ${CYLINDERS} cylinders, with ${BLOCKSIZE} bytes per block"
 <at>  <at>  -60,7 +60,7  <at>  <at> 
 # Install Software to the image
 	mkdir -p ${IMAGE_PATH}/temp
     mount -o offset=32256,loop ${IMAGE} ${IMAGE_PATH}/temp
-    cp -a ${ROOT_PATH}/* ${IMAGE_PATH}/temp
+    tar -xvf ${ROOT_PATH} --directory ${IMAGE_PATH}/temp
     # make sure to unmount the image
     umount ${IMAGE_PATH}/temp
 	rm -rf ${IMAGE_PATH}/temp
 <at>  <at>  -124,7 +124,7  <at>  <at> 
 ide0:0.writeThrough = "FALSE"
 ide0:0.startConnected = "TRUE"

-ide1:0.present = "TRUE"
+ide1:0.present = "FALSE"
 ide1:0.fileName = ""
 ide1:0.deviceType = "disk"
 ide1:0.mode = ""
Robert Nelson | 1 May 17:55 2008
Picon

Re: What is the best way to deactivate XML Parser (expat) for ARM build?

-- added CC to Buildroot List

Hi Arun,

I've recently run into this too...  for some reason the expat dependency 
isn't properly built with the default at91sam9263_defconfig.  Until this 
gets fixed upstream, I've been issuing an "make expat" after the error 
first occurs, this moves the generated libexpat into the correct 
directory.. After which the build process will continue till the next 
error. (checking for GLIB - version >= 2.2.0... no)

Robert Nelson
FAE - Digi-Key

Arun Reddy wrote:
> I have been stuck for quite a few days on a problem dealing with the 
> build process failing because it cannot find the XML Parser library 
> libexpat. I was wondering is this even necessary for the build to 
> complete? Can I deactivate it? It seems my problem is very unique and 
> no other people have encountered it when doing an ARM build, so how 
> did you guys deactivate the XML Parser?
>
> Thank you.

Gmane