Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用GNAT 2019 Linux 64位公共版本在Linux上配置PolyORB失败_Linux_Configuration_Ada_Gnat - Fatal编程技术网

使用GNAT 2019 Linux 64位公共版本在Linux上配置PolyORB失败

使用GNAT 2019 Linux 64位公共版本在Linux上配置PolyORB失败,linux,configuration,ada,gnat,Linux,Configuration,Ada,Gnat,configure脚本检查编译器是否可以生成c程序,但失败的原因是c编译器无法生成可执行文件。(正在检查C编译器是否工作…否) 执行命令gcc x.c会给出“gcc:尝试执行'cc1'时出错”:execvp:没有这样的文件或目录” uname-a对于我的系统来说是:x86_64 x86_64 x86_64 GNU/Linux 我的猜测是GNAT的这个版本没有为c程序正确配置。下一步要尝试的是GNAT的旧版本该文件应该提供一些附加信息(特别是最后一行,以防安装了多个版本的GNAT)。使用Debia

configure脚本检查编译器是否可以生成c程序,但失败的原因是c编译器无法生成可执行文件。(正在检查C编译器是否工作…否)

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

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

我的猜测是GNAT的这个版本没有为c程序正确配置。下一步要尝试的是GNAT的旧版本

该文件应该提供一些附加信息(特别是最后一行,以防安装了多个版本的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
[...]