public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/107616] New: c++tools: select not found breaks build @ 2022-11-10 14:50 danglin at gcc dot gnu.org 2022-11-10 14:55 ` [Bug c++/107616] " danglin at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: danglin at gcc dot gnu.org @ 2022-11-10 14:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107616 Bug ID: 107616 Summary: c++tools: select not found breaks build Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa64-hp-hpux11.11 Target: hppa64-hp-hpux11.11 Build: hppa64-hp-hpux11.11 On hpux11.[0-2]*, the select declaration reside in <sys/time.h>. configure only checks <sys/select.h>. As a result, select is not found: configure:3623: checking for select configure:3642: /home/dave/gnu/gcc/objdir64/./gcc/xg++ -B/home/dave/gnu/gcc/objdir64/./gcc/ -nostdinc++ -nostdinc++ -I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-hpux11.11 -I/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/src -L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -L/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/libsupc++/.libs -B/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -B/home/dave/gnu/gcc/objdir64/hppa64-hp-hpux11.11/libstdc++-v3/libsupc++/.libs -B/opt/gnu64/gcc/gcc-13/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-13/hppa64-hp-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-13/hppa64-hp-hpux11.11/include -isystem /opt/gnu64/gcc/gcc-13/hppa64-hp-hpux11.11/sys-include -fchecking=1 -c -g -O2 conftest.cpp >&5 conftest.cpp:24:10: fatal error: sys/select.h: No such file or directory 24 | #include <sys/select.h> | ^~~~~~~~~~~~~~ compilation terminated. ... configure:3649: result: no This exposes a problem in server.cc. The call to FD_ISSET at line 724 is not conditional on "#if defined (HAVE_PSELECT) || defined (HAVE_SELECT)". ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/107616] c++tools: select not found breaks build 2022-11-10 14:50 [Bug c++/107616] New: c++tools: select not found breaks build danglin at gcc dot gnu.org @ 2022-11-10 14:55 ` danglin at gcc dot gnu.org 2023-01-07 19:14 ` danglin at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: danglin at gcc dot gnu.org @ 2022-11-10 14:55 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107616 --- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> --- Created attachment 53870 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53870&action=edit Patch Fix build of server.cc when select is not present. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/107616] c++tools: select not found breaks build 2022-11-10 14:50 [Bug c++/107616] New: c++tools: select not found breaks build danglin at gcc dot gnu.org 2022-11-10 14:55 ` [Bug c++/107616] " danglin at gcc dot gnu.org @ 2023-01-07 19:14 ` danglin at gcc dot gnu.org 2023-01-09 15:45 ` cvs-commit at gcc dot gnu.org 2023-01-09 16:20 ` danglin at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: danglin at gcc dot gnu.org @ 2023-01-07 19:14 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107616 --- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-January/609536.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/107616] c++tools: select not found breaks build 2022-11-10 14:50 [Bug c++/107616] New: c++tools: select not found breaks build danglin at gcc dot gnu.org 2022-11-10 14:55 ` [Bug c++/107616] " danglin at gcc dot gnu.org 2023-01-07 19:14 ` danglin at gcc dot gnu.org @ 2023-01-09 15:45 ` cvs-commit at gcc dot gnu.org 2023-01-09 16:20 ` danglin at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2023-01-09 15:45 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107616 --- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by John David Anglin <danglin@gcc.gnu.org>: https://gcc.gnu.org/g:0925a9772960c946440833033423bff41c330154 commit r13-5072-g0925a9772960c946440833033423bff41c330154 Author: John David Anglin <danglin@gcc.gnu.org> Date: Mon Jan 9 15:41:51 2023 +0000 Fix compilation of server.cc on hpux. Select and FD_ISSET are declared in sys/time.h on most versions of hpux. As a result, HAVE_PSELECT and HAVE_SELECT can be 0. 2023-01-08 John David Anglin <danglin@gcc.gnu.org> c++tools/ChangeLog: PR other/107616 * server.cc (server): Don't call FD_ISSET when HAVE_PSELECT and HAVE_SELECT are zero. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/107616] c++tools: select not found breaks build 2022-11-10 14:50 [Bug c++/107616] New: c++tools: select not found breaks build danglin at gcc dot gnu.org ` (2 preceding siblings ...) 2023-01-09 15:45 ` cvs-commit at gcc dot gnu.org @ 2023-01-09 16:20 ` danglin at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: danglin at gcc dot gnu.org @ 2023-01-09 16:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107616 John David Anglin <danglin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> --- Fixed on trunk. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-09 16:20 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-11-10 14:50 [Bug c++/107616] New: c++tools: select not found breaks build danglin at gcc dot gnu.org 2022-11-10 14:55 ` [Bug c++/107616] " danglin at gcc dot gnu.org 2023-01-07 19:14 ` danglin at gcc dot gnu.org 2023-01-09 15:45 ` cvs-commit at gcc dot gnu.org 2023-01-09 16:20 ` danglin at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).