-
Notifications
You must be signed in to change notification settings - Fork 25
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
Can't build on an M1/ARM Mac #80
Comments
Thanks for the report! I'm running on an M1 mac as well and not running into this problem - are you perhaps on an older MacOS/compiler version or using a custom/different compiler? $> clang++ --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Alternatively do you perhaps have any compilation flags defined in your |
Upgraded to Sonoma to match your
My It seems like the problem is building the |
Hm, odd. I still suspect there's something different about the configuration/environment setup that causes the change in behavior. As a work-around you could try uncommenting this line which is likely where the problem originates from. |
I work for the same organization as @cpaika, so I have a similar M1 Mac setup. I can build duckdb ( [ 91%] Linking CXX shared library parquet.duckdb_extension
ld: warning: ignoring duplicate libraries: '../../src/libduckdb_static.a', '../tpch/libtpch_extension.a', 'libparquet_extension.a'
ld: Undefined symbols:
_parquet_init, referenced from:
<initial-undefines>
_parquet_version, referenced from:
<initial-undefines>
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [extension/parquet/CMakeFiles/parquet_loadable_extension.dir/build.make:721: extension/parquet/parquet.duckdb_extension] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:7770: extension/parquet/CMakeFiles/parquet_loadable_extension.dir/all] Error 2
gmake[1]: *** [Makefile:136: all] Error 2
gmake[1]: Leaving directory '/Users/cbreck/github/sqlite_scanner/build/release'
make: *** [release] Error 2 The steps I used:
My % clang++ --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin @cpaika, the difference in |
I think this might come from the fact that somehow the linker links against a Can you try check something what the command |
If I comment out this line, it builds. That line was originally introduced by @jkub here, then modified by @Mytherin here then here. With CMAKE_VERBOSE_MAKEFILE set to
And when it fails:
|
What happens?
I'm attempting to clone this repo to make changes. I cloned the repo, and initialized the duckdb submodule. When I run
make
it fails 82% of the way in building the parquet duckdb extension:The same error occurs when I run
GEN=ninja make
as well.To Reproduce
Clone this repository, initialize the submodule, and run
make
OS:
Mac OS X
SQLite Version:
Default
DuckDB Version:
main
DuckDB Client:
N/A
Full Name:
Christopher Paika
Affiliation:
Tesla
Have you tried this on the latest
main
branch?Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: