failed when docker-compose build ubuntu
m-suketa opened this issue · comments
I got the error when docker-compose build ubuntu
on Mac OS 13.2.1 (M1 Max).
$ docker-compose build ubuntu
...
=> ERROR [12/12] RUN rake build 1.0s
------
> [12/12] RUN rake build:
#0 0.422 mkdir -p tmp/aarch64-linux/duckdb_native/3.1.3
#0 0.422 cd tmp/aarch64-linux/duckdb_native/3.1.3
#0 0.422 /usr/local/bin/ruby -I. -r.rake-compiler-siteconf.rb ../../../../ext/duckdb/extconf.rb
#0 0.463 checking for duckdb.h... yes
#0 0.632 checking for duckdb_pending_prepared() in duckdb.h... no
#0 0.767 checking for duckdb_pending_prepared() in -lduckdb... no
#0 1.022 *** ../../../../ext/duckdb/extconf.rb failed ***
#0 1.022 Could not create Makefile due to some reason, probably lack of necessary
#0 1.022 libraries and/or headers. Check the mkmf.log file for more details. You may
#0 1.022 need configuration options.
#0 1.022
#0 1.022 Provided configuration options:
#0 1.022 --with-opt-dir
#0 1.022 --without-opt-dir
#0 1.022 --with-opt-include
#0 1.022 --without-opt-include=${opt-dir}/include
#0 1.022 --with-opt-lib
#0 1.022 --without-opt-lib=${opt-dir}/lib
#0 1.022 --with-make-prog
#0 1.022 --without-make-prog
#0 1.022 --srcdir=../../../../ext/duckdb
#0 1.022 --curdir
#0 1.022 --ruby=/usr/local/bin/$(RUBY_BASE_NAME)
#0 1.022 --with-duckdb-dir
#0 1.022 --without-duckdb-dir
#0 1.022 --with-duckdb-include
#0 1.022 --without-duckdb-include=${duckdb-dir}/include
#0 1.022 --with-duckdb-lib
#0 1.022 --without-duckdb-lib=${duckdb-dir}/lib
#0 1.022 --with-duckdblib
#0 1.022 --without-duckdblib
#0 1.022 ../../../../ext/duckdb/extconf.rb:18:in `check_duckdb_library': duckdb >= 0.5.0 is not found. Install duckdb >= 0.5.0 library and header file. (RuntimeError)
#0 1.022 from ../../../../ext/duckdb/extconf.rb:23:in `<main>'
#0 1.022
#0 1.022 ********************************************************************************
#0 1.022 duckdb >= 0.5.0 is not found. Install duckdb >= 0.5.0 library and header file.
#0 1.022 ********************************************************************************
#0 1.022
#0 1.025 rake aborted!
#0 1.025 Command failed with status (1): [/usr/local/bin/ruby -I. -r.rake-compiler-s...]
#0 1.025 /usr/local/bundle/gems/rake-compiler-1.2.1/lib/rake/extensiontask.rb:220:in `block (2 levels) in define_compile_tasks'
#0 1.025 /usr/local/bundle/gems/rake-compiler-1.2.1/lib/rake/extensiontask.rb:217:in `block in define_compile_tasks'
#0 1.025 Tasks: TOP => build => compile => compile:aarch64-linux => compile:duckdb_native:aarch64-linux => copy:duckdb_native:aarch64-linux:3.1.3 => tmp/aarch64-linux/duckdb_native/3.1.3/duckdb_native.so => tmp/aarch64-linux/duckdb_native/3.1.3/Makefile
#0 1.025 (See full trace by running task with --trace)
------
failed to solve: executor failed running [/bin/sh -c rake build]: exit code: 1