Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2018.02.0 released - host-m4 build error on Ubuntu 18.10

2019-01-18 Thread Michael Olbrich
On Fri, Jan 18, 2019 at 02:23:02PM +0100, Roland Hieber wrote:
> On Fri, Jan 18, 2019 at 11:34:22AM +0100, Michael Olbrich wrote:
> > On Fri, Jan 18, 2019 at 10:07:45AM +0100, Roland Hieber wrote:
> > > On Sat, Sep 29, 2018 at 05:57:53PM +0200, Andreas Pretzsch wrote:
> > > > During build of the toolchain (at least in configs arm-v7a-linux-
> > > > gnueabihf, arm-v7m-eabi, arm-v7em-eabihf) on an Ubuntu 18.10-beta host,
> > > > build stopped here with an host-m4 error:
> > > > fseeko.c: In function 'rpl_fseeko':
> > > > fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your 
> > > > platform! Look at the code in fseeko.c, then report this to bug-gnulib."
> > > >#error "Please port gnulib fseeko.c to your platform! Look at the 
> > > > code in fseeko.c, then report this to bug-gnulib."
> > > > ^
> > > >   GEN  charset.alias
> > > > make[4]: *** [Makefile:1910: fseeko.o] Error 1
> > > > make[4]: *** Waiting for unfinished jobs
> > > >   CC   vasprintf.o
> > > > freadahead.c: In function 'freadahead':
> > > > freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to 
> > > > your platform! Look at the definition of fflush, fread, ungetc on your 
> > > > system, then report this to bug-gnulib."
> > > >   #error "Please port gnulib freadahead.c to your platform! Look at the 
> > > > definition of fflush, fread, ungetc on your system, then report this to 
> > > > bug-gnulib."
> > > >^
> > > > make[4]: *** [Makefile:1910: freadahead.o] Error 1
> > > > 
> > > > Reason is the glibc 2.28 on the build host (libc6:amd64 2.28-0ubuntu1).
> > > > Same probably applies to other distributions.
> > > > 
> > > > In up-to-date ptxdist, there is a patch included fixing this issue:
> > > > commit cba1e28 "m4/coreutil: add gnulib patches for GLibc-2.28" from
> > > > Rouven Czerwinski, dating 2018-08-23.
> > > > With this, m4 is patched accordingly, and build succeeds.
> > > > 
> > > > The OSELAS.Toolchain-2018.02.0 ptxdist project refers to ptxdist-
> > > > 2018.02.0 by default. Above patch is part of ptxdist-2018.09.0.
> > > > 
> > > > So until there is a revised version of OSELAS.Toolchain, either use
> > > > ptxdist-2018.09.0 or later for building, or include the patch in the
> > > > toolchain project.
> > 
> > Did you try building the toolchain with ptxdist-2018.09.0 (with -f)? Does
> > it work?
> > 
> > > > @ PTX: This might be worth mentioning in the building instructions or
> > > > at a similar place.
> > 
> > Hmm, we don't really have a place to put version specific notes. And the
> > generic build instructions are out of date too... :-/.
> > 
> > > mol, do you think it is feasible to release a 2018.02.1 toolchain with
> > > the host-m4 (and probably other host-glibc related) patches?
> > 
> > Well, we could start fixing this in a stable branch. Any volunteers? :-)
> > And maybe a source only release. That's easy. Building all the binary
> > toolchains it what makes a release a lot of work.
> 
> The m4 patch [1] works for me, but I've also run into issues with building
> gdb against Python 3.7 on Debian unstable:
> 
> python/python.c: In function 'bool do_start_initialization()':
> python/python.c:1710:45: error: too few arguments to function 'int 
> _PyImport_FixupBuiltin(PyObject*, const char*, PyObject*)'
>_PyImport_FixupBuiltin (gdb_module, "_gdb");
>  ^
> 
> There is a patch [2] available upstream, but this will break if the
> build host uses python < 3.7. Which configurations do we want to target
> for a stable branch?

