Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932385 - dev-lang/perl-5.38.2-r5 fails to cross-compile with >=sys-devel/gcc-14: error: implicit declaration of function 'memrchr'; did you mean 'memchr'?
Summary: dev-lang/perl-5.38.2-r5 fails to cross-compile with >=sys-devel/gcc-14: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-05-21 20:05 UTC by matoro
Modified: 2024-05-22 02:21 UTC (History)
0 users

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


Attachments
build.log and emerge --info (file_932385.txt,109.29 KB, text/plain)
2024-05-21 20:05 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-05-21 20:05:56 UTC
Created attachment 893683 [details]
build.log and emerge --info

Ex:

powerpc-unknown-linux-musl-gcc -DPERL_CORE -O2 -pipe -fomit-frame-pointer -fwrapv -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -fomit-frame-pointer -fwrapv -fno-strict-aliasing -DNO_PERL_RAND_SEED -O2 -pipe -fomit-frame-pointer -fwrapv -fno-strict-aliasing -fPIC -Wno-unused-function -c -o op.o op.c
In file included from op.c:163:
op.c: In function 'Perl_newATTRSUB_x':
perl.h:2399:25: error: implicit declaration of function 'memrchr'; did you mean 'memchr'? [-Wimplicit-function-declaration]
 2399 | #    define my_memrchr  memrchr
      |                         ^~~~~~~
op.c:10592:34: note: in expansion of macro 'my_memrchr'
10592 |         const char *s = (char *) my_memrchr(name, ':', namlen);
      |                                  ^~~~~~~~~~
Comment 1 Larry the Git Cow gentoo-dev 2024-05-22 02:21:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28d6c27f171133bb0f3c2c9330960211630d2840

commit 28d6c27f171133bb0f3c2c9330960211630d2840
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-22 02:20:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-22 02:20:51 +0000

    dev-lang/perl: pass -D_GNU_SOURCE for the cross build for CHOST too
    
    We need it there as well.
    
    Bug: https://bugs.gentoo.org/913171
    Closes: https://bugs.gentoo.org/932385
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/perl/perl-5.38.2-r5.ebuild | 3 +++
 1 file changed, 3 insertions(+)