Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713808 - media-video/ffmpeg fails to compile on arm
Summary: media-video/ffmpeg fails to compile on arm
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-21 15:43 UTC by Agostino Sarubbo
Modified: 2020-03-21 17:14 UTC (History)
1 user (show)

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


Attachments
ffmpeg-4.1.3:20200319-080900.log (ffmpeg-4.1.3:20200319-080900.log,43.00 KB, text/plain)
2020-03-21 15:43 UTC, Agostino Sarubbo
Details
emerge --info (.emergeinfo,5.09 KB, text/plain)
2020-03-21 15:43 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-03-21 15:43:09 UTC
This is an auto-filled bug because media-video/ffmpeg fails to compile on arm. Feel free to adjust the summary to clarify the exact issue. Attached build log and emerge --info
Comment 1 Agostino Sarubbo gentoo-dev 2020-03-21 15:43:16 UTC
Created attachment 623880 [details]
ffmpeg-4.1.3:20200319-080900.log

build log
Comment 2 Agostino Sarubbo gentoo-dev 2020-03-21 15:43:21 UTC
Created attachment 623882 [details]
emerge --info

emerge --info
Comment 3 Andreas Sturmlechner gentoo-dev 2020-03-21 16:38:50 UTC
If 4.1.3 fails to build, how was it marked stable on arm then?
Comment 4 Andreas Sturmlechner gentoo-dev 2020-03-21 16:46:16 UTC
Does media-video/ffmpeg-4.2.2 build?
Comment 5 Agostino Sarubbo gentoo-dev 2020-03-21 16:58:54 UTC
(In reply to Andreas Sturmlechner from comment #3)
> If 4.1.3 fails to build, how was it marked stable on arm then?

I didn't mark it stable. I suppose that:
1) it builds for who marked it stable
2) it was marked stable by mistake

(In reply to Andreas Sturmlechner from comment #4)
> Does media-video/ffmpeg-4.2.2 build?

I'll test it
Comment 6 Agostino Sarubbo gentoo-dev 2020-03-21 17:00:41 UTC
(In reply to Andreas Sturmlechner from comment #4)
> Does media-video/ffmpeg-4.2.2 build?

It doesn't, but I suppose there is something wrong when you run an arm chroot on an arm64 host, infact I see something like:
src/libavutil/aarch64/bswap.h:38:5: error: invalid 'asm': invalid operand for code 'w'

aarch64 should not be involved.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-03-21 17:09:46 UTC
(In reply to Agostino Sarubbo from comment #6)
> (In reply to Andreas Sturmlechner from comment #4)
> > Does media-video/ffmpeg-4.2.2 build?
> 
> It doesn't, but I suppose there is something wrong when you run an arm
> chroot on an arm64 host, infact I see something like:
> src/libavutil/aarch64/bswap.h:38:5: error: invalid 'asm': invalid operand
> for code 'w'
> 
> aarch64 should not be involved.

Looks like --arch=arm may be a workaround for now but this may happen on other arches if you're in a chroot too. Will test when my box updates.
Comment 8 Agostino Sarubbo gentoo-dev 2020-03-21 17:14:53 UTC
it was my fault. I didn't call linux32 when chrooting from aarch64 hw.