The Debian packages for OSELAS.Toolchain-2018.12.0 use Python 3.5 on
stretch and 3.7 on buster, so building against either version works for gdb
8.2 so maybe you're missing some other patch?

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- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2018.02.0 released - host-m4 build error on Ubuntu 18.10

2019-01-18 Thread Roland Hieber
On Fri, Jan 18, 2019 at 11:34:22AM +0100, Michael Olbrich wrote:
> On Fri, Jan 18, 2019 at 10:07:45AM +0100, Roland Hieber wrote:
> > On Sat, Sep 29, 2018 at 05:57:53PM +0200, Andreas Pretzsch wrote:
> > > During build of the toolchain (at least in configs arm-v7a-linux-
> > > gnueabihf, arm-v7m-eabi, arm-v7em-eabihf) on an Ubuntu 18.10-beta host,
> > > build stopped here with an host-m4 error:
> > > fseeko.c: In function 'rpl_fseeko':
> > > fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your 
> > > platform! Look at the code in fseeko.c, then report this to bug-gnulib."
> > >#error "Please port gnulib fseeko.c to your platform! Look at the code 
> > > in fseeko.c, then report this to bug-gnulib."
> > > ^
> > >   GEN  charset.alias
> > > make[4]: *** [Makefile:1910: fseeko.o] Error 1
> > > make[4]: *** Waiting for unfinished jobs
> > >   CC   vasprintf.o
> > > freadahead.c: In function 'freadahead':
> > > freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your 
> > > platform! Look at the definition of fflush, fread, ungetc on your system, 
> > > then report this to bug-gnulib."
> > >   #error "Please port gnulib freadahead.c to your platform! Look at the 
> > > definition of fflush, fread, ungetc on your system, then report this to 
> > > bug-gnulib."
> > >^
> > > make[4]: *** [Makefile:1910: freadahead.o] Error 1
> > > 
> > > Reason is the glibc 2.28 on the build host (libc6:amd64 2.28-0ubuntu1).
> > > Same probably applies to other distributions.
> > > 
> > > In up-to-date ptxdist, there is a patch included fixing this issue:
> > > commit cba1e28 "m4/coreutil: add gnulib patches for GLibc-2.28" from
> > > Rouven Czerwinski, dating 2018-08-23.
> > > With this, m4 is patched accordingly, and build succeeds.
> > > 
> > > The OSELAS.Toolchain-2018.02.0 ptxdist project refers to ptxdist-
> > > 2018.02.0 by default. Above patch is part of ptxdist-2018.09.0.
> > > 
> > > So until there is a revised version of OSELAS.Toolchain, either use
> > > ptxdist-2018.09.0 or later for building, or include the patch in the
> > > toolchain project.
> 
> Did you try building the toolchain with ptxdist-2018.09.0 (with -f)? Does
> it work?
> 
> > > @ PTX: This might be worth mentioning in the building instructions or
> > > at a similar place.
> 
> Hmm, we don't really have a place to put version specific notes. And the
> generic build instructions are out of date too... :-/.
> 
> > mol, do you think it is feasible to release a 2018.02.1 toolchain with
> > the host-m4 (and probably other host-glibc related) patches?
> 
> Well, we could start fixing this in a stable branch. Any volunteers? :-)
> And maybe a source only release. That's easy. Building all the binary
> toolchains it what makes a release a lot of work.

The m4 patch [1] works for me, but I've also run into issues with building
gdb against Python 3.7 on Debian unstable:

python/python.c: In function 'bool do_start_initialization()':
python/python.c:1710:45: error: too few arguments to function 'int 
_PyImport_FixupBuiltin(PyObject*, const char*, PyObject*)'
   _PyImport_FixupBuiltin (gdb_module, "_gdb");
 ^

There is a patch [2] available upstream, but this will break if the
build host uses python < 3.7. Which configurations do we want to target
for a stable branch?

