Latest Cygwin with GCC 7.4.0 compiler
In file included from /cygdrive/c/projects/cppserialization/modules/protobuf/src/google/protobuf/stubs/port.h:49:0,
from /cygdrive/c/projects/cppserialization/modules/protobuf/src/google/protobuf/stubs/common.h:46,
from /cygdrive/c/projects/cppserialization/modules/protobuf/src/google/protobuf/any.h:36,
from /cygdrive/c/projects/cppserialization/modules/protobuf/src/google/protobuf/any_lite.cc:31:
/cygdrive/c/projects/cppserialization/modules/protobuf/src/google/protobuf/port_def.inc:516:42: error: expected primary-expression before ‘__attribute__’
PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
^
/cygdrive/c/projects/cppserialization/modules/protobuf/src/google/protobuf/port_def.inc:433:46: note: in definition of macro ‘PROTOBUF_EXPORT_TEMPLATE_INVOKE_2’
PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
^~~~~~
/cygdrive/c/projects/cppserialization/modules/protobuf/src/google/protobuf/port_def.inc:508:17: note: in expansion of macro ‘PROTOBUF_EXPORT_TEMPLATE_INVOKE’
static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cygdrive/c/projects/cppserialization/modules/protobuf/src/google/protobuf/port_def.inc:516:1: note: in expansion of macro ‘PROTOBUF_EXPORT_TEMPLATE_TEST’
PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Same thing happening to me. My system:
$ uname -a
MINGW64_NT-10.0-17763 XXXX 3.0.7-338.x86_64 2019-07-11 10:58 UTC x86_64 Msys
$ make
make all-recursive
make[1]: Entering directory '/d/protobuf'
Making all in .
make[2]: Entering directory '/d/protobuf'
make[2]: Leaving directory '/d/protobuf'
Making all in src
make[2]: Entering directory '/d/protobuf/src'
CXX google/protobuf/compiler/main.o
In file included from ./google/protobuf/stubs/port.h:43,
from ./google/protobuf/stubs/common.h:46,
from ./google/protobuf/compiler/code_generator.h:44,
from ./google/protobuf/compiler/cpp/cpp_generator.h:41,
from google/protobuf/compiler/main.cc:33:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/stubs/common.h:71,
from ./google/protobuf/compiler/code_generator.h:44,
from ./google/protobuf/compiler/cpp/cpp_generator.h:41,
from google/protobuf/compiler/main.cc:33:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/code_generator.h:46,
from ./google/protobuf/compiler/cpp/cpp_generator.h:41,
from google/protobuf/compiler/main.cc:33:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/cpp/cpp_generator.h:43,
from google/protobuf/compiler/main.cc:33:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/java/java_generator.h:43,
from google/protobuf/compiler/main.cc:34:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/stubs/logging.h:37,
from ./google/protobuf/compiler/js/js_generator.h:39,
from google/protobuf/compiler/main.cc:35:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/stubs/mutex.h:62,
from ./google/protobuf/descriptor.h:64,
from ./google/protobuf/compiler/scc.h:38,
from ./google/protobuf/compiler/js/js_generator.h:41,
from google/protobuf/compiler/main.cc:35:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/stubs/once.h:37,
from ./google/protobuf/descriptor.h:65,
from ./google/protobuf/compiler/scc.h:38,
from ./google/protobuf/compiler/js/js_generator.h:41,
from google/protobuf/compiler/main.cc:35:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/descriptor.h:66,
from ./google/protobuf/compiler/scc.h:38,
from ./google/protobuf/compiler/js/js_generator.h:41,
from google/protobuf/compiler/main.cc:35:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/scc.h:40,
from ./google/protobuf/compiler/js/js_generator.h:41,
from google/protobuf/compiler/main.cc:35:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/js/js_generator.h:44,
from google/protobuf/compiler/main.cc:35:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/command_line_interface.h:51,
from google/protobuf/compiler/main.cc:36:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/python/python_generator.h:43,
from google/protobuf/compiler/main.cc:37:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/csharp/csharp_generator.h:40,
from google/protobuf/compiler/main.cc:38:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/objectivec/objectivec_generator.h:40,
from google/protobuf/compiler/main.cc:39:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/php/php_generator.h:39,
from google/protobuf/compiler/main.cc:40:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./google/protobuf/compiler/ruby/ruby_generator.h:40,
from google/protobuf/compiler/main.cc:41:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from google/protobuf/compiler/main.cc:43:
./google/protobuf/port_def.inc:540:42: error: expected primary-expression before '__attribute__'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~
./google/protobuf/port_def.inc:457:46: note: in definition of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:54: error: expected primary-expression before ')' token
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
457 | PROTOBUF_EXPORT_TEMPLATE_##which##_##style(export, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:455:3: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE_2'
455 | PROTOBUF_EXPORT_TEMPLATE_INVOKE_2(which, style, export)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:532:17: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_INVOKE'
532 | static_assert(PROTOBUF_EXPORT_TEMPLATE_INVOKE( \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./google/protobuf/port_def.inc:540:1: note: in expansion of macro 'PROTOBUF_EXPORT_TEMPLATE_TEST'
540 | PROTOBUF_EXPORT_TEMPLATE_TEST(MSVC_HACK, __declspec(dllexport));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:4440: google/protobuf/compiler/main.o] Error 1
make[2]: Leaving directory '/d/protobuf/src'
make[1]: *** [Makefile:1831: all-recursive] Error 1
make[1]: Leaving directory '/d/protobuf'
make: *** [Makefile:1738: all] Error 2
I have same issue. How can i fix it?
The same issue with gcc 9.3.0 under latest Cygwin version 2.904
how to fix it?
The same issue with gcc 8.1.0 under latest MinGW-w64 version 8.1.0 (x86_64-8.1.0-release-posix-seh-rt_v6-rev0)
I hit - what appears to be - this when compiling gRPC/protobuf with other code that had macro replacements for MSVC's "__declspec(dllexports)". port_def.inc has a comment above the macro definition of PROTOBUF_EXPORT_TEMPLATE_TEST that says "When [the macros] are not working correctly, a syntax error should occur instead." - and perhaps the wall of errors is the syntax error it speaks of...?
Reading the preprocessed output shows that the interesting error message is this one:
./google/protobuf/port_def.inc:457:3: error: 'PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT' was not declared in this scope; did you mean 'PROTOBUF_EXPORT_TEMPLATE_DECLARE_DEFAULT'?
Since PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT isn't declared, only PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_MSVC_HACK is. So I worked around this by:
#define PROTOBUF_EXPORT_TEMPLATE_TEST_MSVC_HACK_DEFAULT(...) true
And that seems to have calmed things down. From the looks of things, these macros have been removed in protobuf 3.12.3, so I imagine this should fix itself (or manifest the underlying problem...?) when moving to that version.
```
I can also confirm that the issue is fixed now for Cygwin and MinGW!
Most helpful comment
I have same issue. How can i fix it?