Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715880 - bootstrap-prefix.sh: freadahead.c:83: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."
Summary: bootstrap-prefix.sh: freadahead.c:83:3: error: #error "Please port gnulib fre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-02 07:50 UTC by Xuewei
Modified: 2020-05-12 14:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
line 60713 (stage1.tar.gz,367.91 KB, application/gzip)
2020-04-02 07:53 UTC, Xuewei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xuewei 2020-04-02 07:50:40 UTC
Bootstrap encounter the problem in stage1.
Comment 1 Xuewei 2020-04-02 07:53:30 UTC
Created attachment 628932 [details]
line 60713
Comment 2 Xuewei 2020-04-29 20:22:20 UTC
I try to bootstrap again under Ubuntu 18.04LTS, and encounter this problem again.
A temporary solution is to patch the m4-1.4.18 with this:

https://github.com/easybuilders/easybuild-easyconfigs/files/2737214/M4_glibc_2.28.patch.txt

(From https://github.com/easybuilders/easybuild-easyconfigs/issues/7383)

However, the problem doesn't appear in Arch.
Comment 3 Benda Xu gentoo-dev 2020-05-05 13:24:56 UTC
(In reply to Xuewei from comment #0)
> Bootstrap encounter the problem in stage1.

I can't reproduce the bug anymore.  Could you confirm?
Comment 4 Xuewei 2020-05-05 16:50:21 UTC
(In reply to Benda Xu from comment #3)
> (In reply to Xuewei from comment #0)
> > Bootstrap encounter the problem in stage1.
> 
> I can't reproduce the bug anymore.  Could you confirm?

Yes.
 
And I also tried it at Ubuntu 20.04. The same problem occurred again.

stage1.log:

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."
   92 |  #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[3]: *** [Makefile:1910: freadahead.o] Error 1
make[3]: *** Waiting for unfinished jobs....
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."
  110 |   #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
      |    ^~~~~
make[3]: *** [Makefile:1910: fseeko.o] Error 1
make[3]: Leaving directory '/home/xuewei/gentoo/var/tmp/m4-1.4.18/m4-1.4.18/lib'
make[2]: *** [Makefile:1674: all] Error 2
make[2]: Leaving directory '/home/xuewei/gentoo/var/tmp/m4-1.4.18/m4-1.4.18/lib'
make[1]: *** [Makefile:1572: all-recursive] Error 1
make[1]: Leaving directory '/home/xuewei/gentoo/var/tmp/m4-1.4.18/m4-1.4.18'
Comment 5 Benda Xu gentoo-dev 2020-05-05 23:08:31 UTC
(In reply to Xuewei from comment #4)
> (In reply to Benda Xu from comment #3)
> > (In reply to Xuewei from comment #0)
> > > Bootstrap encounter the problem in stage1.
> > 
> > I can't reproduce the bug anymore.  Could you confirm?
> 
> Yes.
>  
> And I also tried it at Ubuntu 20.04. The same problem occurred again.
> 
> stage1.log:
> 
> 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."
>    92 |  #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[3]: *** [Makefile:1910: freadahead.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> 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."
>   110 |   #error "Please port gnulib fseeko.c to your platform! Look at the
> code in fseeko.c, then report this to bug-gnulib."
>       |    ^~~~~
> make[3]: *** [Makefile:1910: fseeko.o] Error 1
> make[3]: Leaving directory
> '/home/xuewei/gentoo/var/tmp/m4-1.4.18/m4-1.4.18/lib'
> make[2]: *** [Makefile:1674: all] Error 2
> make[2]: Leaving directory
> '/home/xuewei/gentoo/var/tmp/m4-1.4.18/m4-1.4.18/lib'
> make[1]: *** [Makefile:1572: all-recursive] Error 1
> make[1]: Leaving directory '/home/xuewei/gentoo/var/tmp/m4-1.4.18/m4-1.4.18'

Can you reproduce it on Ubuntu 18.04 again?
Comment 6 Xuewei 2020-05-06 01:32:49 UTC
> Can you reproduce it on Ubuntu 18.04 again?

Strangely, now I can't reproduce it on 18.04.
But I can still reproduce it on Ubuntu 20.04 and Arch.
I don't know why.
Comment 7 Larry the Git Cow gentoo-dev 2020-05-12 14:44:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=487ddf6654a5d25ef22f1d0a98e78d6acf0878ac

commit 487ddf6654a5d25ef22f1d0a98e78d6acf0878ac
Author:     Benda Xu <heroxbd@gentoo.org>
AuthorDate: 2020-05-12 14:41:15 +0000
Commit:     Benda Xu <heroxbd@gentoo.org>
CommitDate: 2020-05-12 14:41:15 +0000

    bootstrap-prefix.sh: bootstrap m4 on glibc-2.28 and newer.
    
    Take the patch from Gentoo tree for Stage 1, to cope with hosts having
    glibc-2.28 and newer.
    
    Closes: https://bugs.gentoo.org/715880
    Reported-By: Xuewei Liu <18800136075@163.com>
    Signed-off-by: Benda Xu <heroxbd@gentoo.org>

 scripts/bootstrap-prefix.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)