Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#45187 closed defect (fixed)

julia: target architecture mismatch error

Reported by: cdeil (Christoph Deil) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: petrrr
Port: julia

Description

I'm getting the following error on Mac OS X 10.9.5 with Xcode 6.0.1 :

eduroam-3-163:tmp deil$ sudo port install julia
--->  Computing dependencies for julia
--->  Fetching archive for julia
--->  Attempting to fetch julia-0.3.1_0+gcc48.darwin_13.x86_64.tbz2 from http://packages.macports.org/julia
--->  Attempting to fetch julia-0.3.1_0+gcc48.darwin_13.x86_64.tbz2.rmd160 from http://packages.macports.org/julia
--->  Installing julia @0.3.1_0+gcc48
--->  Activating julia @0.3.1_0+gcc48
--->  Cleaning julia
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.                             
eduroam-3-163:tmp deil$ julia
Target architecture mismatch. Please delete or regenerate sys.{so,dll,dylib}.eduroam-3-163:tmp deil$

Change History (19)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: sean@… removed
Owner: changed from macports-tickets@… to sean@…

comment:2 Changed 9 years ago by seanfarley (Sean Farley)

So, is this machine an i386?

comment:3 Changed 9 years ago by cdeil (Christoph Deil)

This is a Macbook with a pretty modern Intel Core i7 : http://ark.intel.com/products/64891

comment:4 Changed 9 years ago by cdeil (Christoph Deil)

If it helps to debug / resolve this issue, I can give you ssh access to a Mac server where I get the same error.

comment:5 Changed 9 years ago by mf2k (Frank Schima)

I see the same error on a Mac Pro late 2013. It's a problem with the pre-built binary on the buildbot. When I rebuild from source it works fine.

comment:6 Changed 9 years ago by mf2k (Frank Schima)

I committed a minor fix (r125983) and now the buildbot is rebuilding it, maybe that will help?

comment:7 Changed 9 years ago by mf2k (Frank Schima)

The binary on the buildbot is still broken.

comment:8 Changed 9 years ago by seanfarley (Sean Farley)

I have a fix for julia Using The Right Compilers but that might not be enough. Since it needs to build its own OpenBLAS, we might want to disable binary archives?

comment:9 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:10 Changed 9 years ago by cdeil (Christoph Deil)

Now I updated to Mac OS X 10.10 and did a fresh Macports install.

At the moment port install julia tries to install llvm-3.3 which fails.

I do have llvm-3.5 installed ... can't julia use that?

comment:11 in reply to:  10 Changed 9 years ago by seanfarley (Sean Farley)

Replying to Deil.Christoph@…:

Now I updated to Mac OS X 10.10 and did a fresh Macports install.

At the moment port install julia tries to install llvm-3.3 which fails.

I do have llvm-3.5 installed ... can't julia use that?

Historically, this has been turbulent. See, for example, here and here. It seems the julia devs are working on making it work with llvm 3.5 and I will try this out. This will take a while since I just installed Yosemite. In the meantime, if you want to experiment on this yourself, you can try to edit the portfile to change llvm 3.3 to 3.5.

comment:12 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: newclosed

I updated this in r128079, which should fix these issues. Please open a new ticket if something doesn't work.

comment:13 Changed 9 years ago by cdeil (Christoph Deil)

I get this error in destroot, I think when it tries to install blas: https://gist.githubusercontent.com/cdeil/1ab3ff55f12c735d53b2/raw/gistfile1.txt

comment:14 in reply to:  13 Changed 9 years ago by seanfarley (Sean Farley)

Replying to Deil.Christoph@…:

I get this error in destroot, I think when it tries to install blas: https://gist.githubusercontent.com/cdeil/1ab3ff55f12c735d53b2/raw/gistfile1.txt

julia downloads its dependencies (except for the ones already in macports) while building. The error in your gist is curl: (6) name lookup timed out which would indicate that it might have had some network problems while building. Try cleaning and rebuilding.

comment:15 Changed 9 years ago by cdeil (Christoph Deil)

Tried again from work ... now it fails because git clone via the git protocol is not possible due to network security restrictions: https://gist.github.com/cdeil/b5aaf6a069ac0e1bdef2#file-gistfile1-txt-L1433

I guess that's just how Julia install is ... downloading things in various ways from the internet?

Or is there an option to get one tarball like most other ports do that contains everything?

If no, do you think it would be useful to ask the Julia devs to distribute Julia in this way?

comment:16 in reply to:  15 Changed 9 years ago by seanfarley (Sean Farley)

Replying to Deil.Christoph@…:

Tried again from work ... now it fails because git clone via the git protocol is not possible due to network security restrictions: https://gist.github.com/cdeil/b5aaf6a069ac0e1bdef2#file-gistfile1-txt-L1433

I guess that's just how Julia install is ... downloading things in various ways from the internet?

Or is there an option to get one tarball like most other ports do that contains everything?

If no, do you think it would be useful to ask the Julia devs to distribute Julia in this way?

Your question made me stop and think. I believe I started this portfile when Julia had no stable releases. Since that has changed, I'll look into the tarball distribution.

comment:17 Changed 9 years ago by seanfarley (Sean Farley)

Ok, pushed a fix in r128125.

comment:18 Changed 9 years ago by cdeil (Christoph Deil)

Thanks, Sean ... now it works for me. Now I to go learn Julia ... :-)

comment:19 in reply to:  18 Changed 9 years ago by seanfarley (Sean Farley)

Replying to Deil.Christoph@…:

Thanks, Sean ... now it works for me. Now I to go learn Julia ... :-)

Great!

Note: See TracTickets for help on using tickets.