Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623258 - media-libs/libpng-1.6.30 fails to build on arm/arm64 (1.6.29 ok)
Summary: media-libs/libpng-1.6.30 fails to build on arm/arm64 (1.6.29 ok)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 626312 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-07-01 13:55 UTC by Alexis Ballier
Modified: 2017-07-28 08:58 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,26.91 KB, text/plain)
2017-07-01 13:55 UTC, Alexis Ballier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2017-07-01 13:55:05 UTC
Created attachment 478548 [details]
build.log

rpi3-arm64-0.10/tmp/portage/media-libs/libpng-1.6.30/work/libpng-1.6.30/arm/filter_neon_intrinsics.c  -fPIC -DPIC -o arm/.libs/filter_neon_intrinsics.o
/var/targets/baseos-rpi3-arm64-0.10/tmp/portage/media-libs/libpng-1.6.30/work/libpng-1.6.30/arm/../pngpriv.h: Assembler messages:
/var/targets/baseos-rpi3-arm64-0.10/tmp/portage/media-libs/libpng-1.6.30/work/libpng-1.6.30/arm/../pngpriv.h:476: Error: unknown mnemonic `typedef' -- `typedef unsigned long png_ptruint'
make[1]: *** [Makefile:1155: arm/filter_neon.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
Comment 2 Conrad Kostecki gentoo-dev 2017-07-02 00:36:34 UTC
(In reply to Felix Janda from comment #1)
> https://github.com/glennrp/libpng/commit/
> 660ce585975b3bdfbd39cd9fe28d4293da05700d looks relevant.

I am not sure, if I did something wrong. But I applied this patch, compiling still fails for me on arm.

> /var/tmp/portage/media-libs/libpng-1.6.30/work/libpng-
> 1.6.30/arm/../pngpriv.h:482: Error: bad instruction `typedef unsigned long
> png_ptruint'
Comment 3 tt_1 2017-07-04 16:00:46 UTC
I cannot reproduce this on an arm system, so this should be reassigend to arm64 only. An emerge --info to see which gcc and libc you use would be helpfull too.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-07-28 07:09:03 UTC
According to the changelog of libpng-1.6.31 this has been fixed:

  Revised pngpriv.h to work around failure to compile arm/filter_neon.S
    ("typedef" directive is unrecognized by the assembler). The problem
    was introduced in libpng-1.6.30beta01.

Can somebody confirm this?
Comment 5 Alexis Ballier gentoo-dev 2017-07-28 08:57:58 UTC
*** Bug 626312 has been marked as a duplicate of this bug. ***
Comment 6 Alexis Ballier gentoo-dev 2017-07-28 08:58:31 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #4)
> According to the changelog of libpng-1.6.31 this has been fixed:
> 
>   Revised pngpriv.h to work around failure to compile arm/filter_neon.S
>     ("typedef" directive is unrecognized by the assembler). The problem
>     was introduced in libpng-1.6.30beta01.
> 
> Can somebody confirm this?

yes