我正在尝试从git tree构建AWS:
$ git clone --recursive http://forge.open-do.org/anonscm/git/aws/aws.git
我有以下错误:
$ make setup build
gprbind xoscons.bexch
gnatbind xoscons.ali
gcc -c b__xoscons.adb
gcc xoscons.o -o xoscons
Setup OS specific definitions
aws-os_lib-tmplt.c:77:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
Can not generate system tags. The test are disabled
object directory "/Users/adrian/Desktop/aws/tools/../.build/x86_64-apple-darwin13.4.0/release/static/obj/tools/" created
object directory "/users/adrian/desktop/aws/include/zlib/../../.build/x86_64-apple-darwin13.4.0/release/static/obj/zlib" created for project zlib
library directory "/users/adrian/desktop/aws/include/zlib/../../.build/x86_64-apple-darwin13.4.0/release/static/lib/zlib" created for project zlib
object directory "/users/adrian/desktop/aws/include/../.build/x86_64-apple-darwin13.4.0/release/static/obj/include" created for project include
library directory "/users/adrian/desktop/aws/include/../.build/x86_64-apple-darwin13.4.0/release/static/lib/include" created for project include
object directory "/users/adrian/desktop/aws/ssl/../.build/x86_64-apple-darwin13.4.0/release/static/obj/ssl" created for project ssl
library directory "/users/adrian/desktop/aws/ssl/../.build/x86_64-apple-darwin13.4.0/release/static/lib/ssl" created for project ssl
object directory "/users/adrian/desktop/aws/src/../.build/x86_64-apple-darwin13.4.0/release/static/obj/src" created for project src
library directory "/users/adrian/desktop/aws/src/../.build/x86_64-apple-darwin13.4.0/release/static/lib/src" created for project src
library directory "/Users/adrian/Desktop/aws/.build/x86_64-apple-darwin13.4.0/release/static/lib/aws" created for project aws
exec directory "/Users/adrian/Desktop/aws/tools/../.build/x86_64-apple-darwin13.4.0/release/static/tools" created for project tools
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common awsres.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common aws_password.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common templates2ada.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common webxref.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common templatespp.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common wsdl2aws.adb
gcc -c -gnat2012 -O2 -gnatws -gnatn -fno-common zlib.adb
gcc -c -gnat2012 -O2 -gnatws -gnatn -fno-common zlib-thin.adb
gcc -c -gnat2012 -O2 -gnatws -gnatn -fno-common zlib-streams.adb
gcc -c -gnat2012 -O2 -gnatws -gnatn -fno-common memory_streams.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common templates_parser-xml.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common soap.ads
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common soap-xml.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common soap-wsdl.adb
gcc -c -gnat2012 -gnatwcfijkmRuv -gnaty3abBcdefhiIklmnoOprstx -O2 -gnatn -fno-common soap-wsdl-types.adb
aws-os_lib.ads:30:01: cannot compile configuration pragmas with gcc
aws-os_lib.ads:30:01: use gnatchop -c to process configuration pragmas
compilation abandoned
soap-xml.adb:32:14: warning: license of withed unit "DOM.Core.Nodes" may be inconsistent
soap-xml.ads:34:09: warning: license of withed unit "DOM.Core" may be inconsistent
soap-wsdl.adb:35:09: warning: license of withed unit "DOM.Readers" may be inconsistent
soap-wsdl.adb:36:19: warning: license of withed unit "Input_Sources.File" may be inconsistent
soap-wsdl.adb:37:09: warning: license of withed unit "Sax.Readers" may be inconsistent
soap-wsdl.ads:32:09: warning: license of withed unit "DOM.Core" may be inconsistent
templates_parser-xml.adb:33:14: warning: license of withed unit "DOM.Core.Nodes" may be inconsistent
templates_parser-xml.adb:34:09: warning: license of withed unit "DOM.Readers" may be inconsistent
templates_parser-xml.adb:35:19: warning: license of withed unit "Input_Sources.File" may be inconsistent
templates_parser-xml.adb:36:19: warning: license of withed unit "Input_Sources.Strings" may be inconsistent
templates_parser-xml.adb:37:09: warning: license of withed unit "Sax.Readers" may be inconsistent
templates_parser-xml.adb:38:17: warning: license of withed unit "Unicode.CES.Basic_8bit" may be inconsistent
templates_parser-xml.adb:39:17: warning: license of withed unit "Unicode.CES.Utf8" may be inconsistent
compilation of awsres.adb failed
gprbuild: *** compilation phase failed
make: *** [build-native] Error 4
从Libre下载的软件包(aws-gpl-2015)在aws-os_lib.ads停止构建。
有任何指示可以实现这一目标吗?我已经在OS X Maverick上阅读了Libre成功构建的AWS软件包。
我应该使用git树还是来自Libre的包?
我在El Capitan 10.11.2上运行GNAT GPL 2015(20150428-49)。
感谢。
答案 0 :(得分:1)
aws-os_lib.ads
是从C文件生成的文件,其中您的日志显示错误...,所以可能在您的情况下没有正确生成?
您是否安装了xcode命令行工具?
xcode-select --install