[yocto] gcc enable-languages

Dat Tran dtran11 at gmail.com
Fri Jun 14 11:03:58 PDT 2013


Khem Raj <raj.khem at ...> writes:

> 
> 
> On Jun 14, 2013, at 10:53 AM, Dat Tran <dtran11 at ...> wrote:
> 
> > Paul, thanks for your suggestions. I think you are right in that there 
are 
> > more settings we need to set. Here is what I had done with no success:
> > 
> > 
> > diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-
> > devtools/gcc/gcc-4.7.inc
> > index 1a3e09b..3c48232 100644
> > --- a/meta/recipes-devtools/gcc/gcc-4.7.inc
> > +++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
> >  <at>  <at>  -82,7 +82,7  <at>  <at>  S = "${TMPDIR}/work-shared/gcc-
${PV}-${PR}/gcc-${PV}"
> > B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
> > 
> > # Language Overrides
> > -FORTRAN = ""
> > +FORTRAN = ",fortran"
> > JAVA = ""
> > 
> > EXTRA_OECONF_BASE = " --enable-lto \
> > diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc 
> > b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> > index 4eb59fd..48dd606 100644
> > --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
> > +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> >  <at>  <at>  -10,7 +10,7  <at>  <at>  JAVA_armeb ?= ""
> > JAVA_mipsel ?= ""
> > JAVA_sh3 ?= ""
> > # gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
> > -FORTRAN ?= ",f77"
> > +FORTRAN = ",fortran"
> > LANGUAGES ?= "c,c++${FORTRAN}${JAVA}"
> > # disable --enable-target-optspace for powerpc SPE
> > # at -Os libgcc.so.1 creates references into
> > diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc 
> > b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
> > index d40383c..4c641f2 100644
> > --- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
> > +++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
> >  <at>  <at>  -7,7 +7,7  <at>  <at>  EXTRA_OECONF_PATHS = " \
> >     --with-sysroot=${STAGING_DIR_TARGET} \
> >     --with-build-sysroot=${STAGING_DIR_TARGET}"
> > 
> > -RUNTIMETARGET = "libssp libstdc++-v3"
> > +RUNTIMETARGET = "libgfortran libssp libstdc++-v3"
> > RUNTIMETARGET_append_powerpc = " libgomp"
> > RUNTIMETARGET_append_powerpc64 = " libgomp"
> > #  ?
> 
> ideally this is all you should need. But then its not frequent tested 
combination
> What errors do you run into ?
> 


This is the error I get:


configure: WARNING: unrecognized options: --disable-silent-rules, --with-
sysroot 
DEBUG: Shell function do_configure finished 
DEBUG: Executing python function do_qa_configure 
NOTE: Checking autotools environment for common misconfiguration 
ERROR: This autoconf log indicates errors, it looked at host include and/or 
library paths while determining system capabilities. 
Rerun configure task after fixing this. The path was 
'/home/appusr/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-
gnueabi/libtool-cross-2.4.2-r5.1/libtool-2.4.2' 
DEBUG: Python function do_qa_configure finished 
ERROR: Function failed: do_qa_configure 


Thanks





More information about the yocto mailing list