Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924131 - libvpx compile failure
Summary: libvpx compile failure
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-09 07:03 UTC by Arnim Eijkhoudt
Modified: 2024-02-09 07:44 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info.txt,20.93 KB, text/plain)
2024-02-09 07:03 UTC, Arnim Eijkhoudt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnim Eijkhoudt 2024-02-09 07:03:36 UTC
libvpx fails to compile on ~x86_64 

Reproducible: Always

Steps to Reproduce:
1. emerge libvpx
2.
3.
Actual Results:  
Failed compilation

Expected Results:  
Successful compilation

Specific point of compile failure:

x86_64-pc-linux-gnu-g++ -L. -Wl,-O1 -Wl,--as-needed -m64 -o examples/vp9_spatial_svc_encoder args.c.o ivfenc.c.o y4minput.c.o tools_common.c.o video_writer.c.o vpxstats.c.o examples/svc_encodeframe.c.o examples/vp9_spatial_svc_encoder.c.o -lvpx -lm -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: examples/vp9_spatial_svc_encoder.c.o: in function `sum_squares_visible':
vp9_spatial_svc_encoder.c:(.text+0xd98): undefined reference to `num_4x4_blocks_wide_lookup'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xdaf): undefined reference to `num_4x4_blocks_high_lookup'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xdc6): undefined reference to `num_4x4_blocks_wide_lookup'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xddd): undefined reference to `num_4x4_blocks_high_lookup'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xe5c): undefined reference to `vpx_sum_squares_2d_i16_sse2'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xef0): undefined reference to `vpx_sum_squares_2d_i16_sse2'
collect2: error: ld returned 1 exit status
make[1]: *** [/var/tmp/portage/media-libs/libvpx-1.14.0/work/libvpx-1.14.0/examples.mk:338: examples/vp9_spatial_svc_encoder] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:17: .DEFAULT] Error 2
 * ERROR: media-libs/libvpx-1.14.0::gentoo failed (compile phase):
 *   emake failed
Comment 1 Arnim Eijkhoudt 2024-02-09 07:03:56 UTC
Created attachment 884577 [details]
emerge --info
Comment 2 Ionen Wolkens gentoo-dev 2024-02-09 07:14:43 UTC
>CFLAGS="-march=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512"
Seems it doesn't react well to being compiled without optimizations, try adding -O2 to your CFLAGS and CXXFLAGS.
Comment 3 Arnim Eijkhoudt 2024-02-09 07:43:50 UTC
Well I'll be... 

That solved it, thank you. Never expected that to be a possible cause of failure.