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

SNOW-919208: Can't build in docker container running on an M1 mac #338

Closed
SeanJA opened this issue Sep 20, 2023 · 6 comments
Closed

SNOW-919208: Can't build in docker container running on an M1 mac #338

SeanJA opened this issue Sep 20, 2023 · 6 comments
Assignees
Labels
duplicate enhancement The issue is a request for improvement or a new feature

Comments

@SeanJA
Copy link

SeanJA commented Sep 20, 2023

  1. What version of PDO/PHP driver are you using?

none yet, it won't build

  1. What operating system and processor architecture are you using?

Linux docker container running on an M1 mac

  1. What version of C/C++ compiler are you using?
$ gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110

$ cmake --version
cmake version 3.18.4

$ clang --version
Debian clang version 11.0.1-2
Target: aarch64-unknown-linux-gnu
Thread model: posix

$ phpize --version
Configuring for:
PHP Api Version:         20220829
Zend Module Api No:      20220829
Zend Extension Api No:   420220829
  1. What did you do?

followed the install instructions, got an error saying the file was in the wrong format:

49.12 /usr/bin/ld: libsnowflakeclient/lib/linux/libsnowflakeclient.a: error adding symbols: file in wrong format
49.12 collect2: error: ld returned 1 exit status
49.12 make: *** [Makefile:232: pdo_snowflake.la] Error 1

  1. What did you expect to see?

    I guess it would install successfully?

@SeanJA SeanJA added the bug label Sep 20, 2023
@github-actions github-actions bot changed the title Can't build in docker container running on an M1 mac SNOW-919208: Can't build in docker container running on an M1 mac Sep 20, 2023
@sfc-gh-igarish
Copy link
Collaborator

sfc-gh-igarish commented Oct 13, 2023

This is because PHP doesn't support ARM CPU at that time. Could you please try again?

@EttoreCirillo
Copy link

i'm having the same problem with the same configuration on my MAC M1 :

is this issue solved ? if so what should i do ?

@brockrigby
Copy link

I am also having this issue, hopefully it gets resolved soon 🙌

@SeanJA
Copy link
Author

SeanJA commented Feb 8, 2024

This is because PHP doesn't support ARM CPU at that time. Could you please try again?

I don't follow? Are you saying in September of 2023 php did not work on ARM CPUs?

looks like the driver is still not going to work based on the readme:

image

@alexanderwburch
Copy link

Also having this problem... had a production workload building the PDO driver on php:8.1-cli running for years. Since i got my m1 laptop I can no longer build it with the same dockerfile

@sfc-gh-dszmolka
Copy link
Contributor

hi all - marking this as closed to follow the effort for ARM support on #351
in the meantime, the Snowflake ODBC driver is already ARM-enabled for a while, perhaps that one could be considered as a workaround.

@sfc-gh-dszmolka sfc-gh-dszmolka self-assigned this Feb 23, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka added duplicate enhancement The issue is a request for improvement or a new feature and removed bug labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate enhancement The issue is a request for improvement or a new feature
Projects
None yet
Development

No branches or pull requests

6 participants