mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 0/3] Build OSELAS.Toolchain on OS X
@ 2012-01-19  8:50 Andreas Bießmann
  2012-01-19  8:50 ` [ptxdist] [PATCH 1/3] glibc-headers: use freshly generated binutils Andreas Bießmann
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Andreas Bießmann @ 2012-01-19  8:50 UTC (permalink / raw)
  To: OSELAS ML; +Cc: PTXdist ML

These three little patches are required to build the OSELAS.Toolchain on OS X
Lion.

Currently only the
arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized
and
arm-v5te-linux-gnueabi_gcc-4.6.2_glibc-2.14.1_binutils-2.21.1a_kernel-2.6.39-sanitized
tested.

There are some build problems with i686 toolchain regarding building cross glibc
... but this is another task.

These patches where posted to the ptxdist ML previously, I don't know which is
the correct ML for OSELAS.Toolchain patches.

Andreas Bießmann (3):
  glibc-headers: use freshly generated binutils
  glibc-2.14.1: activate readelf detection
  glibc-2.13: activate readelf detection

 patches/glibc-2.13/autogen.sh   |    8 ++++++++
 patches/glibc-2.14.1/autogen.sh |    8 ++++++++
 rules/glibc-headers.make        |    5 +++++
 3 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100755 patches/glibc-2.13/autogen.sh
 create mode 100755 patches/glibc-2.14.1/autogen.sh

-- 
1.7.8.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ptxdist] [PATCH 1/3] glibc-headers: use freshly generated binutils
  2012-01-19  8:50 [ptxdist] [PATCH 0/3] Build OSELAS.Toolchain on OS X Andreas Bießmann
@ 2012-01-19  8:50 ` Andreas Bießmann
  2012-01-19  8:50 ` [ptxdist] [PATCH 2/3] glibc-2.14.1: activate readelf detection Andreas Bießmann
  2012-01-19  8:50 ` [ptxdist] [PATCH 3/3] glibc-2.13: " Andreas Bießmann
  2 siblings, 0 replies; 9+ messages in thread
From: Andreas Bießmann @ 2012-01-19  8:50 UTC (permalink / raw)
  To: OSELAS ML; +Cc: PTXdist ML

Some systems do not provide GNU binutils in sufficient versions to build the
glibc-headers. Building glibc later on, however, will use the freshly
generated cross-binutils and fulfill the GNU binutils version requirement. Use
the freshly generated binutils for glibc-headers too.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 rules/glibc-headers.make |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/rules/glibc-headers.make b/rules/glibc-headers.make
index 7a729dd..a197a50 100644
--- a/rules/glibc-headers.make
+++ b/rules/glibc-headers.make
@@ -50,6 +50,11 @@ GLIBC_HEADERS_ENV  := \
 	$(HOST_ENV) \
 	CC="$${CC} $(PTXCONF_GLIBC_HEADERS_FAKE_CROSS)" \
 	\
+	libc_cv_prog_as_gnu=yes \
+	libc_cv_prog_ld_gnu=yes \
+	ac_cv_prog_AS="$(PTXCONF_SYSROOT_CROSS)/bin/$(PTX_TOUPLE_TARGET)-as" \
+	ac_cv_prog_LD="$(PTXCONF_SYSROOT_CROSS)/bin/$(PTX_TOUPLE_TARGET)-ld" \
+	\
 	libc_cv_asm_cfi_directive_sections=yes \
 	libc_cv_asm_cfi_directives=yes \
 	libc_cv_asm_protected_directive=yes \
