You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2020/09/18 16:24:54 UTC

[GitHub] [incubator-pagespeed-mod] sedimentation-fault opened a new issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

sedimentation-fault opened a new issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040


   ### Problem
   
   I have followed the instructions at
   
   [build mod_pagespeed from source](https://www.modpagespeed.com/doc/build_mod_pagespeed_from_source)
   
   to build _pagespeed_ from source in a Gentoo Linux system. During execution of 
   
   `make BUILDTYPE=Release mod_pagespeed_test pagespeed_automatic_test`
   
   I got the error:
   
   ```
     CC(target) out/Release/obj.target/gpr/third_party/grpc/src/src/core/lib/support/log_linux.o
   third_party/grpc/src/src/core/lib/support/log_linux.c:42:13: error: conflicting types for 'gettid'
      42 | static long gettid(void) { return syscall(__NR_gettid); }
         |             ^~~~~~
   In file included from /usr/include/unistd.h:1170,
                    from third_party/grpc/src/src/core/lib/support/log_linux.c:40:
   /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here
      34 | extern __pid_t gettid (void) __THROW;
         |                ^~~~~~
   make: *** [third_party/grpc/gpr.target.mk:345: out/Release/obj.target/gpr/third_party/grpc/src/src/core/lib/support/log_linux.o] Error 1
   ```
   
   ### Reason
   
   It seems that the error is related to the version of the compiler used (_gcc_ 9.3.0), as the following patch shows: [#18950](https://github.com/grpc/grpc/pull/18950/files/57586a1ca7f17b1916aed3dea4ff8de872dbf853)
   
   ### Solution
   
   Either incorporate the changes of the mentioned patch, or insert some suggestion about the upper bound of _gcc_ version that can compile your _grpc_ version without errors. It would also be helpful if you could provide some _configure_ script that will search the system for existing libraries and build the Makefiles. For example, _grpc_ IS already installed on my system (version 1.26.0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] arunvc commented on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
arunvc commented on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-1004541862


   httpd-2.4.50-buster bullseye


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] oschaaf commented on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
oschaaf commented on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-695927129


   This sounds like https://github.com/tensorflow/tensorflow/issues/33758
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] Lofesa commented on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-695770815


   Hi
   Last time I have compiled the module was 7/1/2020 with gcc 9.3  in a Centos 7 and have no issues.
   Maybe the problem come for using files from your local copy of grpc?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] BigeYoung commented on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
BigeYoung commented on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-734738801


   same problem when I run `pecl install grpc-1.6.0` on ubuntu 20.04
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] oschaaf commented on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
oschaaf commented on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-695927129


   This sounds like https://github.com/tensorflow/tensorflow/issues/33758
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] arunvc removed a comment on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
arunvc removed a comment on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-1004541862


   httpd-2.4.50-buster bullseye


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] sedimentation-fault commented on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
sedimentation-fault commented on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-695112593


   Tried with _gcc_ 7.3.0, 7.5.0 and 8.3.0 (in addition to 9.3.0 above) but the error persisted...


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] arunvc commented on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
arunvc commented on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-1004546565


   Pagespeed build failed on httpd-2.4.51-bullseye docker image and above, due to above error, 
   httpd-2.4.50-buster is the last working docker version


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-pagespeed-mod] Lofesa commented on issue #2040: error: conflicting types for 'gettid' - in third_party/grpc/src/src/core/lib/support/log_linux.c:42:13

Posted by GitBox <gi...@apache.org>.
Lofesa commented on issue #2040:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2040#issuecomment-695770815


   Hi
   Last time I have compiled the module was 7/1/2020 with gcc 9.3  in a Centos 7 and have no issues.
   Maybe the problem come for using files from your local copy of grpc?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org