[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: subversion cross compile (arm)

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 1 Dec 2010 05:12:12 +0200

Takács András wrote on Tue, Nov 30, 2010 at 20:36:55 +0100:
> Hi All,
>
> I have problem with cross-compiling of subversion for arm. I'm using
> codesourcery toolchain. (See build details below).
>
> My test method (after flashing my developement board):
> # svnadmin create /var/svn/testrepo
> # svnserve --config-file /etc/svnserve.cfg -d -r /var/svn
> # svn co svn://wakoond@127.0.0.1/testrepo
> # cd testrepo/
> # svn mkdir xxx
> # svn ci -m "aa"
> Adding xxx
> svn: Commit failed (details follow):
> svn: Corrupt node-revision '0.0.t0-0'
> svn: Malformed text representation offset line in node-rev
>

I'd use file:/// for testing.

I suppose the next hint (unless someone has tips specific to arm) would
be to see the corrupt lines in the revision file --- can you share them?
You can patch or breakpoint in subversion/libsvn_fs_fs/fs_fs.c (that is
where the error is generated) to find what lines it complains about.

You can pass --enable-maintainer-mode to configure to get some debug
aids: asserts, debug symbols, stack traces in the error message.

>
> Could you please help me? What's the problem? Is it a build/configure
> or a toolchain/libc problem?
> Did anybody cross-compiled subversion for arm4t platform previously?
>
> Thanks a lot! Really, I'm very thankful for everything!
>
> Regards,
> András
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Toolchain: arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu
> Cross gcc: arm-none-linux-gnueabi-gcc
> Cross cflags: -march=armv4t -mtune=arm920t
>
> Apr configure:
> ./configure \
> --prefix=/usr \
> --host=$(CROSS_COMPILE) \
> ac_cv_file__dev_zero="yes" \
> ac_cv_func_setpgrp_void="yes" \
> apr_cv_process_shared_works="yes" \
> apr_cv_mutex_robust_shared="no" \
> apr_cv_tcp_nodelay_with_cork="yes" \
> ac_cv_sizeof_struct_iovec="8" \
> apr_cv_mutex_recursive="yes" \
> CFLAGS=$(CROSS_CFLAGS) \
> LDFLAGS=$(CROSS_LDFLAGS)
>
> Apr-utils configure:
> ./configure \
> --with-apr=<MY_APR_BUILD_DIR> \
> --prefix=/usr \
> --host=$(CROSS_COMPILE) \
> CFLAGS=$(CROSS_CFLAGS) \
> LDFLAGS=$(CROSS_LDFLAGS); \
>
> Subversion configure:
> ./configure \
> --with-apr=$(PACKAGES_DIR)/apr/$(TARGET_PACKAGE)/apr \
> --with-apr-util=$(PACKAGES_DIR)/apr-util/$(TARGET_PACKAGE)/apr-util \
> --with-sqlite="$(TARGET_DEV_ROOT)/usr" \
> --with-zlib="$(TARGET_DEV_ROOT)/usr" \
> --host=$(CROSS_COMPILE) \
> --prefix=/usr \
> CFLAGS=$(CROSS_CFLAGS) \
> LDFLAGS=$(CROSS_LDFLAGS)
>
> Other compiled libraries: sqlite3, zlib
> I'm usung the latest, 1.6.15 subversion and subversion-deps packages.
> (I compiled all libraries from subversion-deps, no other installed library)
>
> --
> Takács András
> Skype: wakoond
> GTalk: wakoond
> MSN: wakoond_at_freestart.hu
Received on 2010-12-01 04:14:13 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.