-- 
1.7.8.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ptxdist] [PATCH 2/3] glibc-2.14.1: activate readelf detection
  2012-01-19  8:50 [ptxdist] [PATCH 0/3] Build OSELAS.Toolchain on OS X Andreas Bießmann
  2012-01-19  8:50 ` [ptxdist] [PATCH 1/3] glibc-headers: use freshly generated binutils Andreas Bießmann
@ 2012-01-19  8:50 ` Andreas Bießmann
  2012-01-19  8:50 ` [ptxdist] [PATCH 3/3] glibc-2.13: " Andreas Bießmann
  2 siblings, 0 replies; 9+ messages in thread
From: Andreas Bießmann @ 2012-01-19  8:50 UTC (permalink / raw)
  To: OSELAS ML; +Cc: PTXdist ML

The glibc-2.14.1 patch
0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch adds the
ability to use a specific readelf but does not apply the changes. This
patch adds autogen.sh to re-run autotools on configure.in.

Without this patch OS X can not prepare glibc-headers cause of missing
'readelf' tool.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 patches/glibc-2.14.1/autogen.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100755 patches/glibc-2.14.1/autogen.sh

diff --git a/patches/glibc-2.14.1/autogen.sh b/patches/glibc-2.14.1/autogen.sh
new file mode 100755
index 0000000..2ba5507
--- /dev/null
+++ b/patches/glibc-2.14.1/autogen.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# rebuild ./configure (required by
+# 0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch) but do not
+# use autoreconf, this does not work on every system correctly. Even makefiles
+# do it that way!
+autoconf configure.in > configure
+
-- 
1.7.8.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ptxdist] [PATCH 3/3] glibc-2.13: activate readelf detection
  2012-01-19  8:50 [ptxdist] [PATCH 0/3] Build OSELAS.Toolchain on OS X Andreas Bießmann
  2012-01-19  8:50 ` [ptxdist] [PATCH 1/3] glibc-headers: use freshly generated binutils Andreas Bießmann
  2012-01-19  8:50 ` [ptxdist] [PATCH 2/3] glibc-2.14.1: activate readelf detection Andreas Bießmann
@ 2012-01-19  8:50 ` Andreas Bießmann
  2012-01-25 13:43   ` Michael Olbrich
  2 siblings, 1 reply; 9+ messages in thread
From: Andreas Bießmann @ 2012-01-19  8:50 UTC (permalink / raw)
  To: OSELAS ML; +Cc: PTXdist ML

The glibc-2.14.1 patch
0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch adds the
ability to use a specific readelf but does not apply the changes. This
patch adds autogen.sh to re-run autotools on configure.in. Without this
patch OS X can not prepare glibc-headers cause of missing 'readelf'
tool.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 patches/glibc-2.13/autogen.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100755 patches/glibc-2.13/autogen.sh

diff --git a/patches/glibc-2.13/autogen.sh b/patches/glibc-2.13/autogen.sh
new file mode 100755
index 0000000..2ba5507
--- /dev/null
+++ b/patches/glibc-2.13/autogen.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# rebuild ./configure (required by
+# 0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch) but do not
+# use autoreconf, this does not work on every system correctly. Even makefiles
+# do it that way!
+autoconf configure.in > configure
+
-- 
1.7.8.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH 3/3] glibc-2.13: activate readelf detection
  2012-01-19  8:50 ` [ptxdist] [PATCH 3/3] glibc-2.13: " Andreas Bießmann
@ 2012-01-25 13:43   ` Michael Olbrich
  2012-01-26  9:43     ` Andreas Bießmann
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Olbrich @ 2012-01-25 13:43 UTC (permalink / raw)
  To: ptxdist, OSELAS ML

On Thu, Jan 19, 2012 at 09:50:51AM +0100, Andreas Bießmann wrote:
> The glibc-2.14.1 patch
> 0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch adds the
> ability to use a specific readelf but does not apply the changes. This
> patch adds autogen.sh to re-run autotools on configure.in. Without this
> patch OS X can not prepare glibc-headers cause of missing 'readelf'
> tool.

Well the comment is broken. And there is a patch that touches configure, so
this needs to be cleaned up first...
I'm testing the other two patches right now. Unless you really need
glibc-2.13, I'd rather leave it as it is.

Michael

> Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
> ---
>  patches/glibc-2.13/autogen.sh |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
>  create mode 100755 patches/glibc-2.13/autogen.sh
> 
> diff --git a/patches/glibc-2.13/autogen.sh b/patches/glibc-2.13/autogen.sh
> new file mode 100755
> index 0000000..2ba5507
> --- /dev/null
> +++ b/patches/glibc-2.13/autogen.sh
> @@ -0,0 +1,8 @@
> +#!/bin/bash
> +
> +# rebuild ./configure (required by
> +# 0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch) but do not
> +# use autoreconf, this does not work on every system correctly. Even makefiles
> +# do it that way!
> +autoconf configure.in > configure
> +
> -- 
> 1.7.8.3
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH 3/3] glibc-2.13: activate readelf detection
  2012-01-25 13:43   ` Michael Olbrich
@ 2012-01-26  9:43     ` Andreas Bießmann
  2012-01-26 10:24       ` [ptxdist] [oselas] " Michael Olbrich
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Bießmann @ 2012-01-26  9:43 UTC (permalink / raw)
  To: ptxdist; +Cc: OSELAS ML, Michael Olbrich

Hi Michael,

On 25.01.2012 14:43, Michael Olbrich wrote:
> On Thu, Jan 19, 2012 at 09:50:51AM +0100, Andreas Bießmann wrote:
>> The glibc-2.14.1 patch
>> 0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch adds the
>> ability to use a specific readelf but does not apply the changes. This
>> patch adds autogen.sh to re-run autotools on configure.in. Without this
>> patch OS X can not prepare glibc-headers cause of missing 'readelf'
>> tool.
> 
> Well the comment is broken.

Sorry, didn't realize that. It was a copy of the glibc-2.14.1 version. I
just tried to get the i686-linux toolchain to work with glibc-2.13 on my
Mac.
BTW: i686 builds on my linux box fine, there must be some other issues
when compiling the i686-linux version of glibc on my i686 Mac.

> And there is a patch that touches configure, so
> this needs to be cleaned up first...
> I'm testing the other two patches right now. Unless you really need
> glibc-2.13, I'd rather leave it as it is.

I do not need glibc-2.13 currently.

best regards

Andreas Bießmann

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [oselas] [PATCH 3/3] glibc-2.13: activate readelf detection
  2012-01-26  9:43     ` Andreas Bießmann
@ 2012-01-26 10:24       ` Michael Olbrich
  2012-01-26 10:37         ` Andreas Bießmann
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Olbrich @ 2012-01-26 10:24 UTC (permalink / raw)
  To: oselas, ptxdist

On Thu, Jan 26, 2012 at 10:43:14AM +0100, Andreas Bießmann wrote:
> Hi Michael,
> 
> On 25.01.2012 14:43, Michael Olbrich wrote:
> > On Thu, Jan 19, 2012 at 09:50:51AM +0100, Andreas Bießmann wrote:
> >> The glibc-2.14.1 patch
> >> 0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch adds the
> >> ability to use a specific readelf but does not apply the changes. This
> >> patch adds autogen.sh to re-run autotools on configure.in. Without this
> >> patch OS X can not prepare glibc-headers cause of missing 'readelf'
> >> tool.
> > 
> > Well the comment is broken.
> 
> Sorry, didn't realize that. It was a copy of the glibc-2.14.1 version. I
> just tried to get the i686-linux toolchain to work with glibc-2.13 on my
> Mac.
> BTW: i686 builds on my linux box fine, there must be some other issues
> when compiling the i686-linux version of glibc on my i686 Mac.

I'm not sure if the patch that touches configure is even needed any more,
but I don't know what the original problem was either...

> > And there is a patch that touches configure, so
> > this needs to be cleaned up first...
> > I'm testing the other two patches right now. Unless you really need
> > glibc-2.13, I'd rather leave it as it is.
> 
> I do not need glibc-2.13 currently.

It's just an old Version, so won't touch it. Can you build the current
master (or stable/OSELAS.Toolchain-2011.11.x which is basically the same)
on Mac now?

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [oselas] [PATCH 3/3] glibc-2.13: activate readelf detection
  2012-01-26 10:24       ` [ptxdist] [oselas] " Michael Olbrich
@ 2012-01-26 10:37         ` Andreas Bießmann
  2012-01-26 11:28           ` Michael Olbrich
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Bießmann @ 2012-01-26 10:37 UTC (permalink / raw)
  To: oselas, ptxdist

Hi Michael,

On 26.01.2012 11:24, Michael Olbrich wrote:
> On Thu, Jan 26, 2012 at 10:43:14AM +0100, Andreas Bießmann wrote:
>> Hi Michael,
>>
>> On 25.01.2012 14:43, Michael Olbrich wrote:
>>> On Thu, Jan 19, 2012 at 09:50:51AM +0100, Andreas Bießmann wrote:

<snip comment mismatch stuff>

>> I do not need glibc-2.13 currently.
> 
> It's just an old Version, so won't touch it.

Ok.

> Can you build the current
> master (or stable/OSELAS.Toolchain-2011.11.x which is basically the same)
> on Mac now?

I can confirm that (some parts) of current master
(efc80fde76ce72863dcba385e1177011d18770d7) build and work on my Mac OS
10.7. There are still some issues with the i686-linux toolchain (can not
build glibc for target with freshly generated cross
i686-linux-{gcc|binutils}) but I can confirm that following
configurations work:

*
arm-v4t-linux-gnueabi_gcc-4.6.2_glibc-2.14.1_binutils-2.21.1a_kernel-2.6.39-sanitized.ptxconfig
*
arm-v5te-linux-gnueabi_gcc-4.6.2_glibc-2.14.1_binutils-2.21.1a_kernel-2.6.39-sanitized.ptxconfig
*
arm-cortexa8-linux-gnueabi_gcc-4.6.2_glibc-2.14.1_binutils-2.21.1a_kernel-2.6.39-sanitized.ptxconfig

best regards

Andreas Bießmann

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [oselas] [PATCH 3/3] glibc-2.13: activate readelf detection
  2012-01-26 10:37         ` Andreas Bießmann
@ 2012-01-26 11:28           ` Michael Olbrich
  0 siblings, 0 replies; 9+ messages in thread
From: Michael Olbrich @ 2012-01-26 11:28 UTC (permalink / raw)
  To: ptxdist, oselas

On Thu, Jan 26, 2012 at 11:37:46AM +0100, Andreas Bießmann wrote:
> > Can you build the current
> > master (or stable/OSELAS.Toolchain-2011.11.x which is basically the same)
> > on Mac now?
> 
> I can confirm that (some parts) of current master
> (efc80fde76ce72863dcba385e1177011d18770d7) build and work on my Mac OS
> 10.7. There are still some issues with the i686-linux toolchain (can not
> build glibc for target with freshly generated cross
> i686-linux-{gcc|binutils}) 

This is the problem you reported in the other thread, right? I have no idea
what the problem is, so we'll need to postpone this for now.
Is your build host i686? Maybe something is leaking into the build.

> but I can confirm that following
> configurations work:
> 
> *
> arm-v4t-linux-gnueabi_gcc-4.6.2_glibc-2.14.1_binutils-2.21.1a_kernel-2.6.39-sanitized.ptxconfig
> *
> arm-v5te-linux-gnueabi_gcc-4.6.2_glibc-2.14.1_binutils-2.21.1a_kernel-2.6.39-sanitized.ptxconfig
> *
> arm-cortexa8-linux-gnueabi_gcc-4.6.2_glibc-2.14.1_binutils-2.21.1a_kernel-2.6.39-sanitized.ptxconfig

Great.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-01-26 11:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-19  8:50 [ptxdist] [PATCH 0/3] Build OSELAS.Toolchain on OS X Andreas Bießmann
2012-01-19  8:50 ` [ptxdist] [PATCH 1/3] glibc-headers: use freshly generated binutils Andreas Bießmann
2012-01-19  8:50 ` [ptxdist] [PATCH 2/3] glibc-2.14.1: activate readelf detection Andreas Bießmann
2012-01-19  8:50 ` [ptxdist] [PATCH 3/3] glibc-2.13: " Andreas Bießmann
2012-01-25 13:43   ` Michael Olbrich
2012-01-26  9:43     ` Andreas Bießmann
2012-01-26 10:24       ` [ptxdist] [oselas] " Michael Olbrich
2012-01-26 10:37         ` Andreas Bießmann
2012-01-26 11:28           ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox