From: "Luke A. Guest" <laguest@archeia.com>
To: yocto@yoctoproject.org
Subject: Attempting to get GNAT (Ada) built with Denzil, failing
Date: Mon, 05 Nov 2012 21:39:22 +0000 [thread overview]
Message-ID: <1352151562.9316.6.camel@rogue> (raw)
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
Hi,
I'm having trouble getting gnat to build, I modified the gcc recipes
(see diff) and it is building Ada source for both native (x86_64
GNU/Linux) and ARM (as can be seen in
tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gcc-cross-4.6.3
+svnr184847-r29/gcc-4_6-branch/build.x86_64-linux.arm-poky-linux-gnueabi/gcc/ada/rts/).
But then it fails, I believe this to be some sort of strange environment
variable issue, but I don't know enough about Yocto to pinpoint it. Can
anyone help?
I've also included the config and compile logs.
Thanks,
Luke.
[-- Attachment #2: ada.diff --]
[-- Type: text/x-patch, Size: 3193 bytes --]
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 0f91ed3..c674d5e 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -3,6 +3,9 @@
#
# These can be overridden by the version specific .inc file.
+# Ada
+ADA = ",ada"
+
# Java (gcj doesn't work on all architectures)
JAVA ?= ",java"
JAVA_arm ?= ""
@@ -11,7 +14,7 @@ JAVA_mipsel ?= ""
JAVA_sh3 ?= ""
# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
FORTRAN ?= ",f77"
-LANGUAGES ?= "c,c++${FORTRAN}${JAVA}"
+LANGUAGES ?= "c,c++${FORTRAN}${JAVA}${ADA}"
# disable --enable-target-optspace for powerpc SPE
# at -Os libgcc.so.1 creates references into
# hidden symbols in libgcc.a which linker complains
@@ -97,6 +100,8 @@ do_configure () {
export CC_FOR_TARGET="${CC}"
export GCC_FOR_TARGET="${CC}"
export CXX_FOR_TARGET="${CXX}"
+# export GNATMAKE="${HOST_PREFIX}gnatmake"
+# export GNATBIND="${HOST_PREFIX}gnatbind"
export AS_FOR_TARGET="${HOST_PREFIX}as"
export LD_FOR_TARGET="${HOST_PREFIX}ld"
export NM_FOR_TARGET="${HOST_PREFIX}nm"
diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc
index a499c88..32c04c2 100644
--- a/meta/recipes-devtools/gcc/gcc-package-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-target.inc
@@ -2,6 +2,7 @@ PACKAGES = "\
${PN} ${PN}-plugins ${PN}-symlinks \
g++ g++-symlinks \
cpp cpp-symlinks \
+ ada ada-symlinks \
g77 g77-symlinks \
gfortran gfortran-symlinks \
gcov gcov-symlinks \
@@ -33,6 +34,9 @@ FILES_${PN}-dev = "\
${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \
${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \
${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \
+ ${gcclibdir}/${TARGET_SYS}/${BINV}/adalib/*.ali \
+ ${gcclibdir}/${TARGET_SYS}/${BINV}/adalib/lib*.a \
+ ${gcclibdir}/${TARGET_SYS}/${BINV}/adainclude/*.ad[sb] \
"
FILES_${PN}-symlinks = "\
${bindir}/cc \
@@ -79,6 +83,37 @@ FILES_g++-symlinks = "\
${bindir}/g++ \
"
+FILES_ada = "\
+ ${bindir}/${TARGET_PREFIX}gnat \
+ ${bindir}/${TARGET_PREFIX}gnatbind \
+ ${bindir}/${TARGET_PREFIX}gnatchop \
+ ${bindir}/${TARGET_PREFIX}gnatclean \
+ ${bindir}/${TARGET_PREFIX}gnatfind \
+ ${bindir}/${TARGET_PREFIX}gnatkr \
+ ${bindir}/${TARGET_PREFIX}gnatlink \
+ ${bindir}/${TARGET_PREFIX}gnatls \
+ ${bindir}/${TARGET_PREFIX}gnatmake \
+ ${bindir}/${TARGET_PREFIX}gnatname \
+ ${bindir}/${TARGET_PREFIX}gnatprep \
+ ${bindir}/${TARGET_PREFIX}gnatxref \
+ ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/gnat1 \
+ ${gcclibdir}/${TARGET_SYS}/${BINV}/adalib/lib*${SOLIBS} \
+"
+
+FILES_ada-symlinks = "\
+ ${bindir}/gnat \
+ ${bindir}/gnatbind \
+ ${bindir}/gnatchop \
+ ${bindir}/gnatclean \
+ ${bindir}/gnatfind \
+ ${bindir}/gnatkr \
+ ${bindir}/gnatlink \
+ ${bindir}/gnatls \
+ ${bindir}/gnatmake \
+ ${bindir}/gnatname \
+ ${bindir}/gnatprep \
+ ${bindir}/gnatxref \
+"
FILES_${PN}-doc = "\
${infodir} \
[-- Attachment #3: log.do_compile.11363.bz2 --]
[-- Type: application/x-bzip, Size: 95227 bytes --]
[-- Attachment #4: log.do_configure.bz2 --]
[-- Type: application/x-bzip, Size: 4236 bytes --]
reply other threads:[~2012-11-05 21:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352151562.9316.6.camel@rogue \
--to=laguest@archeia.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.