Suvarna1488 / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

Compilation fails on MinGW #899

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to compile libvpx using: 
https://github.com/jb-alvarado/media-autobuild_suite a lot of warnings a thrown 
and and error:

-----------------------------------------------------
...
    [CC] vp8/encoder/firstpass.c.o
In file included from vp8/encoder/onyx_int.h:25:0,
                 from vp8/encoder/encodemb.h:15,
                 from vp8/encoder/encodeframe.c:14:
vp8/encoder/encodeframe.c: In function 'vp8_encode_frame':
./vp8/common/threading.h:89:23: warning: value computed is not used 
[-Wunused-value]
 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
                       ^
vp8/encoder/encodeframe.c:865:13: note: in expansion of macro 'sem_wait'
             sem_wait(&cpi->h_event_end_encoding); /* wait for other threads to finish */
             ^
    [CC] vp8/encoder/denoising.c.o
In file included from vp8/encoder/onyx_int.h:25:0,
                 from vp8/encoder/ethreading.c:11:
vp8/encoder/ethreading.c: In function 'vp8cx_create_encoder_threads':
./vp8/common/threading.h:88:50: warning: value computed is not used 
[-Wunused-value]
 #define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
                                                  ^
vp8/encoder/ethreading.c:554:9: note: in expansion of macro 'sem_init'
         sem_init(&cpi->h_event_end_encoding, 0, 0);
         ^
./vp8/common/threading.h:88:50: warning: value computed is not used 
[-Wunused-value]
 #define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
                                                  ^
vp8/encoder/ethreading.c:572:13: note: in expansion of macro 'sem_init'
             sem_init(&cpi->h_event_start_encoding[ithread], 0, 0);
             ^
./vp8/common/threading.h:32:98: warning: value computed is not used 
[-Wunused-value]
 #define pthread_join(thread, result) ((WaitForSingleObject((thread),INFINITE)!=WAIT_OBJECT_0) || !CloseHandle(thread))
                                                                                                  ^
vp8/encoder/ethreading.c:590:17: note: in expansion of macro 'pthread_join'
                 pthread_join(cpi->h_encoding_thread[ithread], 0);
                 ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:591:17: note: in expansion of macro 'sem_destroy'
                 sem_destroy(&cpi->h_event_start_encoding[ithread]);
                 ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:593:13: note: in expansion of macro 'sem_destroy'
             sem_destroy(&cpi->h_event_end_encoding);
             ^
./vp8/common/threading.h:88:50: warning: value computed is not used 
[-Wunused-value]
 #define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
                                                  ^
vp8/encoder/ethreading.c:608:13: note: in expansion of macro 'sem_init'
             sem_init(&cpi->h_event_start_lpf, 0, 0);
             ^
./vp8/common/threading.h:88:50: warning: value computed is not used 
[-Wunused-value]
 #define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
                                                  ^
vp8/encoder/ethreading.c:609:13: note: in expansion of macro 'sem_init'
             sem_init(&cpi->h_event_end_lpf, 0, 0);
             ^
./vp8/common/threading.h:32:98: warning: value computed is not used 
[-Wunused-value]
 #define pthread_join(thread, result) ((WaitForSingleObject((thread),INFINITE)!=WAIT_OBJECT_0) || !CloseHandle(thread))
                                                                                                  ^
vp8/encoder/ethreading.c:622:21: note: in expansion of macro 'pthread_join'
                     pthread_join(cpi->h_encoding_thread[ithread], 0);
                     ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:623:21: note: in expansion of macro 'sem_destroy'
                     sem_destroy(&cpi->h_event_start_encoding[ithread]);
                     ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:625:17: note: in expansion of macro 'sem_destroy'
                 sem_destroy(&cpi->h_event_end_encoding);
                 ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:626:17: note: in expansion of macro 'sem_destroy'
                 sem_destroy(&cpi->h_event_end_lpf);
                 ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:627:17: note: in expansion of macro 'sem_destroy'
                 sem_destroy(&cpi->h_event_start_lpf);
                 ^