[1]: 
https://git.pengutronix.de/cgit/rhi/OSELAS.Toolchain/commit/?h=rhi/for-stable/OSELAS.Toolchain-2018.02.x=15f8bd0a1a8c82fdc722793b429b47c31d85dbb4
[2]: https://sourceware.org/ml/gdb-patches/2018-05/msg00863.html

-- 
Roland Hieber | r.hie...@pengutronix.de |
Pengutronix e.K.  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2018.02.0 released - host-m4 build error on Ubuntu 18.10

2019-01-18 Thread Michael Olbrich
On Fri, Jan 18, 2019 at 10:07:45AM +0100, Roland Hieber wrote:
> On Sat, Sep 29, 2018 at 05:57:53PM +0200, Andreas Pretzsch wrote:
> > During build of the toolchain (at least in configs arm-v7a-linux-
> > gnueabihf, arm-v7m-eabi, arm-v7em-eabihf) on an Ubuntu 18.10-beta host,
> > build stopped here with an host-m4 error:
> > fseeko.c: In function 'rpl_fseeko':
> > fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your 
> > platform! Look at the code in fseeko.c, then report this to bug-gnulib."
> >#error "Please port gnulib fseeko.c to your platform! Look at the code 
> > in fseeko.c, then report this to bug-gnulib."
> > ^
> >   GEN  charset.alias
> > make[4]: *** [Makefile:1910: fseeko.o] Error 1
> > make[4]: *** Waiting for unfinished jobs
> >   CC   vasprintf.o
> > freadahead.c: In function 'freadahead':
> > freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your 
> > platform! Look at the definition of fflush, fread, ungetc on your system, 
> > then report this to bug-gnulib."
> >   #error "Please port gnulib freadahead.c to your platform! Look at the 
> > definition of fflush, fread, ungetc on your system, then report this to 
> > bug-gnulib."
> >^
> > make[4]: *** [Makefile:1910: freadahead.o] Error 1
> > 
> > Reason is the glibc 2.28 on the build host (libc6:amd64 2.28-0ubuntu1).
> > Same probably applies to other distributions.
> > 
> > In up-to-date ptxdist, there is a patch included fixing this issue:
> > commit cba1e28 "m4/coreutil: add gnulib patches for GLibc-2.28" from
> > Rouven Czerwinski, dating 2018-08-23.
> > With this, m4 is patched accordingly, and build succeeds.
> > 
> > The OSELAS.Toolchain-2018.02.0 ptxdist project refers to ptxdist-
> > 2018.02.0 by default. Above patch is part of ptxdist-2018.09.0.
> > 
> > So until there is a revised version of OSELAS.Toolchain, either use
> > ptxdist-2018.09.0 or later for building, or include the patch in the
> > toolchain project.

Did you try building the toolchain with ptxdist-2018.09.0 (with -f)? Does
it work?

> > @ PTX: This might be worth mentioning in the building instructions or
> > at a similar place.

Hmm, we don't really have a place to put version specific notes. And the
generic build instructions are out of date too... :-/.

> mol, do you think it is feasible to release a 2018.02.1 toolchain with
> the host-m4 (and probably other host-glibc related) patches?

Well, we could start fixing this in a stable branch. Any volunteers? :-)
And maybe a source only release. That's easy. Building all the binary
toolchains it what makes a release a lot of work.

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- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2018.02.0 released - host-m4 build error on Ubuntu 18.10

2019-01-18 Thread Roland Hieber
On Sat, Sep 29, 2018 at 05:57:53PM +0200, Andreas Pretzsch wrote:
> During build of the toolchain (at least in configs arm-v7a-linux-
> gnueabihf, arm-v7m-eabi, arm-v7em-eabihf) on an Ubuntu 18.10-beta host,
> build stopped here with an host-m4 error:
> fseeko.c: In function 'rpl_fseeko':
> fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! 
> Look at the code in fseeko.c, then report this to bug-gnulib."
>#error "Please port gnulib fseeko.c to your platform! Look at the code in 
> fseeko.c, then report this to bug-gnulib."
> ^
>   GEN  charset.alias
> make[4]: *** [Makefile:1910: fseeko.o] Error 1
> make[4]: *** Waiting for unfinished jobs
>   CC   vasprintf.o
> freadahead.c: In function 'freadahead':
> freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your 
> platform! Look at the definition of fflush, fread, ungetc on your system, 
> then report this to bug-gnulib."
>   #error "Please port gnulib freadahead.c to your platform! Look at the 
> definition of fflush, fread, ungetc on your system, then report this to 
> bug-gnulib."
>^
> make[4]: *** [Makefile:1910: freadahead.o] Error 1
> 
> Reason is the glibc 2.28 on the build host (libc6:amd64 2.28-0ubuntu1).
> Same probably applies to other distributions.
> 
> In up-to-date ptxdist, there is a patch included fixing this issue:
> commit cba1e28 "m4/coreutil: add gnulib patches for GLibc-2.28" from
> Rouven Czerwinski, dating 2018-08-23.
> With this, m4 is patched accordingly, and build succeeds.
> 
> The OSELAS.Toolchain-2018.02.0 ptxdist project refers to ptxdist-
> 2018.02.0 by default. Above patch is part of ptxdist-2018.09.0.
> 
> So until there is a revised version of OSELAS.Toolchain, either use
> ptxdist-2018.09.0 or later for building, or include the patch in the
> toolchain project.
> 
> @ PTX: This might be worth mentioning in the building instructions or
> at a similar place.

mol, do you think it is feasible to release a 2018.02.1 toolchain with
the host-m4 (and probably other host-glibc related) patches?

 - Roland
-- 
Roland Hieber | r.hie...@pengutronix.de |
Pengutronix e.K.  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2018.02.0 released - host-m4 build error on Ubuntu 18.10

2018-09-29 Thread Andreas Pretzsch
During build of the toolchain (at least in configs arm-v7a-linux-
gnueabihf, arm-v7m-eabi, arm-v7em-eabihf) on an Ubuntu 18.10-beta host,
build stopped here with an host-m4 error:
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! 
Look at the code in fseeko.c, then report this to bug-gnulib."
   #error "Please port gnulib fseeko.c to your platform! Look at the code in 
fseeko.c, then report this to bug-gnulib."
^
  GEN  charset.alias
make[4]: *** [Makefile:1910: fseeko.o] Error 1
make[4]: *** Waiting for unfinished jobs
  CC   vasprintf.o
freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your 
platform! Look at the definition of fflush, fread, ungetc on your system, then 
report this to bug-gnulib."
  #error "Please port gnulib freadahead.c to your platform! Look at the 
definition of fflush, fread, ungetc on your system, then report this to 
bug-gnulib."
   ^
make[4]: *** [Makefile:1910: freadahead.o] Error 1

Reason is the glibc 2.28 on the build host (libc6:amd64 2.28-0ubuntu1).
Same probably applies to other distributions.

In up-to-date ptxdist, there is a patch included fixing this issue:
commit cba1e28 "m4/coreutil: add gnulib patches for GLibc-2.28" from
Rouven Czerwinski, dating 2018-08-23.
With this, m4 is patched accordingly, and build succeeds.

The OSELAS.Toolchain-2018.02.0 ptxdist project refers to ptxdist-
2018.02.0 by default. Above patch is part of ptxdist-2018.09.0.

So until there is a revised version of OSELAS.Toolchain, either use
ptxdist-2018.09.0 or later for building, or include the patch in the
toolchain project.

@ PTX: This might be worth mentioning in the building instructions or
at a similar place.

Thanks for providing OSELAS.Toolchain,
  Andreas

-- 

carpe noctem engineering
Ingenieurbuero fuer Hard- & Software-Entwicklung Andreas Pretzsch
Dipl.-Ing. (FH) Andreas PretzschTel. +49-(0)7307-936088-1
Lange Strasse 28a   Fax: +49-(0)7307-936088-9
89250 Senden, Germany   email: a...@cn-eng.de


___
ptxdist mailing list
ptxdist@pengutronix.de