Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install OK with Big Sur but "Unknown processor architecture" #1223

Closed
docteuri opened this issue Dec 8, 2020 · 8 comments
Closed

Install OK with Big Sur but "Unknown processor architecture" #1223

docteuri opened this issue Dec 8, 2020 · 8 comments
Labels

Comments

@docteuri
Copy link

docteuri commented Dec 8, 2020

Dear team,

After a success installation on Big Sur with Apple Silicon, I've got a "Unknown processor architecture" error.

Please could you add Silicon processor, I can help if needed.
The point is here :
https://github.com/microsoft/msphpsql/blob/e7e7a8d636aaec7bf2cb922fe990e8fcf86b6abc/source/shared/core_conn.cpp

But I do not know the value to add.

Thanks a lot

Edouard

@docteuri docteuri changed the title Install OK ON Big Sur but "Unknown processor architecture" Install OK with Big Sur but "Unknown processor architecture" Dec 8, 2020
@docteuri
Copy link
Author

docteuri commented Dec 8, 2020

I think you should add arm64 at line 52 ?

const char* PROCESSOR_ARCH[] = { "x86", "x64", "ia64", "arm64" };

@yitam
Copy link
Contributor

yitam commented Dec 8, 2020

Hi @docteuri , you're probably right. We can make changes to the PHP drivers now, or you're welcome to create a PR (please merge to our dev branch).

That being said, even though we get PHP drivers working, ODBC driver does not officially support this new architecture yet. The good news is that it's in our plan to support it in the near future.

@docteuri
Copy link
Author

docteuri commented Dec 9, 2020

Thanks a lot, you can add it it will be quicker.
I will test the next beat release to see if it works or not.
I do not know how to test with our pecl.
Thanks a lot
Edouard

@yitam
Copy link
Contributor

yitam commented Dec 9, 2020

Hi @docteuri , I forgot to mention that the function get_processor_arch() is called mainly because the driver is going to return an error message about ODBC driver not installed.

@yitam yitam added the macOS label Dec 9, 2020
@docteuri
Copy link
Author

docteuri commented Dec 9, 2020

I think the driver is ready

http://www.odbcmanager.net/about.php

Thanks a lot

Edouard

@yitam
Copy link
Contributor

yitam commented Dec 9, 2020

@yitam
Copy link
Contributor

yitam commented Aug 27, 2021

FYI, ODBC driver now officially supports the Apple M1 ARM64 hardware

@yitam
Copy link
Contributor

yitam commented Sep 8, 2021

Closing this issue as per 5.10.0-beta1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants