希望获得一些帮助,以从源代码开始为ARM交叉编译PostgreSQL。我正在尝试在X86_64
Ubuntu 18.04.4
上构建库。我正在使用传递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
当我在postgresql版本9.6.2
中使用上述参数运行configure时,它将成功执行,并且我能够正确地构建库。但是,我想使用最新版本,当前为V 12.2
。
当我使用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
任何想法如何解决此问题?这是他们autoconf中的错误,还是我这边做错了什么?
根据configure.in
,您应该能够覆盖该检查:
./configure USE_DEV_URANDOM=1 ...
然后将构建PostgreSQL以使用/dev/urandom
,而不检查构建主机上文件是否存在。