* Attempting to get GNAT (Ada) built with Denzil, failing
@ 2012-11-05 21:39 Luke A. Guest
0 siblings, 0 replies; only message in thread
From: Luke A. Guest @ 2012-11-05 21:39 UTC (permalink / raw)
To: yocto
[-- 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 --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-05 21:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-05 21:39 Attempting to get GNAT (Ada) built with Denzil, failing Luke A. Guest
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.