← Back to team overview

maria-discuss team mailing list archive

Re: how to build MariaDB from source

 

ok, i have enough, ping when your buildsystem is useable

openssl-1.0.2k-1.fc25.x86_64
openssl-libs-1.0.2k-1.fc25.x86_64
openssl-devel-1.0.2k-1.fc25.x86_64


/home/builduser/rpmbuild/BUILD/mariadb-10.2.6/sql/mysqld.cc: In function 'int init_common_variables()': /home/builduser/rpmbuild/BUILD/mariadb-10.2.6/sql/mysqld.cc:4143:35: error: 'check_openssl_compatibility' was not declared in this scope
   if (check_openssl_compatibility())
                                   ^
[ 89%] Building CXX object sql/CMakeFiles/sql.dir/repl_failsafe.cc.o
cd /home/builduser/rpmbuild/BUILD/mariadb-10.2.6/sql && /usr/bin/c++ -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DHAVE_OPENSSL -DHAVE_POOL_OF_THREADS -DMYSQL_SERVER -D_FILE_OFFSET_BITS=64 -I/home/builduser/rpmbuild/BUILD/mariadb-10.2.6/include -I/home/builduser/rpmbuild/BUILD/mariadb-10.2.6/sql -m64 -O2 -g0 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -fopenmp -pipe -fno-strict-aliasing -fomit-frame-pointer -fexceptions -fstack-protector-strong --param=ssp-buffer-size=6 -D_FORTIFY_SOURCE=2 -Wstack-protector -Wformat -Werror=format-security -O3 -fno-strict-aliasing -fno-gcse-after-reload -fno-inline-functions -fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops -fno-predictive-commoning -fno-tree-loop-distribute-patterns -fno-unswitch-loops -fPIC -minline-all-stringops -fwrapv -fno-stack-protector -fstack-protector --param=ssp-buffer-size=8 -fno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wno-stack-protector -Wa,--noexecstack -fno-rtti -fno-rtti -O2 -g -DNDEBUG -DDBUG_OFF -o CMakeFiles/sql.dir/repl_failsafe.cc.o -c /home/builduser/rpmbuild/BUILD/mariadb-10.2.6/sql/repl_failsafe.cc sql/CMakeFiles/sql.dir/build.make:941: recipe for target 'sql/CMakeFiles/sql.dir/mysqld.cc.o' failed
make[2]: *** [sql/CMakeFiles/sql.dir/mysqld.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/builduser/rpmbuild/BUILD/mariadb-10.2.6'
CMakeFiles/Makefile2:8455: recipe for target 'sql/CMakeFiles/sql.dir/all' failed
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make[1]: Leaving directory '/home/builduser/rpmbuild/BUILD/mariadb-10.2.6'
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.77suvp (%build)


Fehler beim Bauen des RPM:
    Fehler-Status beim Beenden von /var/tmp/rpm-tmp.77suvp (%build)
[builduser@testserver:/rpmbuild/SPECS]$


Am 02.07.2017 um 19:18 schrieb Reindl Harald:
ok, some screen pages above "/home/builduser/rpmbuild/BUILD/mariadb-10.2.6/storage/innobase/include/ut0new.h:334:27: error: exception handling disabled, use -fexceptions to enable" - i exptect that to fail from a sane build system at that point

now:

/usr/bin/ranlib libaria.a
make[2]: Leaving directory '/home/builduser/rpmbuild/BUILD/mariadb-10.2.6'
[ 70%] Built target aria
make[1]: Leaving directory '/home/builduser/rpmbuild/BUILD/mariadb-10.2.6'
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.s3IvPg (%build)


Fehler beim Bauen des RPM:
     Fehler-Status beim Beenden von /var/tmp/rpm-tmp.s3IvPg (%build)
_____________________________________________

i guess the culprit now is tha *once again* "-DPLUGIN_PARTITION=NO" break sthe whole build

/home/builduser/rpmbuild/BUILD/mariadb-10.2.6/storage/innobase/handler/handler0alter.cc: In member function 'virtual enum_alter_inplace_result ha_innobase::check_if_supported_inplace_alter(TABLE*, Alter_inplace_info*)': /home/builduser/rpmbuild/BUILD/mariadb-10.2.6/storage/innobase/handler/handler0alter.cc:768:29: error: 'struct TABLE_SHARE' has no member named 'partition_info_str'
        || (altered_table->s->partition_info_str
                              ^~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/mariadb-10.2.6/storage/innobase/handler/handler0alter.cc:769:25: error: 'struct TABLE_SHARE' has no member named 'partition_info_str_len'
     && altered_table->s->partition_info_str_len)
                          ^~~~~~~~~~~~~~~~~~~~~~
_____________________________________________

Am 02.07.2017 um 19:05 schrieb Reindl Harald:
i get tired - "-DPLUGIN_INNODB=YES" leads to failures at configure time - each time the same dance when the version changes

well, when remove that thinking since xtradb is now dead it will be default enabled leads finally still to a build-failure with not mentioning really where and why - can we please have back "configure && make && make install" with "./configure --help" back for peace of mind
_______________________________

[ 53%] Linking CXX static library libmyisammrg.a

*why* at all when i say "-DPLUGIN_MYISAMMRG=NO" but remove it does still make no difference
_______________________________

cmake . \
  -DFEATURE_SET="large" \
  -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
  -DINSTALL_INCLUDEDIR=include/mysql \
  -DINSTALL_LAYOUT=RPM \
  -DINSTALL_LIBDIR="%{_lib}/mysql" \
  -DINSTALL_MANDIR=share/man \
  -DINSTALL_MYSQLSHAREDIR=share/mysql \
  -DINSTALL_MYSQLTESTDIR=share/mysql-test \
  -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \
  -DINSTALL_SBINDIR=libexec \
  -DINSTALL_SCRIPTDIR=bin \
  -DINSTALL_SQLBENCHDIR= \
  -DINSTALL_SUPPORTFILESDIR=share/mysql \
  -DMYSQL_DATADIR="%{_sharedstatedir}/mysql" \
  -DMYSQL_UNIX_ADDR="%{_sharedstatedir}/mysql/mysql.sock" \
  -DENABLED_PROFILING=OFF \
  -DENABLE_DEBUG_SYNC=OFF \
  -DENABLE_DTRACE=OFF \
  -DPLUGIN_ARIA=YES \
  -DPLUGIN_CSV=YES \
  -DPLUGIN_MYISAM=YES \
  -DPLUGIN_ARCHIVE=NO \
  -DPLUGIN_BLACKHOLE=NO \
  -DPLUGIN_CASSANDRA=NO \
  -DPLUGIN_CONNECT=NO \
  -DPLUGIN_EXAMPLE=NO \
  -DPLUGIN_FEDERATED=NO \
  -DPLUGIN_FEDERATEDX=NO \
  -DPLUGIN_FEEDBACK=NO \
  -DPLUGIN_MROONGA=NO \
  -DPLUGIN_MYISAMMRG=NO \
  -DPLUGIN_OQGRAPH=NO \
  -DPLUGIN_PARTITION=NO \
  -DPLUGIN_PERFSCHEMA=NO \
  -DPLUGIN_SEMISYNC=NO \
  -DPLUGIN_SEQUENCE=NO \
  -DPLUGIN_SPHINX=NO \
  -DPLUGIN_SPIDER=NO \
  -DPLUGIN_TOKUDB=NO \
  -DPLUGIN_XTRADB=NO \
  -DWITHOUT_DYNAMIC_PLUGINS=ON \
  -DWITH_ATOMIC_OPS=smp \
  -DWITH_EMBEDDED_SERVER=OFF \
  -DWITH_INNODB_DISALLOW_WRITES=OFF \
  -DWITH_INNODB_BZIP2=OFF \
  -DWITH_INNODB_LZ4=OFF \
  -DWITH_INNODB_LZMA=OFF \
  -DWITH_INNODB_LZO=OFF \
  -DSECURITY_HARDENED=OFF \
  -DWITH_LIBWRAP=OFF \
  -DWITH_MARIABACKUP=OFF \
  -DWITH_PIC=NO \
  -DWITH_READLINE=OFF \
  -DWITH_SAFEMALLOC=OFF \
  -DWITH_SYSTEMD=OFF \
  -DWITH_VALGRIND=OFF \
  -DWITH_WSREP=OFF \
  -DWITH_JEMALLOC=system \
  -DWITH_SSL=system \
  -DWITH_ZLIB=system \
  -DCOMPILATION_COMMENT="thelounge"


cd /home/builduser/rpmbuild/BUILD/mariadb-10.2.6/storage/myisam && /usr/bin/cmake -P CMakeFiles/myisam.dir/cmake_clean_target.cmake cd /home/builduser/rpmbuild/BUILD/mariadb-10.2.6/storage/myisam && /usr/bin/cmake -E cmake_link_script CMakeFiles/myisam.dir/link.txt --verbose=1 /usr/bin/ar qc libmyisam.a CMakeFiles/myisam.dir/ft_boolean_search.c.o CMakeFiles/myisam.dir/ft_nlq_search.c.o CMakeFiles/myisam.dir/ft_parser.c.o CMakeFiles/myisam.dir/ft_static.c.o CMakeFiles/myisam.dir/ha_myisam.cc.o CMakeFiles/myisam.dir/ft_myisam.c.o CMakeFiles/myisam.dir/ft_stopwords.c.o CMakeFiles/myisam.dir/ft_update.c.o CMakeFiles/myisam.dir/mi_cache.c.o CMakeFiles/myisam.dir/mi_changed.c.o CMakeFiles/myisam.dir/mi_check.c.o CMakeFiles/myisam.dir/mi_checksum.c.o CMakeFiles/myisam.dir/mi_close.c.o CMakeFiles/myisam.dir/mi_create.c.o CMakeFiles/myisam.dir/mi_dbug.c.o CMakeFiles/myisam.dir/mi_delete.c.o CMakeFiles/myisam.dir/mi_delete_all.c.o CMakeFiles/myisam.dir/mi_delete_table.c.o CMakeFiles/myisam.dir/mi_dynrec.c.o CMakeFiles/myisam.dir/mi_extra.c.o CMakeFiles/myisam.dir/mi_info.c.o CMakeFiles/myisam.dir/mi_key.c.o CMakeFiles/myisam.dir/mi_keycache.c.o CMakeFiles/myisam.dir/mi_locking.c.o CMakeFiles/myisam.dir/mi_log.c.o CMakeFiles/myisam.dir/mi_open.c.o CMakeFiles/myisam.dir/mi_packrec.c.o CMakeFiles/myisam.dir/mi_page.c.o CMakeFiles/myisam.dir/mi_panic.c.o CMakeFiles/myisam.dir/mi_preload.c.o CMakeFiles/myisam.dir/mi_range.c.o CMakeFiles/myisam.dir/mi_rename.c.o CMakeFiles/myisam.dir/mi_rfirst.c.o CMakeFiles/myisam.dir/mi_rlast.c.o CMakeFiles/myisam.dir/mi_rnext.c.o CMakeFiles/myisam.dir/mi_rnext_same.c.o CMakeFiles/myisam.dir/mi_rprev.c.o CMakeFiles/myisam.dir/mi_rrnd.c.o CMakeFiles/myisam.dir/mi_rsame.c.o CMakeFiles/myisam.dir/mi_rsamepos.c.o CMakeFiles/myisam.dir/mi_scan.c.o CMakeFiles/myisam.dir/mi_search.c.o CMakeFiles/myisam.dir/mi_static.c.o CMakeFiles/myisam.dir/mi_statrec.c.o CMakeFiles/myisam.dir/mi_unique.c.o CMakeFiles/myisam.dir/mi_update.c.o CMakeFiles/myisam.dir/mi_write.c.o CMakeFiles/myisam.dir/rt_index.c.o CMakeFiles/myisam.dir/rt_key.c.o CMakeFiles/myisam.dir/rt_mbr.c.o CMakeFiles/myisam.dir/rt_split.c.o CMakeFiles/myisam.dir/sort.c.o CMakeFiles/myisam.dir/sp_key.c.o CMakeFiles/myisam.dir/mi_rkey.c.o
/usr/bin/ranlib libmyisam.a
make[2]: Leaving directory '/home/builduser/rpmbuild/BUILD/mariadb-10.2.6'
[ 52%] Built target myisam
make[1]: Leaving directory '/home/builduser/rpmbuild/BUILD/mariadb-10.2.6'
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.Qwgvnq (%build)


Fehler beim Bauen des RPM:
     Fehler-Status beim Beenden von /var/tmp/rpm-tmp.Qwgvnq (%build)


References