Quantcast
Viewing all articles
Browse latest Browse all 6002

error: missing binary operator before token "(" - thorough explanation, preferably with a solution

Based on this instruction I try to build Telegram Desktop, but after running make $MAKE_THREADS_CNT I face a couple of these errors:

[  7%] Building C object Utilities/cmlibuv/CMakeFiles/cmlibuv.dir/src/fs-poll.c.oIn file included from /usr/include/x86_64-linux-gnu/sys/stat.h:446,                 from /home/me/w/code/cpp/telegram/BuildPath/Libraries/cmake/Source/cmsys/SystemTools.hxx:15,                 from /home/me/w/code/cpp/telegram/BuildPath/Libraries/cmake/Source/kwsys/SystemTools.cxx:21:/usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/bits/statx.h:38:25: error: missing binary operator before token "(" #if __glibc_has_include ("__linux__/stat.h")                         ^

I've read many Q&A here in Stack Overflow and out of it. I couldn't figure out what's wrong (even couldn't relate to this) and none of example cases matched my case in compiling Telegram Desktop.

I'm using Kubuntu 20.04 which has gcc v9, but I installed gcc v8 based on the mentioned instruction.Due to finding some change logs about __glibc_has_include in glibc, I even downloaded glibc source code, but couldn't figure out what's the issue.

Could you explain or lead me to a documentation to figure out what's wrong?

P.S. In the statx.h file I also see this:

/* Use "" to work around incorrect macro expansion of the   __has_include argument (GCC PR 80005).  */#if __glibc_has_include ("__linux__/stat.h")

but the file starts with a comment DO NOT EDIT THIS FILE. (though I tried to edit with no success!)


Viewing all articles
Browse latest Browse all 6002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>