简体   繁体   English

无法交叉编译 ARM 的 postgresql 12.2

[英]Unable to cross compile postgresql 12.2 for ARM

Hoping to get some help cross compiling postgresql from source for ARM.希望从 ARM 的源代码交叉编译 postgresql 获得一些帮助。 I am trying to build the library on X86_64 Ubuntu 18.04.4 .我正在尝试在X86_64 Ubuntu 18.04.4上构建库。 I am using passing autoconf the following arguments:我正在使用以下 arguments 传递 autoconf:

CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ AR=arm-linux-gnueabihf-ar RANLIB=arm-linux-gnueabihf-ranlib ../configure --host=arm-linux-gnueabihf --without-readline --without-zlib

When I run configure with the above arguments with postgresql release 9.6.2 , it succeeds and I am able to build the library properly.当我使用上述 arguments 和 postgresql release 9.6.2运行配置时,它成功并且我能够正确构建库。 However, I would like to use the latest release, which is currently V 12.2 .但是,我想使用最新版本,目前是 V 12.2

When I run the above command with V 12.2 , I get the following error message:当我使用 V 12.2运行上述命令时,我收到以下错误消息:

// a bunch of successfull output from autoconf before error message...
checking for /dev/urandom... configure: error: cannot check for file existence when cross compiling

Any ideas how to fix this?任何想法如何解决这一问题? Is this a bug in their autoconf, or am I doing something wrong on my side?这是他们的自动配置中的错误,还是我做错了什么?

According to configure.in , you should be able to override the check:根据configure.in ,您应该能够覆盖检查:

./configure USE_DEV_URANDOM=1 ...

Then PostgreSQL will be built to use /dev/urandom without checking for the file's existence on the build host.然后 PostgreSQL 将被构建为使用/dev/urandom而无需检查文件在构建主机上是否存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM