Bug 259219 - databases/mysql57-server: Fails to build: sys/cdefs.h:207:6: error: token is not a valid binary operator in a preprocessor subexpression
Summary: databases/mysql57-server: Fails to build: sys/cdefs.h:207:6: error: token is ...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-17 00:47 UTC by Piotr Kubaj
Modified: 2021-11-28 13:09 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback? (joneum)


Attachments
log (81.96 KB, application/octet-stream)
2021-10-17 00:47 UTC, Piotr Kubaj
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer 2021-10-17 00:47:32 UTC
Created attachment 228770 [details]
log

Please find the attached log.
I build on 13.0-RELEASE on powerpc64.

Also:
why do we check for building with GCC 2?
Comment 1 Piotr Kubaj freebsd_committer 2021-10-17 00:48:11 UTC
CC'ing databases/mysql57-server maintainer.
Comment 2 Piotr Kubaj freebsd_committer 2021-10-17 00:48:59 UTC
Also pasting the error here for convenience:
cd /wrkdirs/usr/ports/databases/mysql57-server/work/.build/libmysqld && /usr/bin/c++ -DEMBEDDED_LIBRARY -DGTEST_USE_OWN_TR1_TUPLE=1 -DHAVE_CONFIG_H -DMYSQL_SERVER -I/wrkdirs/usr/ports/databases/mysql57-server/work/.build/include -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/extra/rapidjson/include -I/wrkdirs/usr/ports/databases/mysql57-server/work/.build/libbinlogevents/include -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/libbinlogevents/export -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/include -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/libmysql -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/libbinlogevents/include -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/libmysqld -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/auth -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/conn_handler -I/wrkdirs/usr/ports/databases/mysql57-server/work/.build/libmysqld -I/wrkdirs/usr/ports/databases/mysql57-server/work/.build/sql -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/regex -I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/backup -isystem /wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/include/boost_1_59_0/patches -isystem /wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/boost/boost_1_59_0 -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -O2 -pipe  -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -DNDEBUG -isystem /usr/local/include -std=c++11 -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -Wno-null-conversion -Wno-unused-private-field -ffunction-sections -fdata-sections -O2 -pipe  -DNDEBUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -DNDEBUG -isystem /usr/local/include -std=c++11 -fPIC    -DHAVE_OPENSSL -MD -MT libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_do.cc.o -MF CMakeFiles/sql_embedded.dir/__/sql/sql_do.cc.o.d -o CMakeFiles/sql_embedded.dir/__/sql/sql_do.cc.o -c /wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/sql_do.cc
In file included from /wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/sql_do.cc:26:
In file included from /wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/transaction.h:26:
In file included from /wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/include/my_global.h:53:
In file included from /usr/include/c++/v1/stdio.h:101:
In file included from /usr/include/c++/v1/__config:247:
In file included from /usr/include/sys/endian.h:34:
/usr/include/sys/cdefs.h:207:6: error: token is not a valid binary operator in a preprocessor subexpression
#if !__GNUC_PREREQ__(2, 5)
     ^~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/cdefs.h:135:12: note: expanded from macro '__GNUC_PREREQ__'
        (__GNUC__ > (ma) || __GNUC__ == (ma) && __GNUC_MINOR__ >= (mi))
         ~~~~~~~~ ^
Comment 3 Piotr Kubaj freebsd_committer 2021-10-17 01:23:04 UTC
I can't reproduce this error again, but it definitely happened.
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-17 03:10:31 UTC
What's the reproducibility for this for other MySQL port versions?
Comment 5 Jochen Neumeister freebsd_committer 2021-11-28 13:09:07 UTC
I cannot reproduce this - even with the current MySQL version