Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#39721 - [julia] 0.3.0_prerelease-1 Target architecture mismatch.

Attached to Project: Community Packages
Opened by Vesa Kärkkäinen (Thor) - Wednesday, 02 April 2014, 19:46 GMT
Last edited by Alexander F. Rødseth (xyproto) - Tuesday, 26 August 2014, 19:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Can't start julia on x86_64, julia give following error message:
Target architecture mismatch. Please delete or regenerate sys.{so,dll,dylib}.

Additional info:

package version: julia 0.3.0_prerelease-1


Steps to reproduce:

$ julia

Target architecture mismatch. Please delete or regenerate sys.{so,dll,dylib}.
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Tuesday, 26 August 2014, 19:39 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Thursday, 03 April 2014, 07:48 GMT
Thanks for reporting. It worked perfectly on x86_64 when I tried it. Will look into the issue and test on another installation.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 03 April 2014, 21:34 GMT
Updated the Julia package. Tested on two x86_64 systems.

Does it work for you as well now?
Comment by Vesa Kärkkäinen (Thor) - Friday, 04 April 2014, 06:08 GMT
Julia working fine now, thanks.
Comment by Alexander F. Rødseth (xyproto) - Friday, 04 April 2014, 11:57 GMT
Great! Closing this one.
Comment by Milan Bouchet-Valat (nalimilan) - Thursday, 15 May 2014, 12:59 GMT
  • Field changed: Percent Complete (100% → 0%)
Apparently you fixed the problem by not shipping the sysimg.so file, which makes Julia's startup slower. I'd just wanted to note that I've experienced the same problem when making a Fedora RPM, and I've filed an issue. The solution would be to create an image suited to all CPUs. https://github.com/JuliaLang/julia/issues/6715
Comment by Alexander F. Rødseth (xyproto) - Thursday, 15 May 2014, 14:14 GMT
Thanks for the information. Hopefully the Julia developers will find a good solution for this. As you are probably aware, Arch Linux tries to avoid patching and tries to ship a package that is as close to upstream as possible. Unless I have misunderstood, this is an upstream problem and not a packaging problem.

Closing this one as "upstream". If you think this is a packaging problem, please re-open this issue and I'll do my best to look into it. Thanks.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 03 July 2014, 13:43 GMT
The workaround solved the problem, with the tradeoff of making the startup slower.

 FS#39721  suggested that this problem might be solved, so I reopened this bug while the issue is looked into.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 03 July 2014, 14:32 GMT
Now works without removing sys.so. Will try with the latest commit as well.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 03 July 2014, 15:11 GMT
Works without sys.so. Updating the package in community and closing this bug.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 03 July 2014, 23:19 GMT
Tested on another computer, and sys.so was creating problems there. Removing sys.so again.
Comment by Milan Bouchet-Valat (nalimilan) - Sunday, 24 August 2014, 10:53 GMT
  • Field changed: Percent Complete (100% → 0%)
Do you have any details on the machine where the problem happened? Are you setting JULIA_CPU_TARGET=core2? Please report issues upstream so that we can try to improve things.
Comment by Alexander F. Rødseth (xyproto) - Sunday, 24 August 2014, 10:55 GMT
Yes, JULIA_CPU_TARGET is set to core2.

Vesa Kärkkäinen, please report this bug upstream if it is still a problem and if it doesn't work with the latest julia package (version 0.3.0, the release version).
Comment by Wilfred Hughes (Wilfred) - Monday, 25 August 2014, 11:58 GMT
Related:  FS#41666 .

I've opened an upstream bug: https://github.com/JuliaLang/julia/issues/8119
Comment by Milan Bouchet-Valat (nalimilan) - Monday, 25 August 2014, 12:30 GMT
Alexander Rødseth: You're setting JULIA_CPU_TARGET=core2, but apparently you are explicitly removing the system image after the build. This shouldn't be needed. See the discussion upstream.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 26 August 2014, 08:40 GMT
Milan Bouchet-Valat, that is incorrect. sys.so is only removed if julia is broken and does not start: https://projects.archlinux.org/svntogit/community.git/tree/trunk/sysfix.install?h=packages/julia
Comment by Milan Bouchet-Valat (nalimilan) - Tuesday, 26 August 2014, 08:53 GMT
Yes, but I'd argue it's not a good strategy : better get a failure so that it can be reported clearly and fixed; else nobody sees any error message, and users think Julia or the Arch package are necessarily slow to start. We're trying to debug this upstream.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 26 August 2014, 11:20 GMT
It appears that JULIA_CPU_TARGET=core2 should rather be MARCH=${CARCH/_/-}

Updated the PKGBUILD and rebuilding the julia package. The updated package will appear in [community] shortly.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 26 August 2014, 11:25 GMT
Milan Bouchet-Valat, if it is not a good packaging strategy, why is Julia asking users/packagers to remove sys.so if it's not working, instead of crashing hard, outputting debug information and asking users to file a bug report? Julia says: "Target architecture mismatch. Please delete or regenerate sys.{so,dll,dylib}."
Comment by Milan Bouchet-Valat (nalimilan) - Tuesday, 26 August 2014, 14:32 GMT
Well, I guess this message is intended at users who used "native", not at distributors who normally use baseline architectures which don't fail anywhere (as you and I do). And it says "delete or *regenerate*".

Anyway, glad to know it works now! Please feel free to report bugs upstream earlier if you find problems like this in the future (including to fix error messages).
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 26 August 2014, 18:57 GMT
Will do. I'm also glad it's working now. :)

Thanks for caring about julia and the julia package. Closing this bug.

Loading...