I'd suggest you try it without the --build and --host flags to configure.

Diane

On Fri, Aug 27, 2010 at 5:21 PM, Ron Hermsen <ronherm...@gmail.com> wrote:

> Hopefully someone can help me to understand this ScratcBbox 1 issue.
>
> If I try to cross-compile par2cmdline within SB it fails during make:
> > make
> make  all-am
> make[1]: Entering directory `/home/rhermsen/par2cmdline/par2cmdline-0.4'
> if mips-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -g -O2 -MT
> par2cmdline.o -MD -MP -MF ".deps/par2cmdline.Tpo" -c -o par2cmdline.o
> par2cmdline.cpp; \
>        then mv -f ".deps/par2cmdline.Tpo" ".deps/par2cmdline.Po";
> else rm -f ".deps/par2cmdline.Tpo"; exit 1; fi In file included from
>
> /scratchbox/compilers/uclibc-crosstools_gcc-3.4.2_uclibc-20050502/bin/../lib/gcc/mips-linux-uclibc/3.4.2/../../../../include/c++/3.4.2/string:53,
>                 from par2cmdline.h:240,
>                 from par2cmdline.cpp:20:
>
> /scratchbox/compilers/uclibc-crosstools_gcc-3.4.2_uclibc-20050502/bin/../lib/gcc/mips-linux-uclibc/3.4.2/../../../../include/c++/3.4.2/bits/basic_string.h:148:
> error: `_Atomic_word' does not name a type <snip>
>
> Used commands in SB:
> > cd
> > mkdir par2cmdline
> > cd par2cmdline
> > wget
> http://sourceforge.net/projects/parchive/files/par2cmdline/0.4/par2cmdline-0.4.tar.gz/download
> > tar xfvz par2cmdline-0.4.tar.gz
> > cd par2cmdline-0.4
> > ./configure \
> --prefix=/usr \
> --build=i686-pc-linux-gnu \
> --host=mips-linux
> > make
>
>
>
> If I cross-compile par2cmdline outside scratchbox using the same gcc
> g++ location it succeeds.
> Used commands :
> # mkdir par2
> # cd par2
> # wget
> http://sourceforge.net/projects/parchive/files/par2cmdline/0.4/par2cmdline-0.4.tar.gz/download
> # tar xfvz par2cmdline-0.4.tar.gz
> # cd par2cmdline-0.4
> # export
> CXX=/scratchbox/compilers/uclibc-crosstools_gcc-3.4.2_uclibc-20050502/bin/mips-linux-uclibc-g++
> # export
> CC=/scratchbox/compilers/uclibc-crosstools_gcc-3.4.2_uclibc-20050502/bin/mips-linux-uclibc-gcc
> # ./configure \
> --prefix=/usr \
> --build=i686-pc-linux-gnu \
> --host=mips-linux
> # make
> # mkdir builds
> # make install DESTDIR...../par2cmdline-0.4/builds
>
> # make
> make  all-am
> make[1]: Entering directory `/home/rhermsen/par2/par2cmdline-0.4'
> if
> /scratchbox/compilers/uclibc-crosstools_gcc-3.4.2_uclibc-20050502/bin/mips-linux-uclibc-g++
> -DHAVE_CONFIG_H -I. -I. -I.    -Wall -g -O2 -MT par2cmdline.o -MD -MP
> -MF ".deps/par2cmdline.Tpo" -c -o par2cmdline.o par2cmdline.cpp; \
>        then mv -f ".deps/par2cmdline.Tpo" ".deps/par2cmdline.Po";
> else rm -f ".deps/par2cmdline.Tpo"; exit 1; fi In file included from
> par2cmdline.h:265,
>                 from par2cmdline.cpp:20:
> par2fileformat.h:66: warning: ignoring packed attribute on unpacked
> non-POD field `leu64 PACKET_HEADER::length'
> <snip>
>
> SB:
> # uname -a
> Linux deb-sb 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686
> GNU/Linux
> > uname -a
> Linux deb-sb 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 mips
> GNU/Linux
>
> Scratchbox 1.0.17
> Target: Mips Big endian (a bcm6348 based wireless ADSL-router)
> Compiler: uclibc-crosstools_gcc-3.4.2_uclibc-20050502
> Host: Debian-5.0.4-i386
>
> Is something wrong with my SB environment?
> _______________________________________________
> Scratchbox-users mailing list
> Scratchbox-users@lists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users
>
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to