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

make it build on arm64 #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

make it build on arm64 #11

wants to merge 1 commit into from

Conversation

sebpop
Copy link

@sebpop sebpop commented Jun 26, 2023

Here are the commands to build on Graviton and Amazon Linux 2:

sudo yum groupinstall "Development Tools"
sudo yum install libcurl-devel openssl-devel libuuid-devel pulseaudio-libs-devel wget https://cmake.org/files/v3.18/cmake-3.18.0.tar.gz tar xzf cmake-3.18.0.tar.gz

cd cmake-3.18.0
./bootstrap
make
sudo make install
cd ..

git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp cd aws-sdk-cpp
mkdir sdk_build
cd sdk_build
cmake .. -DBUILD_ONLY="redshift;redshift-serverless;sts" make -j16
sudo make install
cd ../..

git clone https://github.com/aws/amazon-redshift-odbc-driver cd amazon-redshift-odbc-driver
./build64.sh

Description

Motivation and Context

Testing

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • A short description of the change has been added to the CHANGELOG

License

  • By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@vahid110
Copy link
Contributor

@sebpop Thank you very much for your request. We are in process of changing the build system to Cmake. The change will also be compatible with ARM build. Once the overhaul is ready, it will be available for you as source code as well as release to use.

@sebpop
Copy link
Author

sebpop commented Jun 27, 2023

Why not merging this patch and then you can do your "overhaul"?
There are customers asking for this patch, so please prioritize.

Here are the commands to build on Graviton and Amazon Linux 2:

sudo yum groupinstall "Development Tools"
sudo yum install libcurl-devel openssl-devel libuuid-devel pulseaudio-libs-devel
wget https://cmake.org/files/v3.18/cmake-3.18.0.tar.gz
tar xzf cmake-3.18.0.tar.gz

cd cmake-3.18.0
./bootstrap
make
sudo make install
cd ..

git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp
cd aws-sdk-cpp
mkdir sdk_build
cd sdk_build
cmake .. -DBUILD_SHARED_LIBS=OFF -DBUILD_ONLY="redshift;redshift-serverless;sts"
make -j16
sudo make install
cd ../..

git clone https://github.com/aws/amazon-redshift-odbc-driver
cd amazon-redshift-odbc-driver
./build64.sh
@erlangxk
Copy link

Any progress on this?

@rokclimb15
Copy link

I would like to build this on ARM64 for Debian. This is a blocker, please consider reviewing and merging this.

@rokclimb15
Copy link

This appears to build on ARM64 now, so perhaps the switch to CMake means this issue can be closed? I can't confirm it works yet because of some linker issues.

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

Successfully merging this pull request may close these issues.

4 participants