Compile error with Fast CGI and gcc-11

7 views
Skip to first unread message

Greg Childers

unread,
Jun 9, 2022, 3:30:25 PM6/9/22
to Boinc Projects
Hi,

There is a compile failure with Fast CGI and gcc-11.

  CXX      libboinc_fcgi_la-coproc.lo
In file included from /usr/include/features.h:486,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /usr/include/fcgi_stdio.h:18,
                 from boinc_fcgi.h:19,
                 from coproc.cpp:22:
/usr/include/wchar.h:582:24: error: ‘malloc’ attribute argument 1 is ambiguous
  582 |   __attribute_malloc__ __attr_dealloc_fclose;
      |                        ^~~~~~~~~~~~~~~~~~~~~
/usr/include/wchar.h:582:24: note: use a cast to the expected type to disambiguate
make[2]: *** [Makefile:1677: libboinc_fcgi_la-coproc.lo] Error 1

Advice is appreciated!

Thanks,
Greg

James Wanless

unread,
Jun 9, 2022, 3:36:19 PM6/9/22
to Greg Childers, Boinc Projects
Here’s a quick thought - I don’t know if performance would be acceptable, but I believe it’s possible to compile without fcgi - just uninstall the package first
J

Sent from my iPad

On 9 Jun 2022, at 20:30, Greg Childers <jgchilde...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "boinc_projects" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boinc_project...@ssl.berkeley.edu.
To view this discussion on the web visit https://groups.google.com/a/ssl.berkeley.edu/d/msgid/boinc_projects/CAPOvAR65j9LfCTYauNu8MmF9xtvb81srS7OBA0fm8JmH%3DcUKVw%40mail.gmail.com.

Greg Childers

unread,
Jun 9, 2022, 4:39:52 PM6/9/22
to James Wanless, Boinc Projects
My quick fix was to just compile with gcc-10 for now.

Greg

Vitalii Koshura

unread,
Jun 9, 2022, 5:31:28 PM6/9/22
to Greg Childers, James Wanless, Boinc Projects
Hello Greg,

Looks like the same was reported to gcc directly, but not sure what the resolution is: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101747

Best regards,
Vitalii Koshura


чт, 9 июн. 2022 г. в 22:39, Greg Childers <jgchilde...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages