Issue 1781 in webm: libvpx make error in Centos 7.9

487 views
Skip to first unread message

yxluk… via monorail

unread,
Oct 12, 2022, 9:01:41 AM10/12/22
to webm-d...@webmproject.org
Status: Unconfirmed
Owner: ----

New issue 1781 by yxluk...@gmail.com: libvpx make error in Centos 7.9
https://bugs.chromium.org/p/webm/issues/detail?id=1781

I'm using CentOS Linux release 7.9.2009 without root privilege, cmake 3.20.3, gcc 9.3.0, and python 3.7.9 are loaded through module-environment. I tried to install libvpx through shell script https://github.com/innerlee/setup/blob/master/zzlibvpx.sh, after i executed make, error occurred as follow,
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vpx_scale/vpx_scale_rtcd.c.o: in function `vpx_scale_rtcd':
vpx_scale_rtcd.c:(.text.vpx_scale_rtcd+0x10): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vpx_dsp/vpx_dsp_rtcd.c.o: in function `vpx_dsp_rtcd':
vpx_dsp_rtcd.c:(.text.vpx_dsp_rtcd+0x10): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vpx_util/vpx_thread.c.o: in function `reset':
vpx_thread.c:(.text.reset+0xdb): undefined reference to `pthread_create'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vpx_util/vpx_thread.c.o: in function `end':
vpx_thread.c:(.text.end+0x60): undefined reference to `pthread_join'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/common/rtcd.c.o: in function `vp8_rtcd':
rtcd.c:(.text.vp8_rtcd+0x10): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/common/reconintra.c.o: in function `vp8_init_intra_predictors':
reconintra.c:(.text.vp8_init_intra_predictors+0x10): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/encodeframe.c.o: in function `vp8_encode_frame':
encodeframe.c:(.text.vp8_encode_frame+0x44e): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: encodeframe.c:(.text.vp8_encode_frame+0x5b4): undefined reference to `sem_wait'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/ethreading.c.o: in function `thread_loopfilter':
ethreading.c:(.text.thread_loopfilter+0x35): undefined reference to `sem_wait'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.thread_loopfilter+0x6c): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/ethreading.c.o: in function `thread_encoding_proc':
ethreading.c:(.text.thread_encoding_proc+0x86): undefined reference to `sem_wait'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.thread_encoding_proc+0x802): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/ethreading.c.o: in function `vp8cx_create_encoder_threads':
ethreading.c:(.text.vp8cx_create_encoder_threads+0x1ae): undefined reference to `sem_init'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x1c7): undefined reference to `sem_init'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x1f8): undefined reference to `pthread_create'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x24b): undefined reference to `pthread_join'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x25b): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x26f): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x30f): undefined reference to `sem_init'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x31c): undefined reference to `sem_init'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x340): undefined reference to `pthread_create'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x370): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x380): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x397): undefined reference to `pthread_join'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x3a7): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x3bb): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x3c9): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x3d2): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x4f7): undefined reference to `sem_init'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x504): undefined reference to `sem_init'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_create_encoder_threads+0x528): undefined reference to `pthread_create'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/ethreading.c.o: in function `vp8cx_remove_encoder_threads':
ethreading.c:(.text.vp8cx_remove_encoder_threads+0x58): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_remove_encoder_threads+0x68): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_remove_encoder_threads+0x7f): undefined reference to `pthread_join'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_remove_encoder_threads+0x8f): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_remove_encoder_threads+0x9f): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_remove_encoder_threads+0xb8): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_remove_encoder_threads+0xc7): undefined reference to `pthread_join'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_remove_encoder_threads+0xd4): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ethreading.c:(.text.vp8cx_remove_encoder_threads+0xdd): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/onyx_if.c.o: in function `vp8_initialize_enc':
onyx_if.c:(.text.vp8_initialize_enc+0x10): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/onyx_if.c.o: in function `vp8_loopfilter_frame':
onyx_if.c:(.text.vp8_loopfilter_frame+0xc9): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/onyx_if.c.o: in function `encode_frame_to_data_rate':
onyx_if.c:(.text.encode_frame_to_data_rate+0xfcf): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: onyx_if.c:(.text.encode_frame_to_data_rate+0xfe6): undefined reference to `sem_wait'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/encoder/onyx_if.c.o: in function `vp8_get_compressed_data':
onyx_if.c:(.text.vp8_get_compressed_data+0x3f5): undefined reference to `sem_wait'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/decoder/onyxd_if.c.o: in function `create_decompressor.isra.1':
onyxd_if.c:(.text.create_decompressor.isra.1+0xfc): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/decoder/threading.c.o: in function `mt_decode_mb_rows':
threading.c:(.text.mt_decode_mb_rows+0x16a1): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/decoder/threading.c.o: in function `thread_decoding_proc':
threading.c:(.text.thread_decoding_proc+0x6d): undefined reference to `sem_wait'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.thread_decoding_proc+0xbe): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/decoder/threading.c.o: in function `vp8_decoder_create_threads':
threading.c:(.text.vp8_decoder_create_threads+0x114): undefined reference to `sem_init'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8_decoder_create_threads+0x1a6): undefined reference to `pthread_create'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8_decoder_create_threads+0x1db): undefined reference to `sem_init'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8_decoder_create_threads+0x2fc): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8_decoder_create_threads+0x317): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/decoder/threading.c.o: in function `vp8_decoder_remove_threads':
threading.c:(.text.vp8_decoder_remove_threads+0x41): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8_decoder_remove_threads+0x58): undefined reference to `pthread_join'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8_decoder_remove_threads+0x83): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8_decoder_remove_threads+0x119): undefined reference to `sem_destroy'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp8/decoder/threading.c.o: in function `vp8mt_decode_mb_rows':
threading.c:(.text.vp8mt_decode_mb_rows+0x487): undefined reference to `sem_post'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8mt_decode_mb_rows+0x4e8): undefined reference to `sem_wait'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: threading.c:(.text.vp8mt_decode_mb_rows+0x560): undefined reference to `sem_wait'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9/common/vp9_rtcd.c.o: in function `vp9_rtcd':
vp9_rtcd.c:(.text.vp9_rtcd+0x10): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9/common/vp9_thread_common.c.o: in function `loop_filter_row_worker':
vp9_thread_common.c:(.text.loop_filter_row_worker+0x25e): undefined reference to `pthread_mutex_trylock'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9_thread_common.c:(.text.loop_filter_row_worker+0x376): undefined reference to `pthread_mutex_trylock'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9/common/vp9_thread_common.c.o: in function `vp9_loopfilter_rows':
vp9_thread_common.c:(.text.vp9_loopfilter_rows+0x36e): undefined reference to `pthread_mutex_trylock'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9_thread_common.c:(.text.vp9_loopfilter_rows+0x476): undefined reference to `pthread_mutex_trylock'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9/common/vp9_thread_common.c.o: in function `vp9_loopfilter_job':
vp9_thread_common.c:(.text.vp9_loopfilter_job+0x25e): undefined reference to `pthread_mutex_trylock'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9/common/vp9_thread_common.c.o:vp9_thread_common.c:(.text.vp9_loopfilter_job+0x366): more undefined references to `pthread_mutex_trylock' follow
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9/common/vp9_reconintra.c.o: in function `vp9_init_intra_predictors':
vp9_reconintra.c:(.text.vp9_init_intra_predictors+0x10): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9/encoder/vp9_encoder.c.o: in function `vp9_initialize_enc':
vp9_encoder.c:(.text.vp9_initialize_enc+0x10): undefined reference to `pthread_once'
/public/software/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: vp9/decoder/vp9_decoder.c.o: in function `vp9_decoder_create':
vp9_decoder.c:(.text.vp9_decoder_create+0x102): undefined reference to `pthread_once'
collect2: error: ld returned 1 exit status
make[1]: *** [libvpx.so.7.1.0] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [.DEFAULT] Error 2
---
I tried to modify the Makefile, adding -lpthread or -pthread, but it didn't work.

--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

jz… via monorail

unread,
Oct 12, 2022, 6:22:36 PM10/12/22
to webm-d...@webmproject.org

Comment #1 on issue 1781 by jz...@google.com: libvpx make error in Centos 7.9
https://bugs.chromium.org/p/webm/issues/detail?id=1781#c1

Issue 1782 has been merged into this issue.

jz… via monorail

unread,
Oct 12, 2022, 6:27:14 PM10/12/22
to webm-d...@webmproject.org
Updates:
Labels: Needs-Feedback

Comment #2 on issue 1781 by jz...@google.com: libvpx make error in Centos 7.9
https://bugs.chromium.org/p/webm/issues/detail?id=1781#c2

Can you add your modified configure line used and run make with V=1 (make -j V=1)? That will help by showing the command lines. You might also want to update the script, the 'master' branch was renamed to 'main', so you're working off an older snapshot.

DOWNLOADURL="https://chromium.googlesource.com/webm/libvpx.git/+archive/refs/heads/master.tar.gz"
should be:
DOWNLOADURL="https://chromium.googlesource.com/webm/libvpx.git/+archive/refs/heads/main.tar.gz"

jz… via monorail

unread,
Oct 12, 2022, 6:27:50 PM10/12/22
to webm-d...@webmproject.org

Comment #3 on issue 1781 by jz...@google.com: libvpx make error in Centos 7.9
https://bugs.chromium.org/p/webm/issues/detail?id=1781#c3

If you can attach config.log as well that would help to diagnose the issue.

yxluk… via monorail

unread,
Oct 12, 2022, 10:00:30 PM10/12/22
to webm-d...@webmproject.org

Comment #4 on issue 1781 by yxluk...@gmail.com: libvpx make error in Centos 7.9
https://bugs.chromium.org/p/webm/issues/detail?id=1781#c4

I read the config.log, the problem was somehow related to my anaconda, I changed my anaconda environment and ran make again, it worked well, thanks for the enlightenment!

Attachments:
config.log 42.0 KB

jz… via monorail

unread,
Oct 13, 2022, 6:55:33 PM10/13/22
to webm-d...@webmproject.org

Comment #5 on issue 1781 by jz...@google.com: libvpx make error in Centos 7.9
https://bugs.chromium.org/p/webm/issues/detail?id=1781#c5

Thanks for the update.

I see:
check_header pthread.h
check_cpp
BEGIN /tmp/vpx-conf-26173-11805.c
1 #include "pthread.h"
2 int x;
END /tmp/vpx-conf-26173-11805.c
/public/software/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -fPIC -m64 -DNDEBUG -O3 -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -E -o /tmp/vpx-conf-26173-11805.o /tmp/vpx-conf-26173-11805.c
check_cc -lpthread
BEGIN /tmp/vpx-conf-26173-11805.c
1 #include <pthread.h>
2 #include <stddef.h>
3 int main(void) { return pthread_create(NULL, NULL, NULL, NULL); }
END /tmp/vpx-conf-26173-11805.c
/public/software/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -fPIC -m64 -DNDEBUG -O3 -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -lpthread -c -o /tmp/vpx-conf-26173-11805.o /tmp/vpx-conf-26173-11805.c
/public/software/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/public/software/anaconda3/lib -Wl,-rpath-link,/public/software/anaconda3/lib -L/public/software/anaconda3/lib -m64 -o /tmp/vpx-conf-26173-11805.x /tmp/vpx-conf-26173-11805.o -lpthread
/public/software/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld: unrecognised emulation mode: 64
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om

I'm assuming vpx_config.h defined HAVE_PTHREAD_H in that case, which would be a bug. Can you confirm that if you still have a way to reproduce the issue?

yxluk… via monorail

unread,
Oct 16, 2022, 10:33:10 PM10/16/22
to webm-d...@webmproject.org

Comment #6 on issue 1781 by yxluk...@gmail.com: libvpx make error in Centos 7.9
https://bugs.chromium.org/p/webm/issues/detail?id=1781#c6

Sorry for my late reply, I checked the vpx_config.h where did have
defined HAVE_PTHREAD_H
as 1, I switched my conda environment to base, and ran conda list to check
the installed package,
[image: Tabby_FD3Dod41uN.png]
I don't know why my base environment has gcc, but I would say it probably
has something to do with the error, this issue showed up again as I ran
configure->make under the base environment.
After I switched to my other conda environment which does not have gcc
package and ran make, it worked out fine, in this case, the make is running
with system gcc instead of conda gcc.

jz… via monorail <monorail+v2.267...@chromium.org> 于2022年10月14日周五
06:55写道:

jz… via monorail

unread,
Oct 21, 2022, 1:45:41 PM10/21/22
to webm-d...@webmproject.org

Comment #7 on issue 1781 by jz...@google.com: libvpx make error in Centos 7.9
https://bugs.chromium.org/p/webm/issues/detail?id=1781#c7

Thanks for the update, I don't think the image came through, but from what I understand, the base image is Centos 7.9 with gcc installed, correct? I'm not familiar with working with conda, but maybe something similar can be reproduced with qemu.
Reply all
Reply to author
Forward
0 new messages