error: macro "atomic_compare_exchange_weak_explicit" passed 5 arguments, but takes just 4

Bug #1378761 reported by Leo Iannacone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.9 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hello,

trying to compile this vlc plugin [0] I get this error in utopic:

$ make

gcc -pipe -O2 -Wall -Wextra -std=gnu99 -I. -g -DMODULE_STRING=\"htsp\" -DVLC_PLUGIN_MAJOR=2 -DVLC_PLUGIN_MINOR=2 -D__PLUGIN__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -I/usr/include/vlc/plugins -DPIC -fPIC -c sha1.c
g++ -pipe -O2 -Wall -Wextra -std=gnu++0x -I. -g -DMODULE_STRING=\"htsp\" -DVLC_PLUGIN_MAJOR=2 -DVLC_PLUGIN_MINOR=2 -D__PLUGIN__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -I/usr/include/vlc/plugins -DPIC -fPIC -c vlc-htsp-plugin.cpp
g++ -pipe -O2 -Wall -Wextra -std=gnu++0x -I. -g -DMODULE_STRING=\"htsp\" -DVLC_PLUGIN_MAJOR=2 -DVLC_PLUGIN_MINOR=2 -D__PLUGIN__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -I/usr/include/vlc/plugins -DPIC -fPIC -c htsmessage.cpp
g++ -pipe -O2 -Wall -Wextra -std=gnu++0x -I. -g -DMODULE_STRING=\"htsp\" -DVLC_PLUGIN_MAJOR=2 -DVLC_PLUGIN_MINOR=2 -D__PLUGIN__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -I/usr/include/vlc/plugins -DPIC -fPIC -c helper.cpp
g++ -pipe -O2 -Wall -Wextra -std=gnu++0x -I. -g -DMODULE_STRING=\"htsp\" -DVLC_PLUGIN_MAJOR=2 -DVLC_PLUGIN_MINOR=2 -D__PLUGIN__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -I/usr/include/vlc/plugins -DPIC -fPIC -c access.cpp
In file included from access.cpp:33:0:
/usr/include/c++/4.9/atomic:864:25: error: macro "atomic_compare_exchange_weak_explicit" passed 5 arguments, but takes just 4
        memory_order __m2) noexcept
                         ^
/usr/include/c++/4.9/atomic:872:25: error: macro "atomic_compare_exchange_weak_explicit" passed 5 arguments, but takes just 4
        memory_order __m2) noexcept
                         ^
/usr/include/c++/4.9/atomic:880:27: error: macro "atomic_compare_exchange_strong_explicit" passed 5 arguments, but takes just 4
          memory_order __m2) noexcept
                           ^
/usr/include/c++/4.9/atomic:888:27: error: macro "atomic_compare_exchange_strong_explicit" passed 5 arguments, but takes just 4
          memory_order __m2) noexcept
                           ^
/usr/include/c++/4.9/atomic:929:30: error: macro "atomic_compare_exchange_weak_explicit" passed 5 arguments, but takes just 4
          memory_order_seq_cst);
                              ^
/usr/include/c++/4.9/atomic:939:30: error: macro "atomic_compare_exchange_weak_explicit" passed 5 arguments, but takes just 4
          memory_order_seq_cst);
                              ^
/usr/include/c++/4.9/atomic:949:32: error: macro "atomic_compare_exchange_strong_explicit" passed 5 arguments, but takes just 4
            memory_order_seq_cst);
                                ^
/usr/include/c++/4.9/atomic:959:32: error: macro "atomic_compare_exchange_strong_explicit" passed 5 arguments, but takes just 4
            memory_order_seq_cst);
                                ^
In file included from /usr/include/c++/4.9/atomic:41:0,
                 from access.cpp:33:
/usr/include/c++/4.9/bits/atomic_base.h: In function ‘void std::__sync_synchronize()’:
/usr/include/c++/4.9/bits/atomic_base.h:103:27: error: ‘__m’ was not declared in this scope
   { __atomic_thread_fence(__m); }
                           ^
