From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 In-Reply-To: <525135BA.7000408@pengutronix.de> References: <52505A18.8010003@pengutronix.de> <525135BA.7000408@pengutronix.de> Date: Wed, 9 Oct 2013 09:22:43 +0200 Message-ID: From: Javier Fileiv Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0583106315==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Marc Kleine-Budde Cc: ptxdist@pengutronix.de --===============0583106315== Content-Type: multipart/alternative; boundary=047d7b4142d650143c04e849c017 --047d7b4142d650143c04e849c017 Content-Type: text/plain; charset=ISO-8859-1 Sorry Marc, I thought we were not replying to each other on the forum. Thanks, I will try to do what you just told me. Bye! 2013/10/6 Marc Kleine-Budde > Hello Javier, > > Please don't top-post and please keep the mailinglist on CC. > > On 10/06/2013 10:56 AM, Javier Fileiv wrote: > > What does it mean?? Isnt there any work around? > > That means they don't care about cross compiling, so it doesn't work. > > Workaround - Maybe. It might work if you apply the following patch > and add > > _MAKE_OPT := $(CROSS_ENV_CC) > > to rules/.make > > Marc > > diff --git a/config/compilers/gcc_defaults.mak > b/config/compilers/gcc_defaults.mak > index a885266..7240ab3 100644 > --- a/config/compilers/gcc_defaults.mak > +++ b/config/compilers/gcc_defaults.mak > @@ -38,8 +38,8 @@ > ## > ## > > ########################################################################### > > -CC=gcc > -CXX=gcc > +CC=$(CC) > +CXX=$(CC) > ifeq ($(OSTYPE),Darwin) > CXX=g++ > endif > > > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | > > --047d7b4142d650143c04e849c017 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Sorry Marc, I thought we were not replying to each other o= n the forum.

Thanks, I will try to do what you just told= me.

Bye!

2013/10/6 Marc Kleine-Budde <mkl@pengutron= ix.de>
Hello Javier,

Please don't top-post and please keep the mailinglist on CC.

On 10/06/2013 10:56 AM, Javier Fileiv wrote:
> What does it mean?? Isnt there any work around?

That means they don't care about cross compiling, so it doesn'= ;t work.

Workaround - Maybe. It might work if you apply the following patch
and add

=A0 =A0 <YOUR_NEW_PACKGE>_MAKE_OPT :=3D $(CROSS_ENV_CC)

to rules/<your_new_pacakge>.make

Marc

diff --git a/config/compilers/gcc_defaults.mak b/config/compilers/gcc_defau= lts.mak
index a885266..7240ab3 100644
--- a/config/compilers/gcc_defaults.mak
+++ b/config/compilers/gcc_defaults.mak
@@ -38,8 +38,8 @@
=A0 ## =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ##<= br> =A0 #######################################################################= ####

-CC=3Dgcc
-CXX=3Dgcc
+CC=3D$(CC)
+CXX=3D$(CC)
=A0ifeq ($(OSTYPE),Darwin)
=A0CXX=3Dg++
=A0endif


--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Marc Kleine-Budde =A0= =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0| Phone: +49-231-2826-924 =A0 =A0 |
Vertretung West/Dortmund =A0 =A0 =A0 =A0 =A0| Fax: =A0 +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 =A0| http://www.pengutronix.de =A0 |


--047d7b4142d650143c04e849c017-- --===============0583106315== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0583106315==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ie0-x22f.google.com ([2607:f8b0:4001:c03::22f]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VSl7e-00052y-RH for ptxdist@pengutronix.de; Sun, 06 Oct 2013 11:59:36 +0200 Received: by mail-ie0-f175.google.com with SMTP id e14so12598389iej.6 for ; Sun, 06 Oct 2013 02:59:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <52505A18.8010003@pengutronix.de> Date: Sun, 6 Oct 2013 11:59:28 +0200 Message-ID: From: Javier Fileiv Subject: [ptxdist] Fwd: Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0103823409==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0103823409== Content-Type: multipart/alternative; boundary=047d7b4142d65f94f504e80f9732 --047d7b4142d65f94f504e80f9732 Content-Type: text/plain; charset=ISO-8859-1 ---------- Forwarded message ---------- From: Javier Fileiv Date: 2013/10/6 Subject: Re: [ptxdist] Problem adding new package. To: Marc Kleine-Budde when ptxdist runs ./configure this is the output checking build system type... x86_64-host-linux-gnu checking host system type... arm-v4t-linux-gnueabi checking target system type... arm-v4t-linux-gnueabi checking for arm-v4t-linux-gnueabi-gcc... arm-v4t-linux-gnueabi-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-v4t-linux-gnueabi-gcc accepts -g... yes checking for arm-v4t-linux-gnueabi-gcc option to accept ISO C89... none needed checking for arm-v4t-linux-gnueabi-ranlib... arm-v4t-linux-gnueabi-ranlib checking for arm-v4t-linux-gnueabi-ar... arm-v4t-linux-gnueabi-ar checking how to run the C preprocessor... arm-v4t-linux-gnueabi-cpp checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for tputs in -lncurses... yes configure: creating ./config.status config.status: creating config/config finished target speech_tools.prepare 2013/10/6 Javier Fileiv > What does it mean?? Isnt there any work around? > > > 2013/10/5 Marc Kleine-Budde > >> On 10/05/2013 08:14 PM, Javier Fileiv wrote: >> > Im trying to build Edinburgh Speech Tools package for my mini2440 using >> > ptxdist. >> > >> > The steps to install it on the host pc are ./configure and make, just >> that. >> >> It looks like they use autotools, but they have their own build system >> in the background. Which seems to be broken for normal autoools style >> cross compiling. >> >> Marc >> >> -- >> Pengutronix e.K. | Marc Kleine-Budde | >> Industrial Linux Solutions | Phone: +49-231-2826-924 | >> Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | >> Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | >> >> > --047d7b4142d65f94f504e80f9732 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


---------- Forwarded me= ssage ----------
From: Javier Fileiv <= span dir=3D"ltr"><javier.file= iv@gmail.com>
Date: 2013/10/6
Subject: Re: [ptxdist] Problem adding new package.
To= : Marc Kleine-Budde <mkl@pengutron= ix.de>


when ptxdist runs ./configure thi= s is the output

checking build system type... x86_64-host-linux-gnu
checking host system type... arm-v4t-linux-gnueabi
checkin= g target system type... arm-v4t-linux-gnueabi
checking for arm-v4t-linux-gnueabi-gcc... arm-v4t-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we= are cross compiling... yes
checking for suffix of executables...=A0
checking for suffix= of object files... o
checking whether we are using the GNU C com= piler... yes
checking whether arm-v4t-linux-gnueabi-gcc accepts -= g... yes
checking for arm-v4t-linux-gnueabi-gcc option to accept ISO C89... non= e needed
checking for arm-v4t-linux-gnueabi-ranlib... arm-v4t-lin= ux-gnueabi-ranlib
checking for arm-v4t-linux-gnueabi-ar... arm-v4= t-linux-gnueabi-ar
checking how to run the C preprocessor... arm-v4t-linux-gnueabi-cpp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI= C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... y= es
checking for stdlib.h... yes
checking for string.h..= . yes
checking for memory.h... yes
checking for strings= .h... yes
checking for inttypes.h... yes
checking for stdint.h... yes<= /div>
checking for unistd.h... yes
checking whether byte orde= ring is bigendian... no
checking for tputs in -lncurses... yes
configure: creating ./config.status
config.status: creating = config/config
finished target speech_tools.prepare



2013/10/6 Javier Fileiv <javier.fileiv@gmail.com>
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
What does it mean?? Isnt there any work around?
=


2013/10/= 5 Marc Kleine-Budde <mkl@pengutronix.de>
On 10/05/2013 08:14 PM, Javier Fileiv w= rote:
> Im trying to build Edinburgh Speech Tools package for my mini2440 usin= g
> ptxdist.
>
> The steps to install it on the host pc are ./configure and make, just = that.

It looks like they use autotools, but they have their own build syste= m
in the background. Which seems to be broken for normal autoools style
cross compiling.

Marc

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Marc Kleine-Budde =A0= =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0| Phone: +49-231-2826-924 = =A0 =A0 |
Vertretung West/Dortmund =A0 =A0 =A0 =A0 =A0| Fax: =A0 +49-5121-2= 06917-5555 |
Amtsgericht Hildesheim, HRA 2686 =A0| http://www.pengutronix.de =A0 |




--047d7b4142d65f94f504e80f9732-- --===============0103823409== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0103823409==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 In-Reply-To: <5255ACD3.9030104@pengutronix.de> References: <52505A18.8010003@pengutronix.de> <525135BA.7000408@pengutronix.de> <525539D5.3060400@pengutronix.de> <5255ACD3.9030104@pengutronix.de> Date: Thu, 10 Oct 2013 21:53:23 +0200 Message-ID: From: Javier Fileiv Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1332429592==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Marc Kleine-Budde Cc: ptxdist@pengutronix.de --===============1332429592== Content-Type: multipart/alternative; boundary=bcaec5171bf1bb385b04e8685ac3 --bcaec5171bf1bb385b04e8685ac3 Content-Type: text/plain; charset=ISO-8859-1 Hello Javier, please keep the mailinglist on Cc. On 10/09/2013 08:50 PM, Javier Fileiv wrote: > Now, I set everything as you said but is not linking... I used as the > build package for the ptxdist newpackage as "src-make-prog"...is that ok? As this package is sort of autotoolized better use: ptxdist newpackage target However I've done that for you, apply this patch to your BSP. At least speech_tools produce some static libs. If you want anything else, it's up to you. > p.s.> I didnt do top-post now, right? ;) Nope, still top-posting. cheers, MArc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --bcaec5171bf1bb385b04e8685ac3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


Hello Javier,

please keep the mailinglist on Cc.

On 10/09/2013 08:50 PM, Javier Fileiv wrote:
> Now, I set everything as you said but is not linking... I used as the<= br> > build package for the ptxdist newpackage as "src-make-prog".= ..is that ok?

As this package is sort of autotoolized better use:

=A0 =A0 ptxdist newpackage target

However I've done that for you, apply this patch to your BSP. At least<= br> speech_tools produce some static libs. If you want anything else, it's<= br> up to you.

> p.s.> I didnt do top-post now, right? ;)

Nope, still top-posting.

cheers,
MArc
--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Marc Kleine-Budde =A0= =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0| Phone: +49-231-2826-924 =A0 =A0 |
Vertretung West/Dortmund =A0 =A0 =A0 =A0 =A0| Fax: =A0 +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 =A0| http://www.pengutronix.de =A0 |
--bcaec5171bf1bb385b04e8685ac3-- --===============1332429592== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1332429592==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <5255ACD3.9030104@pengutronix.de> Date: Wed, 09 Oct 2013 21:21:55 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <52505A18.8010003@pengutronix.de> <525135BA.7000408@pengutronix.de> <525539D5.3060400@pengutronix.de> In-Reply-To: Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0019616336==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Javier Fileiv This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0019616336== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W2uJDO6gnJ8acCVxRf5DhJ0h8HOvhVXcf" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --W2uJDO6gnJ8acCVxRf5DhJ0h8HOvhVXcf Content-Type: multipart/mixed; boundary="------------000900040807000801060901" This is a multi-part message in MIME format. --------------000900040807000801060901 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Javier, please keep the mailinglist on Cc. On 10/09/2013 08:50 PM, Javier Fileiv wrote: > Now, I set everything as you said but is not linking... I used as the > build package for the ptxdist newpackage as "src-make-prog"...is that o= k? As this package is sort of autotoolized better use: ptxdist newpackage target However I've done that for you, apply this patch to your BSP. At least speech_tools produce some static libs. If you want anything else, it's up to you. > p.s.> I didnt do top-post now, right? ;) Nope, still top-posting. cheers, MArc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --------------000900040807000801060901 Content-Type: text/x-diff; name="0001-speech_tools-add-new-package.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-speech_tools-add-new-package.patch" =46rom 7efba85f615befc8afe53859070c9b8ff59df5d0 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Wed, 9 Oct 2013 21:19:16 +0200 Subject: [PATCH] speech_tools: add new package Signed-off-by: Marc Kleine-Budde --- ...s-HACK-build-system-to-make-CC-and-CXX-ov.patch | 24 ++++ ...02-fix-compilation-with-modern-toolchains.patch | 133 +++++++++++++++= ++++++ patches/speech_tools-2.1/series | 5 + rules/speech_tools.in | 7 ++ rules/speech_tools.make | 58 +++++++++ 5 files changed, 227 insertions(+) create mode 100644 patches/speech_tools-2.1/0001-gcc_defaults-HACK-build= -system-to-make-CC-and-CXX-ov.patch create mode 100644 patches/speech_tools-2.1/0002-fix-compilation-with-mo= dern-toolchains.patch create mode 100644 patches/speech_tools-2.1/series create mode 100644 rules/speech_tools.in create mode 100644 rules/speech_tools.make diff --git a/patches/speech_tools-2.1/0001-gcc_defaults-HACK-build-system= -to-make-CC-and-CXX-ov.patch b/patches/speech_tools-2.1/0001-gcc_defaults= -HACK-build-system-to-make-CC-and-CXX-ov.patch new file mode 100644 index 0000000..4796247 --- /dev/null +++ b/patches/speech_tools-2.1/0001-gcc_defaults-HACK-build-system-to-mak= e-CC-and-CXX-ov.patch @@ -0,0 +1,24 @@ +From: Marc Kleine-Budde +Date: Wed, 9 Oct 2013 09:30:38 +0200 +Subject: [PATCH] gcc_defaults: HACK build system to make CC and CXX + overwriteable + +--- + config/compilers/gcc_defaults.mak | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/config/compilers/gcc_defaults.mak b/config/compilers/gcc_de= faults.mak +index a885266..9a5291e 100644 +--- a/config/compilers/gcc_defaults.mak ++++ b/config/compilers/gcc_defaults.mak +@@ -38,8 +38,8 @@ + ## = ## + ######################################################################= ##### +=20 +-CC=3Dgcc +-CXX=3Dgcc ++CC=3D$(CC) ++CXX=3D$(CXX) + ifeq ($(OSTYPE),Darwin) + CXX=3Dg++ + endif diff --git a/patches/speech_tools-2.1/0002-fix-compilation-with-modern-to= olchains.patch b/patches/speech_tools-2.1/0002-fix-compilation-with-moder= n-toolchains.patch new file mode 100644 index 0000000..9a9b106 --- /dev/null +++ b/patches/speech_tools-2.1/0002-fix-compilation-with-modern-toolchain= s.patch @@ -0,0 +1,133 @@ +From: Peter Drysdale +Date: Wed, 9 Oct 2013 21:16:55 +0200 +Subject: [PATCH] fix compilation with modern toolchains + +This patch allows compiling of festival on gcc 4.7 and clang 3.0. +Both these compilers are stricter of unqualified method calls in +templates than previous versions of gcc. +This patch should not alter the code in a substantive way as it +only qualifies method calls which were assumed in previous compilers. +No copyright subsists in this patch as it is too trivial. +--- + base_class/EST_TSimpleMatrix.cc | 9 +++++---- + base_class/EST_TSimpleVector.cc | 7 ++++--- + include/EST_TIterator.h | 4 ++-- + include/EST_TNamedEnum.h | 2 +- + 4 files changed, 12 insertions(+), 10 deletions(-) + +diff --git a/base_class/EST_TSimpleMatrix.cc b/base_class/EST_TSimpleMat= rix.cc +index ca6bdf7..09b989f 100644 +--- a/base_class/EST_TSimpleMatrix.cc ++++ b/base_class/EST_TSimpleMatrix.cc +@@ -44,6 +44,7 @@ + #include "EST_TVector.h" + #include + #include ++#include + #include "EST_cutils.h" +=20 + template=20 +@@ -51,7 +52,7 @@ void EST_TSimpleMatrix::copy_data(const EST_TSimple= Matrix &a) + { + =20 + if (!a.p_sub_matrix && !this->p_sub_matrix) +- memcpy((void *)&this->a_no_check(0,0), ++ std::memcpy((void *)&this->a_no_check(0,0), + (const void *)&a.a_no_check(0,0), + this->num_rows()*this->num_columns()*sizeof(T) + ); +@@ -98,7 +99,7 @@ void EST_TSimpleMatrix::resize(int new_rows, + { + int copy_r =3D Lof(this->num_rows(), new_rows); +=20 +- just_resize(new_rows, new_cols, &old_vals); ++ this->just_resize(new_rows, new_cols, &old_vals); +=20 + for (q=3D0; q<(copy_r*new_cols*sizeof(T)); q++) /* memcpy */ + ((char *)this->p_memory)[q] =3D ((char *)old_vals)[q]; +@@ -127,9 +128,9 @@ void EST_TSimpleMatrix::resize(int new_rows, + int copy_r =3D Lof(this->num_rows(), new_rows); + int copy_c =3D Lof(this->num_columns(), new_cols); + =20 +- just_resize(new_rows, new_cols, &old_vals); ++ this->just_resize(new_rows, new_cols, &old_vals); +=20 +- set_values(old_vals, ++ this->set_values(old_vals, + old_row_step, old_column_step, + 0, copy_r, + 0, copy_c); +diff --git a/base_class/EST_TSimpleVector.cc b/base_class/EST_TSimpleVec= tor.cc +index c6a0acf..ea9bcc6 100644 +--- a/base_class/EST_TSimpleVector.cc ++++ b/base_class/EST_TSimpleVector.cc +@@ -43,6 +43,7 @@ + #include "EST_TSimpleVector.h" + #include "EST_matrix_support.h" + #include ++#include + #include "EST_cutils.h" +=20 + template void EST_TSimpleVector::copy(const EST_TSimpleVect= or &a) +@@ -50,7 +51,7 @@ template void EST_TSimpleVector::copy(cons= t EST_TSimpleVector &a) + if (this->p_column_step=3D=3D1 && a.p_column_step=3D=3D1) + { + resize(a.n(), FALSE); +- memcpy((void *)(this->p_memory), (const void *)(a.p_memory), this->= n() * sizeof(T)); ++ std::memcpy((void *)(this->p_memory), (const void *)(a.p_memory), t= his->n() * sizeof(T)); + } + else + ((EST_TVector *)this)->copy(a); +@@ -70,7 +71,7 @@ template void EST_TSimpleVector::resize(in= t newn, int set) + int old_offset =3D this->p_offset; + unsigned int q; +=20 +- just_resize(newn, &old_vals); ++ this->just_resize(newn, &old_vals); +=20 + if (set && old_vals) + { +@@ -140,7 +141,7 @@ template EST_TSimpleVector &EST_TSimpleV= ector::operator=3D(const ES + template void EST_TSimpleVector::zero() + { + if (this->p_column_step=3D=3D1) +- memset((void *)(this->p_memory), 0, this->n() * sizeof(T)); ++ std::memset((void *)(this->p_memory), 0, this->n() * sizeof(T)); + else + ((EST_TVector *)this)->fill(*this->def_val); + } +diff --git a/include/EST_TIterator.h b/include/EST_TIterator.h +index e2c6e0b..3ae2201 100644 +--- a/include/EST_TIterator.h ++++ b/include/EST_TIterator.h +@@ -209,7 +209,7 @@ public: +=20 + /// Create an iterator ready to run over the given container. + EST_TStructIterator(const Container &over) +- { begin(over); } ++ { this->begin(over); } +=20 + const Entry *operator ->() const + {return &this->current();} +@@ -289,7 +289,7 @@ public: +=20 + /// Create an iterator ready to run over the given container. + EST_TRwStructIterator(Container &over) +- { begin(over); } ++ { this->begin(over); } +=20 + Entry *operator ->() const + {return &this->current();} +diff --git a/include/EST_TNamedEnum.h b/include/EST_TNamedEnum.h +index 8f54d73..f1e5aa1 100644 +--- a/include/EST_TNamedEnum.h ++++ b/include/EST_TNamedEnum.h +@@ -130,7 +130,7 @@ public: + {this->initialise((const void *)defs); }; + EST_TNamedEnumI(EST_TValuedEnumDefinition defs[], ENUM (*conv)(const char *)) + {this->initialise((const void *)defs, conv); }; +- const char *name(ENUM tok, int n=3D0) const {return value(tok,n); }; ++ const char *name(ENUM tok, int n=3D0) const {return this->value(tok,n= ); }; +=20 + }; +=20 diff --git a/patches/speech_tools-2.1/series b/patches/speech_tools-2.1/s= eries new file mode 100644 index 0000000..ca37de6 --- /dev/null +++ b/patches/speech_tools-2.1/series @@ -0,0 +1,5 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-gcc_defaults-HACK-build-system-to-make-CC-and-CXX-ov.patch +0002-fix-compilation-with-modern-toolchains.patch +# 4bb08202a42b3001d652f86363a19d81 - git-ptx-patches magic diff --git a/rules/speech_tools.in b/rules/speech_tools.in new file mode 100644 index 0000000..25050c0 --- /dev/null +++ b/rules/speech_tools.in @@ -0,0 +1,7 @@ +## SECTION=3Dproject_specific + +config SPEECH_TOOLS + tristate + prompt "speech_tools" + help + FIXME diff --git a/rules/speech_tools.make b/rules/speech_tools.make new file mode 100644 index 0000000..88a723e --- /dev/null +++ b/rules/speech_tools.make @@ -0,0 +1,58 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Marc Kleine-Budde +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditio= ns +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_SPEECH_TOOLS) +=3D speech_tools + +# +# Paths and names +# +SPEECH_TOOLS_VERSION :=3D 2.1 +SPEECH_TOOLS_MD5 :=3D 6920ddc75b042910a3bcfee3ab106938 +SPEECH_TOOLS :=3D speech_tools-$(SPEECH_TOOLS_VERSION) +SPEECH_TOOLS_SUFFIX :=3D tar.gz +SPEECH_TOOLS_URL :=3D http://www.cstr.ed.ac.uk/downloads/festival/$(SPEE= CH_TOOLS_VERSION)/$(SPEECH_TOOLS)-release.$(SPEECH_TOOLS_SUFFIX) +SPEECH_TOOLS_SOURCE :=3D $(SRCDIR)/$(SPEECH_TOOLS).$(SPEECH_TOOLS_SUFFIX= ) +SPEECH_TOOLS_DIR :=3D $(BUILDDIR)/$(SPEECH_TOOLS) +SPEECH_TOOLS_LICENSE :=3D unknown + +# ----------------------------------------------------------------------= ------ +# Prepare +# ----------------------------------------------------------------------= ------ + +# +# autoconf +# +SPEECH_TOOLS_CONF_TOOL :=3D autoconf +SPEECH_TOOLS_MAKE_OPT :=3D $(CROSS_ENV_CC) $(CROSS_ENV_CXX) +SPEECH_TOOLS_MAKE_PAR :=3D NO + +# ----------------------------------------------------------------------= ------ +# Target-Install +# ----------------------------------------------------------------------= ------ + +$(STATEDIR)/speech_tools.targetinstall: + @$(call targetinfo) + + @$(call install_init, speech_tools) + @$(call install_fixup, speech_tools,PRIORITY,optional) + @$(call install_fixup, speech_tools,SECTION,base) + @$(call install_fixup, speech_tools,AUTHOR,"Marc Kleine-Budde ") + @$(call install_fixup, speech_tools,DESCRIPTION,missing) + +# @$(call install_copy, speech_tools, 0, 0, 0755, $(SPEECH_TOOLS_DIR)/fo= obar, /dev/null) + + @$(call install_finish, speech_tools) + + @$(call touch) + +# vim: syntax=3Dmake --=20 1.8.4.rc3 --------------000900040807000801060901-- --W2uJDO6gnJ8acCVxRf5DhJ0h8HOvhVXcf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlJVrNMACgkQjTAFq1RaXHN3YgCeM6aKEDZ7Brf8edfzKBJxWSAa sGAAoIznLE8s68lEYr4unz6K2qmGavjE =ZVuS -----END PGP SIGNATURE----- --W2uJDO6gnJ8acCVxRf5DhJ0h8HOvhVXcf-- --===============0019616336== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0019616336==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <525135BA.7000408@pengutronix.de> Date: Sun, 06 Oct 2013 12:04:42 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <52505A18.8010003@pengutronix.de> In-Reply-To: Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0589090114==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Javier Fileiv This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0589090114== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4C6pTpPsSRVXFfoEGCnB3PrT6l3NlGeiV" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4C6pTpPsSRVXFfoEGCnB3PrT6l3NlGeiV Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Javier, Please don't top-post and please keep the mailinglist on CC. On 10/06/2013 10:56 AM, Javier Fileiv wrote: > What does it mean?? Isnt there any work around? That means they don't care about cross compiling, so it doesn't work. Workaround - Maybe. It might work if you apply the following patch and add _MAKE_OPT :=3D $(CROSS_ENV_CC) to rules/.make Marc diff --git a/config/compilers/gcc_defaults.mak b/config/compilers/gcc_def= aults.mak index a885266..7240ab3 100644 --- a/config/compilers/gcc_defaults.mak +++ b/config/compilers/gcc_defaults.mak @@ -38,8 +38,8 @@ ## = ## #######################################################################= #### -CC=3Dgcc -CXX=3Dgcc +CC=3D$(CC) +CXX=3D$(CC) ifeq ($(OSTYPE),Darwin) CXX=3Dg++ endif --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --4C6pTpPsSRVXFfoEGCnB3PrT6l3NlGeiV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlJRNboACgkQjTAFq1RaXHMz9ACeLEiTNlgXWeVzIe3kiz/haGsQ IEUAoIpL8JSRzcTTQ7jVNkdfOI/ZBECH =lzWF -----END PGP SIGNATURE----- --4C6pTpPsSRVXFfoEGCnB3PrT6l3NlGeiV-- --===============0589090114== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0589090114==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=bjornoya.do.blackshift.org) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VTyrk-0007TE-J5 for ptxdist@pengutronix.de; Wed, 09 Oct 2013 20:52:12 +0200 Received: from [172.17.34.65] (hardanger.do.blackshift.org [172.17.34.65]) (using TLSv1 with cipher ECDHE-ECDSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: frogger) by bjornoya.do.blackshift.org (Postfix) with ESMTPSA id 24BF05E836 for ; Wed, 9 Oct 2013 20:52:12 +0200 (CEST) Resent-To: ptxdist Resent-Message-ID: <5255A5DA.3000209@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <525539D5.3060400@pengutronix.de> References: <52505A18.8010003@pengutronix.de> <525135BA.7000408@pengutronix.de> <525539D5.3060400@pengutronix.de> Date: Wed, 9 Oct 2013 20:50:42 +0200 Message-ID: From: Javier Fileiv Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0022057820==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Marc Kleine-Budde --===============0022057820== Content-Type: multipart/alternative; boundary=047d7bd756e2b67b4d04e8535c0f --047d7bd756e2b67b4d04e8535c0f Content-Type: text/plain; charset=ISO-8859-1 Now, I set everything as you said but is not linking... I used as the build package for the ptxdist newpackage as "src-make-prog"...is that ok? p.s.> I didnt do top-post now, right? ;) 2013/10/9 Marc Kleine-Budde > Hello Javier, > > please don't top-post. > > On 10/09/2013 09:27 AM, Javier Fileiv wrote: > > One question...the patch you sent me>..I don't know which file I have to > > apply it to... I couldnt find the gcc_defaults.mak > > It's in speech_tools-2.1-release.tar.gz > > You have to create a patches dir in your BSP, named after you package. > To figure out use: > > ptxdist print SPEECH_TOOLS > > The output is probably "speech_tools-2.1-release". So create a dir > "patches/speech_tools-2.1-release" and place the attached patch there. > Create a series file in that directory, too: > > ls 0* > series > > Then add: > > _MAKE_OPT := $(CROSS_ENV_CC) > > to rules/.make Then rebuild: > > ptxdist clean > ptxdist targetinstall > > Everything totally untested, > Marc > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | > --047d7bd756e2b67b4d04e8535c0f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Now, I set everything as you said but is not linking... I = used as the build package for the ptxdist newpackage as "src-make-prog= "...is that ok?

p.s.> I didnt do top-post now, r= ight? ;)


2013/10/9 Mar= c Kleine-Budde <mkl@pengutronix.de>
Hello Javier,

please don't top-post.

On 10/09/2013 09:27 AM, Javier Fileiv wrote:
> One question...the patch you sent me>..I don't know which file = I have to
> apply it to... I couldnt find the gcc_defaults.mak

It's in speech_tools-2.1-release.tar.gz

You have to create a patches dir in your BSP, named after you package.
To figure out use:

=A0 =A0 ptxdist print SPEECH_TOOLS

The output is probably "speech_tools-2.1-release". So create a di= r
"patches/speech_tools-2.1-release" and place the attached patch t= here.
Create a series file in that directory, too:

=A0 =A0 ls 0* > series

Then add:

=A0 =A0 <YOUR_NEW_PACKGE>_MAKE_OPT :=3D $(CROSS_ENV_CC)

to rules/<your_new_pacakge>.make Then rebuild:

=A0 =A0 ptxdist clean <your_new_pacakge>
=A0 =A0 ptxdist targetinstall <your_new_pacakge>

Everything totally untested,
Marc
--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Marc Kleine-Budde =A0= =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0| Phone: +49-231-2826-924 =A0 =A0 |
Vertretung West/Dortmund =A0 =A0 =A0 =A0 =A0| Fax: =A0 +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 =A0| http://www.pengutronix.de =A0 |

--047d7bd756e2b67b4d04e8535c0f-- --===============0022057820== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0022057820==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=bjornoya.do.blackshift.org) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VSktj-0004eq-3R for ptxdist@pengutronix.de; Sun, 06 Oct 2013 11:45:11 +0200 Received: from [172.17.34.65] (hardanger.do.blackshift.org [172.17.34.65]) (using TLSv1 with cipher ECDHE-ECDSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: frogger) by bjornoya.do.blackshift.org (Postfix) with ESMTPSA id CA8775E922 for ; Sun, 6 Oct 2013 11:45:10 +0200 (CEST) Resent-To: ptxdist Resent-Message-ID: <52513125.9010905@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <52505A18.8010003@pengutronix.de> References: <52505A18.8010003@pengutronix.de> Date: Sun, 6 Oct 2013 10:56:29 +0200 Message-ID: From: Javier Fileiv Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0921870718==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Marc Kleine-Budde --===============0921870718== Content-Type: multipart/alternative; boundary=001a11c2e0b62197ee04e80eb64c --001a11c2e0b62197ee04e80eb64c Content-Type: text/plain; charset=ISO-8859-1 What does it mean?? Isnt there any work around? 2013/10/5 Marc Kleine-Budde > On 10/05/2013 08:14 PM, Javier Fileiv wrote: > > Im trying to build Edinburgh Speech Tools package for my mini2440 using > > ptxdist. > > > > The steps to install it on the host pc are ./configure and make, just > that. > > It looks like they use autotools, but they have their own build system > in the background. Which seems to be broken for normal autoools style > cross compiling. > > Marc > > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | > > --001a11c2e0b62197ee04e80eb64c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
What does it mean?? Isnt there any work around?


2013/10/5 Marc Kle= ine-Budde <mkl@pengutronix.de>
On 10/05/2013 08:14 PM, Ja= vier Fileiv wrote:
> Im trying to build Edinburgh Speech Tools package for my mini2440 usin= g
> ptxdist.
>
> The steps to install it on the host pc are ./configure and make, just = that.

It looks like they use autotools, but they have their own build syste= m
in the background. Which seems to be broken for normal autoools style
cross compiling.

Marc

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Marc Kleine-Budde =A0= =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0| Phone: +49-231-2826-924 =A0 =A0 |
Vertretung West/Dortmund =A0 =A0 =A0 =A0 =A0| Fax: =A0 +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 =A0| http://www.pengutronix.de =A0 |


--001a11c2e0b62197ee04e80eb64c-- --===============0921870718== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0921870718==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <52505A18.8010003@pengutronix.de> Date: Sat, 05 Oct 2013 20:27:36 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: In-Reply-To: Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0941272122==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Javier Fileiv This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0941272122== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vWrkJknm6PguMvr7CA5JMDbl5e7VmO3K6" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vWrkJknm6PguMvr7CA5JMDbl5e7VmO3K6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/05/2013 08:14 PM, Javier Fileiv wrote: > Im trying to build Edinburgh Speech Tools package for my mini2440 using= > ptxdist. >=20 > The steps to install it on the host pc are ./configure and make, just t= hat. It looks like they use autotools, but they have their own build system in the background. Which seems to be broken for normal autoools style cross compiling. Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --vWrkJknm6PguMvr7CA5JMDbl5e7VmO3K6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlJQWhgACgkQjTAFq1RaXHM2IQCgig7+JKsVVxecBYxvQTSpPRAo c/0AnjgeXqIw7Rzonb3sfEQ6JDs5y6Y3 =2RHr -----END PGP SIGNATURE----- --vWrkJknm6PguMvr7CA5JMDbl5e7VmO3K6-- --===============0941272122== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0941272122==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <525539D5.3060400@pengutronix.de> Date: Wed, 09 Oct 2013 13:11:17 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <52505A18.8010003@pengutronix.de> <525135BA.7000408@pengutronix.de> In-Reply-To: Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0057025537==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Javier Fileiv This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0057025537== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kifcHiAnkxkVuIGek1UKR6X3fe3pKQfBK" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kifcHiAnkxkVuIGek1UKR6X3fe3pKQfBK Content-Type: multipart/mixed; boundary="------------090801030607020507000407" This is a multi-part message in MIME format. --------------090801030607020507000407 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Javier, please don't top-post. On 10/09/2013 09:27 AM, Javier Fileiv wrote: > One question...the patch you sent me>..I don't know which file I have t= o > apply it to... I couldnt find the gcc_defaults.mak It's in speech_tools-2.1-release.tar.gz You have to create a patches dir in your BSP, named after you package. To figure out use: ptxdist print SPEECH_TOOLS The output is probably "speech_tools-2.1-release". So create a dir "patches/speech_tools-2.1-release" and place the attached patch there. Create a series file in that directory, too: ls 0* > series Then add: _MAKE_OPT :=3D $(CROSS_ENV_CC) to rules/.make Then rebuild: ptxdist clean ptxdist targetinstall Everything totally untested, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --------------090801030607020507000407 Content-Type: text/x-diff; name="0001-gcc_defaults-HACK-build-system-to-make-CC-and-CXX-ov.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename*0="0001-gcc_defaults-HACK-build-system-to-make-CC-and-CXX-ov.pa"; filename*1="tch" =46rom a86bf6be627f876c370c9fafcaf304f1e85a0f17 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Wed, 9 Oct 2013 09:30:38 +0200 Subject: [PATCH] gcc_defaults: HACK build system to make CC and CXX overwriteable --- config/compilers/gcc_defaults.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/compilers/gcc_defaults.mak b/config/compilers/gcc_def= aults.mak index a885266..7240ab3 100644 --- a/config/compilers/gcc_defaults.mak +++ b/config/compilers/gcc_defaults.mak @@ -38,8 +38,8 @@ ## = ## #######################################################################= #### =20 -CC=3Dgcc -CXX=3Dgcc +CC=3D$(CC) +CXX=3D$(CC) ifeq ($(OSTYPE),Darwin) CXX=3Dg++ endif --=20 1.8.4.rc3 --------------090801030607020507000407-- --kifcHiAnkxkVuIGek1UKR6X3fe3pKQfBK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlJVOdgACgkQjTAFq1RaXHNVGgCbB4C7eXZ6hlK9hqLdnrSt0I4k hY4An0bzOdmnWjtCWFZf4CHBNupkdDK+ =OGla -----END PGP SIGNATURE----- --kifcHiAnkxkVuIGek1UKR6X3fe3pKQfBK-- --===============0057025537== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0057025537==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ie0-x22e.google.com ([2607:f8b0:4001:c03::22e]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VSWMn-0003Sh-LU for ptxdist@pengutronix.de; Sat, 05 Oct 2013 20:14:32 +0200 Received: by mail-ie0-f174.google.com with SMTP id u16so11914320iet.5 for ; Sat, 05 Oct 2013 11:14:07 -0700 (PDT) MIME-Version: 1.0 Date: Sat, 5 Oct 2013 20:14:06 +0200 Message-ID: From: Javier Fileiv Subject: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1635275136==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1635275136== Content-Type: multipart/alternative; boundary=047d7b3a9c087c6a6904e802623d --047d7b3a9c087c6a6904e802623d Content-Type: text/plain; charset=ISO-8859-1 Im trying to build Edinburgh Speech Tools package for my mini2440 using ptxdist. The steps to install it on the host pc are ./configure and make, just that. What I have done was - ptxdist newpackage target I configure everything and is all running fine... ptxdist get speech_tools ptxdist extract speech_tools ptxdist prepare speech_tools (Im assuming that in this step the ./configure is done) and finally ptxdist compile speech_tools The problem is that if I go to [...]/OSELAS.BSP-Pengutronix-Mini2440-2012.12.0/platform-mini2440/build-target/speech_tools and I execute the "file" command the output is this one... ch_lab: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x56f3ef30ba83ec3033b57cadf1cd4a2970f15f1f, not stripped What it means that is building for my host system and not for my target. I'm a kind of lost now.. any help? Thanks --047d7b3a9c087c6a6904e802623d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Im trying to build=A0Edinburgh Speech Tools pack= age for my mini2440 using ptxdist.

The steps to install it on the host pc= are ./configure and make, just that.

What I have done was=A0

- ptxdist newpackage target

I configure everything and is all running fine...

ptxdist get speech_tools
ptxdist extract speech_t= ools
ptxdist prepare speech_tools (Im assuming that in this s= tep the ./configure is done)

and finally

ptxdist compile speech_tools

The problem is that if I go to [...]/OSELAS.BSP-Pengutronix-Mini2440-201= 2.12.0/platform-mini2440/build-target/speech_tools and I execute the "= file" command
the output is this one...
ch_lab: ELF 64-bit LSB execut= able, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs),= for GNU/Linux 2.6.32, BuildID[sha1]=3D0x56f3ef30ba83ec3033b57cadf1cd4a2970= f15f1f, not stripped

What it means that is building for my host system= and not for my target.

I'm a kind of lost now= .. any help?

Thanks


--047d7b3a9c087c6a6904e802623d-- --===============1635275136== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1635275136==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 In-Reply-To: References: <52505A18.8010003@pengutronix.de> <525135BA.7000408@pengutronix.de> Date: Wed, 9 Oct 2013 09:27:39 +0200 Message-ID: From: Javier Fileiv Subject: Re: [ptxdist] Problem adding new package. Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1900455032==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Marc Kleine-Budde Cc: ptxdist@pengutronix.de --===============1900455032== Content-Type: multipart/alternative; boundary=001a11c2fdc4f3515804e849d124 --001a11c2fdc4f3515804e849d124 Content-Type: text/plain; charset=ISO-8859-1 One question...the patch you sent me>..I don't know which file I have to apply it to... I couldnt find the gcc_defaults.mak 2013/10/9 Javier Fileiv > Sorry Marc, I thought we were not replying to each other on the forum. > > Thanks, I will try to do what you just told me. > > Bye! > > > 2013/10/6 Marc Kleine-Budde > >> Hello Javier, >> >> Please don't top-post and please keep the mailinglist on CC. >> >> On 10/06/2013 10:56 AM, Javier Fileiv wrote: >> > What does it mean?? Isnt there any work around? >> >> That means they don't care about cross compiling, so it doesn't work. >> >> Workaround - Maybe. It might work if you apply the following patch >> and add >> >> _MAKE_OPT := $(CROSS_ENV_CC) >> >> to rules/.make >> >> Marc >> >> diff --git a/config/compilers/gcc_defaults.mak >> b/config/compilers/gcc_defaults.mak >> index a885266..7240ab3 100644 >> --- a/config/compilers/gcc_defaults.mak >> +++ b/config/compilers/gcc_defaults.mak >> @@ -38,8 +38,8 @@ >> ## >> ## >> >> ########################################################################### >> >> -CC=gcc >> -CXX=gcc >> +CC=$(CC) >> +CXX=$(CC) >> ifeq ($(OSTYPE),Darwin) >> CXX=g++ >> endif >> >> >> -- >> Pengutronix e.K. | Marc Kleine-Budde | >> Industrial Linux Solutions | Phone: +49-231-2826-924 | >> Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | >> Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | >> >> > --001a11c2fdc4f3515804e849d124 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
One question...the patch you sent me>..I don't know= which file I have to apply it to... I couldnt find the=A0gcc_defa= ults.mak


2013/10/9 Jav= ier Fileiv <javier.fileiv@gmail.com>
Sorry Marc, I thought we were not replying to each other o= n the forum.

Thanks, I will try to do what you just told= me.

Bye!


2013/10/6 Marc Kleine-Budde <mkl@pengutron= ix.de>
Hello Javier,

Please don't top-post and please keep the mailinglist on CC.

On 10/06/2013 10:56 AM, Javier Fileiv wrote:
> What does it mean?? Isnt there any work around?

That means they don't care about cross compiling, so it doesn'= ;t work.

Workaround - Maybe. It might work if you apply the following patch
and add

=A0 =A0 <YOUR_NEW_PACKGE>_MAKE_OPT :=3D $(CROSS_ENV_CC)

to rules/<your_new_pacakge>.make

Marc

diff --git a/config/compilers/gcc_defaults.mak b/config/compilers/gcc_defau= lts.mak
index a885266..7240ab3 100644
--- a/config/compilers/gcc_defaults.mak
+++ b/config/compilers/gcc_defaults.mak
@@ -38,8 +38,8 @@
=A0 ## =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ##<= br> =A0 #######################################################################= ####

-CC=3Dgcc
-CXX=3Dgcc
+CC=3D$(CC)
+CXX=3D$(CC)
=A0ifeq ($(OSTYPE),Darwin)
=A0CXX=3Dg++
=A0endif


--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Marc Kleine-Budde =A0= =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0| Phone: +49-231-2826-924 = =A0 =A0 |
Vertretung West/Dortmund =A0 =A0 =A0 =A0 =A0| Fax: =A0 +49-5121-2= 06917-5555 |
Amtsgericht Hildesheim, HRA 2686 =A0| http://www.pengutronix.de =A0 |



--001a11c2fdc4f3515804e849d124-- --===============1900455032== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1900455032==--