Skip to content

supported_platforms() does not include older x86-64 CPUs #828

Open
@xianwenchen

Description

@xianwenchen

I found out that GDAL.jl does not function well on an older Pentium 4 x86-64 CPU. The problem seems to be that CPU instructions that older x86-64 CPUs do not support, are included. This is typically caused by a setting of march that targets CPUs that are newers.

I posted an issue on GDAL.il [0] and opened a post at Julia Discourse [1].

According to the response from visr, the issue was caused by BinaryBuilder, through this line [2]. Specifically, the supported_platforms() does not seem to include older x86-64 CPUs.

I am not familier with BinaryProvider.jl. A quick search did not reveal which file contains the supported_platforms() setting.

I wonder if you could point me to the file?

Specifically, I am interested in adding generic march setting, x86-64, there as well as older CPUs such as my nocona.

[0] JuliaGeo/GDAL.jl#92
[1] https://discourse.julialang.org/t/illegal-cpu-instructions-when-testing-gdal-jl/41922
[2] https://github.com/JuliaPackaging/Yggdrasil/blob/32f1ae9ecd91998b26cc4f760b74225fca8829ef/G/GDAL/build_tarballs.jl#L61

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions