configure脚本检查编译器是否可以生成c程序,但无法说c的编译器无法生成可执行文件。 (检查C编译器是否工作...否)

执行命令gcc x.c会给出“ gcc:尝试执行cc1错误:execvp:没有这样的文件或目录”

uname -a对于我的系统说:x86_64 x86_64 x86_64 GNU / Linux

我的猜测是此版本的GNAT没有为c程序正确配置。下一件事是GNAT的旧版本

最佳答案

INSTALL文件应提供一些其他信息(特别是最后一行,如果您安装了多个版本的GNAT)。使用Debian 10(Buster)上安装的GNAT CE 2019:

$ uname -a
Linux debian 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux

$ which gcc
/opt/GNAT/2019/bin/gcc

$ sudo apt-get install autoconf automake libtool
[...]

$ git clone https://github.com/AdaCore/PolyORB.git
[...]

$ cd PolyORB
$ support/reconfig
Running aclocal (GNU automake) 1.16.1
Running autoheader (GNU Autoconf) 2.69
Running autoconf (GNU Autoconf) 2.69
Generating IDL tree accessors
splitting nodes.ada into:
   idl_fe-tree.ads
   idl_fe-tree.adb
Doing the necessary date modifications

$ ./configure
[...]
checking whether the C compiler works... yes
[...]

$ make
[...]

10-07 16:44