arm64 - how do I build duckdb R package for aarch64 ubuntu without running out of disk space - Stack Overflow

I am trying to build duckdb 1.3.1 from source on an AWS ARM ubuntu instance.The compile goes well, if

I am trying to build duckdb 1.3.1 from source on an AWS ARM ubuntu instance. The compile goes well, if slowly, until the end when the binary is ready to be put in the site-library. Then it fails with "No space left on device." The The R package install tips for this distro discuss out-of-memory issues, but I don't have that problem. The last part of the log is below:

installing via 'install.libs.R' to /usr/local/lib/R/site-library/00LOCK-duckdb/0                                                               ** R
Warning in dir.create(outCodeDir) :
  cannot create dir '/usr/local/lib/R/site-library/00LOCK-duckdb/00new/duckdb/R'
reason 'No space left on device'
Error in .install_package_code_files(".", instdir) :
  cannot open directory '/usr/local/lib/R/site-library/00LOCK-duckdb/00new/duckd                                                               b/R'
ERROR: unable to collate and parse R files for package ‘duckdb’
* removing ‘/usr/local/lib/R/site-library/duckdb’

The downloaded source packages are in
        ‘/tmp/RtmpRrLkVk/downloaded_packages’
Warning message:
In install.packages("duckdb") :
  installation of package ‘duckdb’ had non-zero exit status
>

I have 8Gb of storage. This is the df before and after the failed install:

Filesystem      1K-blocks    Used Available Use% Mounted on
/dev/root         7034376 4563456   2454536  66% /
tmpfs             1961888       0   1961888   0% /dev/shm
tmpfs              784756     988    783768   1% /run
tmpfs                5120       0      5120   0% /run/lock
efivarfs              128       4       125   3% /sys/firmware/efi/efivars
/dev/nvme0n1p16    911580  107364    740576  13% /boot
/dev/nvme0n1p15     99791    6475     93317   7% /boot/efi
tmpfs              392376      16    392360   1% /run/user/1000

What seems crazy is that, during the build, the temporary files in /tmp swell to over 1Gb! If the disk full error is valid, /tmp must get to over 2Gb since I started with 2.4Gb of free space. The CLI binary only works out to 66Mb so I assume that's additional disk space I'd need when all is complete.

FWIW, Here is what I put in ~/.R/Makevars, though it's presence doesn't seem to make a difference.

MAKEFLAGS = -j$(nproc)
CXXFLAGS += -march=armv8-a
LDFLAGS += -march=armv8-a

Any ideas on how to make this succeed? Thanks.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745347069a4623600.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信