Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657782 - dev-db/mariadb with sys-devel/gcc:7 on x86 fails to build: sql_prepare.cc:4364:1: error: unsupported size for integer register
Summary: dev-db/mariadb with sys-devel/gcc:7 on x86 fails to build: sql_prepare.cc:436...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-7
  Show dependency tree
 
Reported: 2018-06-11 01:21 UTC by Laszlo Valko
Modified: 2019-04-07 16:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,7.42 KB, text/plain)
2018-06-11 01:21 UTC, Laszlo Valko
Details
mariadb-10.1.31-r1.fail.build.log.gz (mariadb-10.1.31-r1.fail.build.log.gz,50.96 KB, application/gzip)
2018-06-11 01:23 UTC, Laszlo Valko
Details
mariadb-10.1.31-r1.ok.build.log.gz (mariadb-10.1.31-r1.ok.build.log.gz,74.25 KB, application/gzip)
2018-06-11 01:23 UTC, Laszlo Valko
Details
mariadb-10.2.15.fail.build.log.gz (mariadb-10.2.15.fail.build.log.gz,48.41 KB, application/gzip)
2018-06-11 01:24 UTC, Laszlo Valko
Details
mariadb-10.0.35.fail.build.log.gz (mariadb-10.0.35.fail.build.log.gz,42.49 KB, application/gzip)
2018-06-11 01:24 UTC, Laszlo Valko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Valko 2018-06-11 01:21:43 UTC
Created attachment 535610 [details]
emerge --info

dev-db/mariadb-10.1.31-r1 (latest stable) does not compile with gcc 7.3.0 on x86.

Tested other (and also not building) versions:
10.0.35
10.2.15

This is a regression from gcc 6.4.0, as that compiles the same mariadb version in the very same compilation environment properly.
Also, amd64 is not affected, only x86.

[ 91%] Building CXX object sql/CMakeFiles/sql.dir/sql_prepare.cc.o
cd /var/tmp/portage/dev-db/mariadb-10.1.31-r1/work/mysql-abi_x86_32.x86/sql && /usr/bin/i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DHAVE_OPENSSL -DHAVE_POOL_OF_THREADS -DMYSQL_SERVER -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/dev-db/mariadb-10.1.31-r1/work/mysql-abi_x86_32.x86/include -I/var/tmp/portage/dev-db/mariadb-10.1.31-r1/work/mysql/include -I/var/tmp/portage/dev-db/mariadb-10.1.31-r1/work/mysql/sql -I/var/tmp/portage/dev-db/mariadb-10.1.31-r1/work/mysql-abi_x86_32.x86/sql   -O2 -march=pentium-m -mtune=core2 -fomit-frame-pointer -felide-constructors -fno-strict-aliasing -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -fno-exceptions -fno-rtti -DNDEBUG -DDBUG_OFF   -o CMakeFiles/sql.dir/sql_prepare.cc.o -c /var/tmp/portage/dev-db/mariadb-10.1.31-r1/work/mysql/sql/sql_prepare.cc
/var/tmp/portage/dev-db/mariadb-10.1.31-r1/work/mysql/sql/sql_prepare.cc: In member function 'bool Prepared_statement::execute(String*, bool)':
/var/tmp/portage/dev-db/mariadb-10.1.31-r1/work/mysql/sql/sql_prepare.cc:4364:1: error: unsupported size for integer register
 }
 ^
make[2]: *** [sql/CMakeFiles/sql.dir/build.make:2118: sql/CMakeFiles/sql.dir/sql_prepare.cc.o] Error 1
Comment 1 Laszlo Valko 2018-06-11 01:23:22 UTC
Created attachment 535612 [details]
mariadb-10.1.31-r1.fail.build.log.gz
Comment 2 Laszlo Valko 2018-06-11 01:23:50 UTC
Created attachment 535614 [details]
mariadb-10.1.31-r1.ok.build.log.gz
Comment 3 Laszlo Valko 2018-06-11 01:24:11 UTC
Created attachment 535616 [details]
mariadb-10.2.15.fail.build.log.gz
Comment 4 Laszlo Valko 2018-06-11 01:24:28 UTC
Created attachment 535618 [details]
mariadb-10.0.35.fail.build.log.gz
Comment 5 Laszlo Valko 2019-04-07 16:29:12 UTC
As of today, gcc-7.3.0-r3 could successfully build the latest stable mariadb package (version 10.2.22-r1) on x86.