ok, just like i thought.
thanks for the info

On Mar 11, 8:35 pm, Kenton Varda <ken...@google.com> wrote:
> The tests obviously can't run when cross-compiling, so this is expected.
>  You should manually run protobuf-test on the target architecture to make
> sure it works.  The other tests probably aren't important.
>
> On Thu, Mar 11, 2010 at 2:12 AM, Felix Schmutz <felix.schm...@gmail.com>wrote:
>
> > hi,
>
> > i was trying to cross-compile protocol buffers 2.3.0 for power pc. when i
> > did make-check, it failed and asked me to report it.
> > i guess the make check just failed because i was doing the cross-compile
> > and he then couldnt execute the cross-compiled executables.
> > however when running configure, i  explicitly told it --with-protoc=protoc
> > so i thought the checks would work then?
>
> > i am running on ubuntu 9.10  32bit and already have successfully built and
> > installed protocol buffers on my machine. i am also able to successfully
> > cross-compile apps for power-pc.
>
> > here is what i did and the output of make check:
>
> > >protoc --version
> > libprotoc 2.3.0
> > >powerpc-linux-g++ --version
> > .powerpc-glibc-linux-gnu-g++ (crosstool-NG-1.5.2) 4.3.4
> > Copyright (C) 2008 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.  There is NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> > >./configure --with-protoc=protoc --target=powerpc-linux
> > --host=powerpc-linux
> > ...
> > >export PATH=$PATH:/opt/Rootfilesys/toolchain/
> > ...
> > >./configure --with-protoc=protoc --target=powerpc-linux
> > --host=powerpc-linux
> > ...
> > >make clean
> > ...
> > >make
> > ...
> > >make check
>
> > Making check in .
> > make[1]: Entering directory `/home/felix/protobuf/protobuf-2.3.0'
> > make  check-local
> > make[2]: Entering directory `/home/felix/protobuf/protobuf-2.3.0'
> > Making lib/libgtest.a lib/libgtest_main.a in gtest
> > make[3]: Entering directory `/home/felix/protobuf/protobuf-2.3.0/gtest'
> > depbase=`echo src/gtest.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> >     /bin/bash ./libtool --tag=CXX   --mode=compile powerpc-linux-g++
> > -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include   -g -DNDEBUG -MT
> > src/gtest.lo -MD -MP -MF $depbase.Tpo -c -o src/gtest.lo src/gtest.cc &&\
> >     mv -f $depbase.Tpo $depbase.Plo
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest.lo -MD -MP -MF src/.deps/gtest.Tpo -c
> > src/gtest.cc  -fPIC -DPIC -o src/.libs/gtest.o
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest.lo -MD -MP -MF src/.deps/gtest.Tpo -c
> > src/gtest.cc -o src/gtest.o >/dev/null 2>&1
> > depbase=`echo src/gtest-death-test.lo | sed
> > 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> >     /bin/bash ./libtool --tag=CXX   --mode=compile powerpc-linux-g++
> > -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include   -g -DNDEBUG -MT
> > src/gtest-death-test.lo -MD -MP -MF $depbase.Tpo -c -o
> > src/gtest-death-test.lo src/gtest-death-test.cc &&\
> >     mv -f $depbase.Tpo $depbase.Plo
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-death-test.lo -MD -MP -MF
> > src/.deps/gtest-death-test.Tpo -c src/gtest-death-test.cc  -fPIC -DPIC -o
> > src/.libs/gtest-death-test.o
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-death-test.lo -MD -MP -MF
> > src/.deps/gtest-death-test.Tpo -c src/gtest-death-test.cc -o
> > src/gtest-death-test.o >/dev/null 2>&1
> > depbase=`echo src/gtest-filepath.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> >     /bin/bash ./libtool --tag=CXX   --mode=compile powerpc-linux-g++
> > -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include   -g -DNDEBUG -MT
> > src/gtest-filepath.lo -MD -MP -MF $depbase.Tpo -c -o src/gtest-filepath.lo
> > src/gtest-filepath.cc &&\
> >     mv -f $depbase.Tpo $depbase.Plo
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-filepath.lo -MD -MP -MF
> > src/.deps/gtest-filepath.Tpo -c src/gtest-filepath.cc  -fPIC -DPIC -o
> > src/.libs/gtest-filepath.o
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-filepath.lo -MD -MP -MF
> > src/.deps/gtest-filepath.Tpo -c src/gtest-filepath.cc -o
> > src/gtest-filepath.o >/dev/null 2>&1
> > depbase=`echo src/gtest-port.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> >     /bin/bash ./libtool --tag=CXX   --mode=compile powerpc-linux-g++
> > -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include   -g -DNDEBUG -MT
> > src/gtest-port.lo -MD -MP -MF $depbase.Tpo -c -o src/gtest-port.lo
> > src/gtest-port.cc &&\
> >     mv -f $depbase.Tpo $depbase.Plo
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-port.lo -MD -MP -MF
> > src/.deps/gtest-port.Tpo -c src/gtest-port.cc  -fPIC -DPIC -o
> > src/.libs/gtest-port.o
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-port.lo -MD -MP -MF
> > src/.deps/gtest-port.Tpo -c src/gtest-port.cc -o src/gtest-port.o >/dev/null
> > 2>&1
> > depbase=`echo src/gtest-test-part.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> >     /bin/bash ./libtool --tag=CXX   --mode=compile powerpc-linux-g++
> > -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include   -g -DNDEBUG -MT
> > src/gtest-test-part.lo -MD -MP -MF $depbase.Tpo -c -o src/gtest-test-part.lo
> > src/gtest-test-part.cc &&\
> >     mv -f $depbase.Tpo $depbase.Plo
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-test-part.lo -MD -MP -MF
> > src/.deps/gtest-test-part.Tpo -c src/gtest-test-part.cc  -fPIC -DPIC -o
> > src/.libs/gtest-test-part.o
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-test-part.lo -MD -MP -MF
> > src/.deps/gtest-test-part.Tpo -c src/gtest-test-part.cc -o
> > src/gtest-test-part.o >/dev/null 2>&1
> > depbase=`echo src/gtest-typed-test.lo | sed
> > 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> >     /bin/bash ./libtool --tag=CXX   --mode=compile powerpc-linux-g++
> > -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include   -g -DNDEBUG -MT
> > src/gtest-typed-test.lo -MD -MP -MF $depbase.Tpo -c -o
> > src/gtest-typed-test.lo src/gtest-typed-test.cc &&\
> >     mv -f $depbase.Tpo $depbase.Plo
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-typed-test.lo -MD -MP -MF
> > src/.deps/gtest-typed-test.Tpo -c src/gtest-typed-test.cc  -fPIC -DPIC -o
> > src/.libs/gtest-typed-test.o
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest-typed-test.lo -MD -MP -MF
> > src/.deps/gtest-typed-test.Tpo -c src/gtest-typed-test.cc -o
> > src/gtest-typed-test.o >/dev/null 2>&1
> > /bin/bash ./libtool --tag=CXX   --mode=link powerpc-linux-g++  -g
> > -DNDEBUG   -o lib/libgtest.la -rpath /usr/local/lib src/gtest.lo
> > src/gtest-death-test.lo src/gtest-filepath.lo src/gtest-port.lo
> > src/gtest-test-part.lo src/gtest-typed-test.lo
> > libtool: link: powerpc-linux-g++ -shared -nostdlib
> > /opt/Rootfilesys/ct-ng/10-01-05/powerpc-glibc-linux-gnu//sys-root/usr/lib/crti.o
> > /opt/Rootfilesys/ct-ng/10-01-05/lib/gcc/powerpc-glibc-linux-gnu/4.3.4/crtbeginS.o
> > src/.libs/gtest.o src/.libs/gtest-death-test.o src/.libs/gtest-filepath.o
> > src/.libs/gtest-port.o src/.libs/gtest-test-part.o
> > src/.libs/gtest-typed-test.o   -Wl,-rpath
> > -Wl,/opt/Rootfilesys/ct-ng/10-01-05/powerpc-glibc-linux-gnu/lib -Wl,-rpath
> > -Wl,/opt/Rootfilesys/ct-ng/10-01-05/powerpc-glibc-linux-gnu/lib
> > -L/opt/Rootfilesys/ct-ng/10-01-05/lib/gcc/powerpc-glibc-linux-gnu/4.3.4
> > -L/opt/Rootfilesys/ct-ng/10-01-05/lib/gcc/powerpc-glibc-linux-gnu/4.3.4/../../../../powerpc-glibc-linux-gnu/lib
> > -L/opt/Rootfilesys/ct-ng/10-01-05/powerpc-glibc-linux-gnu//sys-root/lib
> > -L/opt/Rootfilesys/ct-ng/10-01-05/powerpc-glibc-linux-gnu//sys-root/usr/lib
> > /opt/Rootfilesys/ct-ng/10-01-05/powerpc-glibc-linux-gnu/lib/libstdc++.so -lm
> > -lc -lgcc_s
> > /opt/Rootfilesys/ct-ng/10-01-05/lib/gcc/powerpc-glibc-linux-gnu/4.3.4/crtsavres.o
> > /opt/Rootfilesys/ct-ng/10-01-05/lib/gcc/powerpc-glibc-linux-gnu/4.3.4/crtendS.o
> > /opt/Rootfilesys/ct-ng/10-01-05/powerpc-glibc-linux-gnu//sys-root/usr/lib/crtn.o
> > -Wl,-soname -Wl,libgtest.so.0 -o lib/.libs/libgtest.so.0.0.0
> > libtool: link: (cd "lib/.libs" && rm -f "libgtest.so.0" && ln -s
> > "libgtest.so.0.0.0" "libgtest.so.0")
> > libtool: link: (cd "lib/.libs" && rm -f "libgtest.so" && ln -s
> > "libgtest.so.0.0.0" "libgtest.so")
> > libtool: link: ar cru lib/.libs/libgtest.a  src/gtest.o
> > src/gtest-death-test.o src/gtest-filepath.o src/gtest-port.o
> > src/gtest-test-part.o src/gtest-typed-test.o
> > libtool: link: ranlib lib/.libs/libgtest.a
> > libtool: link: ( cd "lib/.libs" && rm -f "libgtest.la" && ln -s "../
> > libgtest.la" "libgtest.la" )
> > depbase=`echo src/gtest_main.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> >     /bin/bash ./libtool --tag=CXX   --mode=compile powerpc-linux-g++
> > -DHAVE_CONFIG_H -I. -I./build-aux  -I. -I./include   -g -DNDEBUG -MT
> > src/gtest_main.lo -MD -MP -MF $depbase.Tpo -c -o src/gtest_main.lo
> > src/gtest_main.cc &&\
> >     mv -f $depbase.Tpo $depbase.Plo
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest_main.lo -MD -MP -MF
> > src/.deps/gtest_main.Tpo -c src/gtest_main.cc  -fPIC -DPIC -o
> > src/.libs/gtest_main.o
> > libtool: compile:  powerpc-linux-g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.
> > -I./include -g -DNDEBUG -MT src/gtest_main.lo -MD -MP -MF
> > src/.deps/gtest_main.Tpo -c src/gtest_main.cc -o src/gtest_main.o >/dev/null
> > 2>&1
> > /bin/bash ./libtool --tag=CXX   --mode=link powerpc-linux-g++  -g
> > -DNDEBUG   -o lib/libgtest_main.la -rpath /usr/local/lib src/gtest_main.lo
> > lib/libgtest.la
> > libtool: link: warning:
> > `/opt/Rootfilesys/ct-ng/10-01-05/lib/gcc/powerpc-glibc-linux-gnu/4.3.4/../../../../powerpc-glibc-linux-gnu/lib/libstdc++.la'
> > seems to be moved
>
> ...
>
> read more »

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to