[Bug 1378761] [NEW] error: macro "atomic_compare_exchange_weak_explicit" passed 5 arguments, but takes just 4

Leo Iannacone l3on at ubuntu.com
Wed Oct 8 10:56:39 UTC 2014


Public bug reported:

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

** Affects: gcc-4.9 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.9 in Ubuntu.
https://bugs.launchpad.net/bugs/1378761

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

Status in “gcc-4.9” package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1378761/+subscriptions



More information about the foundations-bugs mailing list