vp8/encoder/ethreading.c: In function 'vp8cx_remove_encoder_threads':
./vp8/common/threading.h:32:98: warning: value computed is not used 
[-Wunused-value]
 #define pthread_join(thread, result) ((WaitForSingleObject((thread),INFINITE)!=WAIT_OBJECT_0) || !CloseHandle(thread))
                                                                                                  ^
vp8/encoder/ethreading.c:654:17: note: in expansion of macro 'pthread_join'
                 pthread_join(cpi->h_encoding_thread[i], 0);
                 ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:656:17: note: in expansion of macro 'sem_destroy'
                 sem_destroy(&cpi->h_event_start_encoding[i]);
                 ^
./vp8/common/threading.h:32:98: warning: value computed is not used 
[-Wunused-value]
 #define pthread_join(thread, result) ((WaitForSingleObject((thread),INFINITE)!=WAIT_OBJECT_0) || !CloseHandle(thread))
                                                                                                  ^
vp8/encoder/ethreading.c:660:13: note: in expansion of macro 'pthread_join'
             pthread_join(cpi->h_filter_thread, 0);
             ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:663:9: note: in expansion of macro 'sem_destroy'
         sem_destroy(&cpi->h_event_end_encoding);
         ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:664:9: note: in expansion of macro 'sem_destroy'
         sem_destroy(&cpi->h_event_end_lpf);
         ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/encoder/ethreading.c:665:9: note: in expansion of macro 'sem_destroy'
         sem_destroy(&cpi->h_event_start_lpf);
         ^
    [CC] vp8/encoder/lookahead.c.o
    [CC] vp8/encoder/mcomp.c.o
    [CC] vp8/encoder/modecosts.c.o
    [CC] vp8/encoder/onyx_if.c.o
    [CC] vp8/encoder/pickinter.c.o
    [CC] vp8/encoder/picklpf.c.o
    [CC] vp8/encoder/quantize.c.o
    [CC] vp8/encoder/ratectrl.c.o
    [CC] vp8/encoder/rdopt.c.o
In file included from vp8/encoder/onyx_int.h:25:0,
                 from vp8/encoder/onyx_if.c:16:
vp8/encoder/onyx_if.c: In function 'vp8_change_config':
./vp8/common/threading.h:89:23: warning: value computed is not used 
[-Wunused-value]
 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
                       ^
vp8/encoder/onyx_if.c:1542:9: note: in expansion of macro 'sem_wait'
         sem_wait(&cpi->h_event_end_lpf);
         ^
vp8/encoder/onyx_if.c: In function 'encode_frame_to_data_rate':
./vp8/common/threading.h:89:23: warning: value computed is not used 
[-Wunused-value]
 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
                       ^
vp8/encoder/onyx_if.c:3638:9: note: in expansion of macro 'sem_wait'
         sem_wait(&cpi->h_event_end_lpf);
         ^
./vp8/common/threading.h:89:23: warning: value computed is not used 
[-Wunused-value]
 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
                       ^
vp8/encoder/onyx_if.c:4855:9: note: in expansion of macro 'sem_wait'
         sem_wait(&cpi->h_event_end_lpf);
         ^
./vp8/common/threading.h:89:23: warning: value computed is not used 
[-Wunused-value]
 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
                       ^
vp8/encoder/onyx_if.c:4865:9: note: in expansion of macro 'sem_wait'
         sem_wait(&cpi->h_event_end_lpf);
         ^
vp8/encoder/onyx_if.c: In function 'vp8_get_preview_raw_frame':
./vp8/common/threading.h:89:23: warning: value computed is not used 
[-Wunused-value]
 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
                       ^
vp8/encoder/onyx_if.c:5825:13: note: in expansion of macro 'sem_wait'
             sem_wait(&cpi->h_event_end_lpf);
             ^
    [CC] vp8/encoder/segmentation.c.o
    [CC] vp8/encoder/tokenize.c.o
    [CC] vp8/encoder/treewriter.c.o
    [CC] vp8/encoder/temporal_filter.c.o
    [CC] vp8/encoder/x86/vp8_enc_stubs_mmx.c.o
    [CC] vp8/encoder/x86/quantize_sse2.c.o
    [CC] vp8/encoder/x86/quantize_ssse3.c.o
    [CC] vp8/encoder/x86/quantize_sse4.c.o
    [CC] vp8/encoder/x86/denoising_sse2.c.o
    [CC] vp8/encoder/x86/vp8_enc_stubs_sse2.c.o
    [CC] vp8/vp8_dx_iface.c.o
    [CC] vp8/decoder/dboolhuff.c.o
    [CC] vp8/decoder/decodemv.c.o
    [CC] vp8/decoder/decodeframe.c.o
    [CC] vp8/decoder/detokenize.c.o
    [CC] vp8/decoder/onyxd_if.c.o
    [CC] vp8/decoder/threading.c.o
    [CC] vp9/common/vp9_alloccommon.c.o
    [CC] vp9/common/vp9_blockd.c.o
vp9/common/vp9_alloccommon.c: In function 'vp9_alloc_ref_frame_buffers':
vp9/common/vp9_alloccommon.c:133:7: error: too few arguments to function 
'vp9_alloc_frame_buffer'
   if (vp9_alloc_frame_buffer(&cm->post_proc_buffer, width, height, ss_x, ss_y,
       ^
In file included from ./vp9/common/vp9_blockd.h:18:0,
                 from vp9/common/vp9_alloccommon.c:14:
./vpx_scale/yv12config.h:71:5: note: declared here
 int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
     ^
Makefile:148: recipe for target 'vp9/common/vp9_alloccommon.c.o' failed
make[1]: *** [vp9/common/vp9_alloccommon.c.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from vp8/decoder/onyxd_int.h:19:0,
                 from vp8/decoder/threading.c:17:
vp8/decoder/threading.c: In function 'vp8_decoder_create_threads':
./vp8/common/threading.h:88:50: warning: value computed is not used 
[-Wunused-value]
 #define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
                                                  ^
vp8/decoder/threading.c:677:13: note: in expansion of macro 'sem_init'
             sem_init(&pbi->h_event_start_decoding[ithread], 0, 0);
             ^
In file included from vp8/decoder/onyxd_int.h:19:0,
                 from vp8/decoder/threading.c:17:
./vp8/common/threading.h:31:52: warning: value computed is not used 
[-Wunused-value]
 #define pthread_create(thhandle,attr,thfunc,tharg) (int)((*thhandle=(HANDLE)_beginthreadex(NULL,0,(unsigned int (__stdc                                                                                 all *)(void *))thfunc,tharg,0,NULL))==NULL)
                                                    ^
vp8/decoder/threading.c:685:13: note: in expansion of macro 'pthread_create'
             pthread_create(&pbi->h_decoding_thread[ithread], 0, thread_decoding_proc, (&pbi->de_thread_data[ithread]));
             ^
In file included from vp8/decoder/onyxd_int.h:19:0,
                 from vp8/decoder/threading.c:17:
./vp8/common/threading.h:88:50: warning: value computed is not used 
[-Wunused-value]
 #define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
                                                  ^
vp8/decoder/threading.c:688:9: note: in expansion of macro 'sem_init'
         sem_init(&pbi->h_event_end_decoding, 0, 0);
         ^
vp8/decoder/threading.c: In function 'vp8_decoder_remove_threads':
./vp8/common/threading.h:32:98: warning: value computed is not used 
[-Wunused-value]
 #define pthread_join(thread, result) ((WaitForSingleObject((thread),INFINITE)!=WAIT_OBJECT_0) || !CloseHandle(thread))
                                                                                                  ^
vp8/decoder/threading.c:841:13: note: in expansion of macro 'pthread_join'
             pthread_join(pbi->h_decoding_thread[i], NULL);
             ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/decoder/threading.c:846:13: note: in expansion of macro 'sem_destroy'
             sem_destroy(&pbi->h_event_start_decoding[i]);
             ^
./vp8/common/threading.h:91:59: warning: value computed is not used 
[-Wunused-value]
 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
                                                           ^
vp8/decoder/threading.c:849:9: note: in expansion of macro 'sem_destroy'
         sem_destroy(&pbi->h_event_end_decoding);
         ^
vp8/decoder/threading.c: In function 'vp8mt_decode_mb_rows':
./vp8/common/threading.h:89:23: warning: value computed is not used 
[-Wunused-value]
 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
                       ^
vp8/decoder/threading.c:909:5: note: in expansion of macro 'sem_wait'
     sem_wait(&pbi->h_event_end_decoding);   /* add back for each frame */
     ^
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2
    [CC] vp9/common/vp9_alloccommon.c.o
vp9/common/vp9_alloccommon.c: In function 'vp9_alloc_ref_frame_buffers':
vp9/common/vp9_alloccommon.c:133:7: error: too few arguments to function 
'vp9_alloc_frame_buffer'
   if (vp9_alloc_frame_buffer(&cm->post_proc_buffer, width, height, ss_x, ss_y,
       ^
In file included from ./vp9/common/vp9_blockd.h:18:0,
                 from vp9/common/vp9_alloccommon.c:14:
./vpx_scale/yv12config.h:71:5: note: declared here
 int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
     ^
Makefile:148: recipe for target 'vp9/common/vp9_alloccommon.c.o' failed
make[1]: *** [vp9/common/vp9_alloccommon.c.o] Error 1
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2
mv: cannot stat ‘/local32/bin/vpxdec.exe’: No such file or directory
mv: cannot stat ‘/local32/bin/vpxenc.exe’: No such file or directory
-------------------------------------------------
build libvpx-git failed...

-----------------------------------------------------

Hope this can be resolved quickly.

Original issue reported on code.google.com by 4Se...@gmail.com on 14 Dec 2014 at 8:03

GoogleCodeExporter commented 9 years ago
64bit builds fails the same way:

    [CC] vp9/common/vp9_debugmodes.c.o
vp9/common/vp9_alloccommon.c: In function 'vp9_alloc_ref_frame_buffers':
vp9/common/vp9_alloccommon.c:133:7: error: too few arguments to function 
'vp9_alloc_frame_buffer'
   if (vp9_alloc_frame_buffer(&cm->post_proc_buffer, width, height, ss_x, ss_y,
       ^
In file included from ./vp9/common/vp9_blockd.h:18:0,
                 from vp9/common/vp9_alloccommon.c:14:
./vpx_scale/yv12config.h:71:5: note: declared here
 int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
     ^
Makefile:148: recipe for target 'vp9/common/vp9_alloccommon.c.o' failed
make[1]: *** [vp9/common/vp9_alloccommon.c.o] Error 1
make[1]: *** Waiting for unfinished jobs....
    [CC] vp9/common/vp9_entropy.c.o
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2
    [CC] vp9/common/vp9_alloccommon.c.o
vp9/common/vp9_alloccommon.c: In function 'vp9_alloc_ref_frame_buffers':
vp9/common/vp9_alloccommon.c:133:7: error: too few arguments to function 
'vp9_alloc_frame_buffer'
   if (vp9_alloc_frame_buffer(&cm->post_proc_buffer, width, height, ss_x, ss_y,
       ^
In file included from ./vp9/common/vp9_blockd.h:18:0,
                 from vp9/common/vp9_alloccommon.c:14:
./vpx_scale/yv12config.h:71:5: note: declared here
 int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf,
     ^
Makefile:148: recipe for target 'vp9/common/vp9_alloccommon.c.o' failed
make[1]: *** [vp9/common/vp9_alloccommon.c.o] Error 1
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2

Original comment by 4Se...@gmail.com on 15 Dec 2014 at 8:45

GoogleCodeExporter commented 9 years ago
I believe this revert fixes your issue. Please let us know if it doesn't.
https://gerrit.chromium.org/gerrit/#/c/73257/

In the future please include your 'configure' line (or the first line of 
config.log) so we can make sure.

Original comment by johannko...@google.com on 15 Dec 2014 at 6:09