svn-migration-scripts jar verify throws error on Mac M1
Asked by Srinivasan MK:

I am trying to move our projects. from svn to bitbucket and was following the steps indicated in <https://www.atlassian.com/git/tutorials/migrating-prepare>

I have installed git, svn, git-svn via homebrew.

My system version is Mac M1 Pro , Ventura 13.0

When I run

```
?java -jar ~/svn-migration-scripts.jar verify
```

I get the following error

svn-migration-scripts: using version 0.1.56bbc7f

Git: using version 2.38.1

Subversion: using version 1.14.2

Can't load '/opt/homebrew/opt/subversion/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' for module SVN::_Core: dlopen(/opt/homebrew/opt/subversion/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle, 0x0001): tried: '/opt/homebrew/opt/subversion/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/subversion/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' (no such file), '/opt/homebrew/opt/subversion/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/opt/homebrew/Cellar/subversion/1.14.2_1/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/subversion/1.14.2_1/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' (no such file), '/opt/homebrew/Cellar/subversion/1.14.2_1/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) at /System/Library/Perl/5.30/darwin-thread-multi-2level/DynaLoader.pm line 197.

at /opt/homebrew/opt/subversion/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/SVN/Base.pm line 59.

BEGIN failed--compilation aborted at /opt/homebrew/opt/subversion/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level/SVN/Core.pm line 5.

Compilation failed in require at /opt/homebrew/opt/git/share/perl5/Git/SVN/Utils.pm line 6.

BEGIN failed--compilation aborted at /opt/homebrew/opt/git/share/perl5/Git/SVN/Utils.pm line 6.

Compilation failed in require at /opt/homebrew/opt/git/share/perl5/Git/SVN.pm line 25.

BEGIN failed--compilation aborted at /opt/homebrew/opt/git/share/perl5/Git/SVN.pm line 32.

Compilation failed in require at /opt/homebrew/bin/git-svn line 23.

BEGIN failed--compilation aborted at /opt/homebrew/bin/git-svn line 23.

git-svn: ERROR: Unable to determine version.

Can you help me figure out what the issue is.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: I'd be keen to learn if this can be resolved. Thanks.


author: Robert Wen_ReleaseTEAM_
body: Hello [@Srinivasan MK](/t5/user/viewprofilepage/user-id/5073739) ! Welcome to the Atlassian Community!

It looks like there's some dependency that still uses the Intel-based code and hasn't been ported to Apple Silicon.

comments: author: Srinivasan MK
body: Yes, the svn Core Bundle says

mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64' )

Wondering if the svn migration jar assumes mac os to be (Intel based) in x86 ?

Any specific pointers will help me in resolving the issue.


Tags: bitbucket-cloud

cloud