In file included from /usr/include/vlc/plugins/vlc_picture.h:35:0,
                 from /usr/include/vlc/plugins/vlc_subpicture.h:34,
                 from /usr/include/vlc/plugins/vlc_spu.h:29,
                 from /usr/include/vlc/plugins/vlc_vout_osd.h:29,
                 from /usr/include/vlc/plugins/vlc_input.h:39,
                 from access.cpp:28:
/usr/include/c++/4.9/bits/atomic_base.h: At global scope:
/usr/include/vlc/plugins/vlc_atomic.h:51:7: error: expected unqualified-id before ‘void’
     ((void)0)
       ^
/usr/include/vlc/plugins/vlc_atomic.h:51:7: error: expected ‘)’ before ‘void’
/usr/include/vlc/plugins/vlc_atomic.h:51:7: error: expected ‘)’ before ‘void’
/usr/include/vlc/plugins/vlc_atomic.h:45:7: error: expected unqualified-id before ‘void’
     ((void)0)
       ^
/usr/include/vlc/plugins/vlc_atomic.h:45:7: error: expected ‘)’ before ‘void’
/usr/include/vlc/plugins/vlc_atomic.h:45:7: error: expected ‘)’ before ‘void’
/usr/include/vlc/plugins/vlc_atomic.h:132:2: error: expected unqualified-id before ‘{’ token
 ({ \
  ^
/usr/include/vlc/plugins/vlc_atomic.h:132:2: error: expected ‘)’ before ‘{’ token
/usr/include/vlc/plugins/vlc_atomic.h:139:2: error: expected unqualified-id before ‘)’ token
 })
  ^
/usr/include/vlc/plugins/vlc_atomic.h:132:2: error: expected unqualified-id before ‘{’ token
 ({ \
  ^
/usr/include/vlc/plugins/vlc_atomic.h:132:2: error: expected ‘)’ before ‘{’ token
/usr/include/vlc/plugins/vlc_atomic.h:139:2: error: expected unqualified-id before ‘)’ token
 })
  ^
/usr/include/vlc/plugins/vlc_atomic.h:117:5: error: expected unqualified-id before ‘do’
     do { \
     ^
/usr/include/vlc/plugins/vlc_atomic.h:120:7: error: expected unqualified-id before ‘while’
     } while (0)
       ^
/usr/include/vlc/plugins/vlc_atomic.h:117:5: error: expected unqualified-id before ‘do’
     do { \
     ^
/usr/include/vlc/plugins/vlc_atomic.h:120:7: error: expected unqualified-id before ‘while’
     } while (0)
       ^
/usr/include/vlc/plugins/vlc_atomic.h:132:2: error: expected unqualified-id before ‘{’ token
 ({ \
  ^
/usr/include/vlc/plugins/vlc_atomic.h:132:2: error: expected ‘)’ before ‘{’ token
/usr/include/vlc/plugins/vlc_atomic.h:139:2: error: expected unqualified-id before ‘)’ token
 })
  ^
In file included from /usr/include/c++/4.9/bits/ostream_insert.h:36:0,
                 from /usr/include/c++/4.9/string:44,
                 from helper.h:23,
                 from access.cpp:36:
/usr/include/c++/4.9/bits/cxxabi_forced.h:36:37: error: expected ‘}’ before end of line
 #pragma GCC visibility push(default)
                                     ^
/usr/include/c++/4.9/bits/cxxabi_forced.h:36:37: error: expected declaration before end of line
make: *** [access.o] Error 1
Makefile:50: recipe for target 'access.o' failed

[0] - https://github.com/BtbN/vlc-htsp-plugin

Revision history for this message
Matthias Klose (doko) wrote :

you should attach the preprocessed source.

Changed in gcc-4.9 (Ubuntu):
status: New → Incomplete
Revision history for this message
Leo Iannacone (l3on) wrote : Re: [Bug 1378761] Re: error: macro "atomic_compare_exchange_weak_explicit" passed 5 arguments, but takes just 4

Hi Matthias,

what do you mean exactly with "preprocessed" ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gcc-4.9 (Ubuntu) because there has been no activity for 60 days.]

Changed in gcc-4.9 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.