[Solved][MySQL] Error durnig build

Problems with packages? Post here, using [tags] of the package name.

[Solved][MySQL] Error durnig build

Postby SeBO » Sun Feb 15, 2015 2:46 pm

Hi
I'm trying to build (compile) MySQL with PKGBUILD from aur as follows:
Code: Select all
#pkgname=('mysql' 'libmysqlclient' 'mysql-clients')
pkgname=mysql
pkgbase=mysql
#pkgver=7.3.8
pkgver=7.2.19
pkgrel=1
pkgdesc="Fast SQL database server, cluster edition"
arch=('armv7h')
makedepends=('openssl' 'zlib' 'cmake' 'systemd-tools' 'libaio' 'jemalloc')
license=('GPL')
url="http://www.mysql.com/products/cluster/"
options=('!libtool')
source=("http://dev.mysql.com/get/Downloads/MySQL-Cluster-7.3/$pkgbase-cluster-gpl-$pkgver.tar.gz")
sha256sums=('SKIP')
<<EOF
prepare() {
  cd "$pkgbase-cluster-gpl-$pkgver"
  #patch -p0 -i "../../mysql-srv_buf_size.patch"
  # Fixes bug http://bugs.mysql.com/bug.php?id=75622
  patch -p0 -i "../../mysql-openssl-1.0.2.patch"
  #cd "../.."
  #pwd
}
EOF
build() {
  rm -rf build
  mkdir build
  cd build
  cmake "../$pkgbase-cluster-gpl-$pkgver" \
    -DCMAKE_VERBOSE_MAKEFILE=ON \
    -DWITH_NDBCLUSTER_STORAGE_ENGINE=ON \
    -DWITH_NDBCLUSTER=ON \
    -DWITH_NDBMTD=ON \
    -DWITH_NDB_JAVA=OFF \
    -DCMAKE_AR=/usr/bin/gcc-ar \
    -DCMAKE_RANLIB=/usr/bin/gcc-ranlib \
    -DBUILD_CONFIG=mysql_release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DSYSCONFDIR=/etc/mysql \
    -DMYSQL_DATADIR=/srv/mysql \
    -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
    -DDEFAULT_CHARSET=utf8 \
    -DDEFAULT_COLLATION=utf8_general_ci \
    -DENABLED_LOCAL_INFILE=ON \
    -DINSTALL_INFODIR=share/mysql/docs \
    -DINSTALL_MANDIR=share/man \
    -DINSTALL_PLUGINDIR=lib/mysql/plugin \
    -DINSTALL_SCRIPTDIR=bin \
    -DINSTALL_INCLUDEDIR=include/mysql \
    -DINSTALL_DOCREADMEDIR=share/mysql \
    -DINSTALL_SUPPORTFILESDIR=share/mysql \
    -DINSTALL_MYSQLSHAREDIR=share/mysql \
    -DINSTALL_DOCDIR=share/mysql/docs \
    -DINSTALL_SHAREDIR=share/mysql \
    -DWITH_ZLIB=system \
    -DWITH_SSL=system \
    -DWITH_LIBWRAP=OFF \
    -DCMAKE_EXE_LINKER_FLAGS='-ljemalloc' \
    -DWITH_EXTRA_CHARSETS=complex \
    -DWITH_EMBEDDED_SERVER=ON \
    -DWITH_ARCHIVE_STORAGE_ENGINE=ON \
    -DWITH_BLACKHOLE_STORAGE_ENGINE=ON \
    -DWITH_INNOBASE_STORAGE_ENGINE=ON \
    -DWITH_PARTITION_STORAGE_ENGINE=ON \
    -DWITHOUT_EXAMPLE_STORAGE_ENGINE=ON \
    -DWITHOUT_FEDERATED_STORAGE_ENGINE=ON \
    -DENABLE_DOWNLOADS=1 \
    -DCMAKE_C_FLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer -fno-delete-null-pointer-checks" \
    -DCMAKE_CXX_FLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti -fno-delete-null-pointer-checks" \
    -DWITH_MYSQLD_LDFLAGS="-pie ${LDFLAGS},-z,now"
  make
}

package_libmysqlclient(){
  pkgdesc="MySQL client libraries"
  depends=('openssl')
  conflicts=('libmariadbclient')
  provides=("libmariadbclient=${pkgver}")

  cd build
  for dir in include libmysql libmysqld libservices
  do
    make VERBOSE=1 -n -C "${dir}" DESTDIR="${pkgdir}" install
  done

  install -m 755 -d "${pkgdir}/usr/bin"
  install -m 755 scripts/mysql_config "${pkgdir}/usr/bin/"
  install -m 755 -d "${pkgdir}/usr/share/man/man1"
  for man in mysql_config mysql_client_test_embedded mysqltest_embedded
  do
    install -m 644 "${srcdir}/${pkgbase}-${pkgver}/man/${man}.1" "${pkgdir}/usr/share/man/man1/${man}.1"
  done
}

package_mysql-clients(){
  pkgdesc="MySQL client tools"
  depends=('libmysqlclient' 'jemalloc')
  conflicts=('mariadb-clients')
  provides=("mariadb-clients=${pkgver}")

  cd build
  make VERBOSE=1 -n -C "client" DESTDIR="${pkgdir}" install

  # install man pages
  install -d "${pkgdir}/usr/share/man/man1"
  for man in mysql mysqladmin mysqlcheck mysqldump mysqlimport mysqlshow mysqlslap
  do
    install -m644 "${srcdir}/${pkgbase}-${pkgver}/man/${man}.1" "${pkgdir}/usr/share/man/man1/${man}.1"
  done

  # provided by mysql
  rm "${pkgdir}/usr/bin/mysql_plugin"
  rm "${pkgdir}/usr/bin/mysql_upgrade"
  rm "${pkgdir}/usr/bin/mysql_config_editor"
  rm "${pkgdir}/usr/bin/mysqlbinlog"
  rm "${pkgdir}/usr/bin/mysqltest"
}

package_mysql(){
  pkgdesc="Fast SQL database server, cluster edition"
  backup=('etc/mysql/my.cnf')
  install="${pkgbase}.install"
  depends=('mysql-clients' 'libaio')
  conflicts=('mariadb')
  provides=("mariadb=${pkgver}")
  options=('emptydirs')

  cd build
  make VERBOSE=1 -n DESTDIR="${pkgdir}" install

  install -m 644 -D "${pkgdir}/usr/share/mysql/my-default.cnf" "${pkgdir}/etc/mysql/my.cnf"
  install -m 755 -D "${srcdir}/mysqld-post.sh" "${pkgdir}/usr/bin/mysqld-post"
  install -m 644 -D "${srcdir}/mysqld-tmpfile.conf" "${pkgdir}/usr/lib/tmpfiles.d/mysqld.conf"
  install -m 755 -d "${pkgdir}/usr/lib/systemd/system"
  install -m 644 -D "${srcdir}/mysqld.service" "${pkgdir}/usr/lib/systemd/system/"

  # provided by libmysqlclient
  rm "${pkgdir}/usr/bin/mysql_config"
  rm "${pkgdir}/usr/bin/mysql_client_test_embedded"
  rm "${pkgdir}/usr/bin/mysqltest_embedded"
  rm "${pkgdir}"/usr/lib/libmysql*
  rm -r "${pkgdir}/usr/include/"
  rm "${pkgdir}/usr/share/man/man1/mysql_config.1"
  rm "${pkgdir}/usr/share/man/man1/mysql_client_test_embedded.1"
  rm "${pkgdir}/usr/share/man/man1/mysqltest_embedded.1"

  # provided by mysql-clients
  rm "${pkgdir}/usr/bin/mysql"
  rm "${pkgdir}/usr/bin/mysqladmin"
  rm "${pkgdir}/usr/bin/mysqlcheck"
  rm "${pkgdir}/usr/bin/mysqldump"
  rm "${pkgdir}/usr/bin/mysqlimport"
  rm "${pkgdir}/usr/bin/mysqlshow"
  rm "${pkgdir}/usr/bin/mysqlslap"
  rm "${pkgdir}/usr/share/man/man1/mysql.1"
  rm "${pkgdir}/usr/share/man/man1/mysqladmin.1"
  rm "${pkgdir}/usr/share/man/man1/mysqlcheck.1"
  rm "${pkgdir}/usr/share/man/man1/mysqldump.1"
  rm "${pkgdir}/usr/share/man/man1/mysqlimport.1"
  rm "${pkgdir}/usr/share/man/man1/mysqlshow.1"
  rm "${pkgdir}/usr/share/man/man1/mysqlslap.1"

  # not needed
  rm -r "${pkgdir}/usr/data"
  rm -r "${pkgdir}/usr/mysql-test"
  rm -r "${pkgdir}/usr/sql-bench"
  rm "${pkgdir}/usr/share/man/man1/mysql-test-run.pl.1"
}


But - whatever version i take - i allways have error like below:
Code: Select all
Linking CXX static library libndbblocks.a
cd /home/h3x0r/mysql-cluster/src/build/storage/ndb/src/kernel/blocks && /usr/bin/cmake -P CMakeFiles/ndbblocks.dir/cmake_clean_target.cmake
cd /home/h3x0r/mysql-cluster/src/build/storage/ndb/src/kernel/blocks && /usr/bin/cmake -E cmake_link_script CMakeFiles/ndbblocks.dir/link.txt --verbose=1
/usr/bin/gcc-ar cq libndbblocks.a  CMakeFiles/ndbblocks.dir/tsman.cpp.o CMakeFiles/ndbblocks.dir/lgman.cpp.o CMakeFiles/ndbblocks.dir/pgman.cpp.o CMakeFiles/ndbblocks.dir/diskpage.cpp.o CMakeFiles/ndbblocks.dir/restore.cpp.o CMakeFiles/ndbblocks.dir/cmvmi/Cmvmi.cpp.o CMakeFiles/ndbblocks.dir/dbacc/DbaccInit.cpp.o CMakeFiles/ndbblocks.dir/dbacc/DbaccMain.cpp.o CMakeFiles/ndbblocks.dir/dbdict/Dbdict.cpp.o CMakeFiles/ndbblocks.dir/dbdih/DbdihInit.cpp.o CMakeFiles/ndbblocks.dir/dbdih/DbdihMain.cpp.o CMakeFiles/ndbblocks.dir/dblqh/DblqhInit.cpp.o CMakeFiles/ndbblocks.dir/dblqh/DblqhMain.cpp.o CMakeFiles/ndbblocks.dir/dbtc/DbtcInit.cpp.o CMakeFiles/ndbblocks.dir/dbtc/DbtcMain.cpp.o CMakeFiles/ndbblocks.dir/dbgdm/DbgdmProxy.cpp.o CMakeFiles/ndbblocks.dir/dbspj/DbspjInit.cpp.o CMakeFiles/ndbblocks.dir/dbspj/DbspjMain.cpp.o CMakeFiles/ndbblocks.dir/dbspj/DbspjProxy.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupExecQuery.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupBuffer.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupRoutines.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupCommit.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupFixAlloc.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupTrigger.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupAbort.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupPageMap.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupPagMan.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupStoredProcDef.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupMeta.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupTabDesMan.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupGen.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupIndex.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupDebug.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupScan.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupDiskAlloc.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupVarAlloc.cpp.o CMakeFiles/ndbblocks.dir/dbtup/tuppage.cpp.o CMakeFiles/ndbblocks.dir/dbtup/Undo_buffer.cpp.o CMakeFiles/ndbblocks.dir/ndbfs/AsyncIoThread.cpp.o CMakeFiles/ndbblocks.dir/ndbfs/AsyncFile.cpp.o CMakeFiles/ndbblocks.dir/ndbfs/Ndbfs.cpp.o CMakeFiles/ndbblocks.dir/ndbfs/VoidFs.cpp.o CMakeFiles/ndbblocks.dir/ndbfs/Filename.cpp.o CMakeFiles/ndbblocks.dir/ndbcntr/NdbcntrInit.cpp.o CMakeFiles/ndbblocks.dir/ndbcntr/NdbcntrSysTable.cpp.o CMakeFiles/ndbblocks.dir/ndbcntr/NdbcntrMain.cpp.o CMakeFiles/ndbblocks.dir/qmgr/QmgrInit.cpp.o CMakeFiles/ndbblocks.dir/qmgr/QmgrMain.cpp.o CMakeFiles/ndbblocks.dir/trix/Trix.cpp.o CMakeFiles/ndbblocks.dir/backup/Backup.cpp.o CMakeFiles/ndbblocks.dir/backup/BackupInit.cpp.o CMakeFiles/ndbblocks.dir/dbutil/DbUtil.cpp.o CMakeFiles/ndbblocks.dir/suma/Suma.cpp.o CMakeFiles/ndbblocks.dir/suma/SumaInit.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxGen.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxMeta.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxMaint.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxNode.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxTree.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxScan.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxSearch.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxCmp.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxStat.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxDebug.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxBuild.cpp.o CMakeFiles/ndbblocks.dir/LocalProxy.cpp.o CMakeFiles/ndbblocks.dir/dblqh/DblqhProxy.cpp.o CMakeFiles/ndbblocks.dir/dbacc/DbaccProxy.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupProxy.cpp.o CMakeFiles/ndbblocks.dir/dbtux/DbtuxProxy.cpp.o CMakeFiles/ndbblocks.dir/backup/BackupProxy.cpp.o CMakeFiles/ndbblocks.dir/RestoreProxy.cpp.o CMakeFiles/ndbblocks.dir/dbtc/DbtcProxy.cpp.o CMakeFiles/ndbblocks.dir/dbinfo/Dbinfo.cpp.o CMakeFiles/ndbblocks.dir/dblqh/DblqhCommon.cpp.o CMakeFiles/ndbblocks.dir/PgmanProxy.cpp.o CMakeFiles/ndbblocks.dir/dbtup/DbtupClient.cpp.o CMakeFiles/ndbblocks.dir/ndbfs/PosixAsyncFile.cpp.o CMakeFiles/ndbblocks.dir/thrman.cpp.o CMakeFiles/ndbblocks.dir/trpman.cpp.o
/usr/bin/gcc-ranlib libndbblocks.a
make[2]: Leaving directory '/home/h3x0r/mysql-cluster/src/build'
/usr/bin/cmake -E cmake_progress_report /home/h3x0r/mysql-cluster/src/build/CMakeFiles  44 45 46 47 48 49
[ 26%] Built target ndbblocks
make[1]: Leaving directory '/home/h3x0r/mysql-cluster/src/build'
Makefile:150: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...


I'm using 5 plugs(slaves) with distcc and my makepkg.conf(from master server) looks like this:
Code: Select all
[root@r1 ~]# cat /etc/makepkg.conf   
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The the package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="armv7h"
CHOST="armv7h-linux-gnueabihf"
#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
#CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=armv7ve -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
#CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
CXXFLAGS="-march=armv7ve -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
CPPFLAGS="-march=armv7ve -mfloat-abi=hard -mfpu=neon-vfpv4 -mcpu=cortex-a7 -mtune=cortex-a7 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
#CXXFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j11"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(!distcc color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
DISTCC_HOSTS="r1.dom markone.dom marktwo.dom vulcanone.dom vulcantwo.dom"
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- upx:        Compress binary executable files using UPX
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)


#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'
# vim: set ft=sh ts=2 sw=2 et:


I need clustered MySQL or MariaDB (but in this case build of wsrep lib failed for me :( and that is why i'm trying now with MySQL).

Any one knows how to fix it or ... where i can find couse ? I've been searching in logs
Code: Select all
/src/mysql-cluster-gpl-7.3.8/CMakeFiles/CMakeError.log
./src/mysql-cluster-gpl-7.3.8/CMakeFiles/CMakeOutput.log
./src/build/storage/innobase/CMakeFiles/innobase.dir/log
./src/build/CMakeFiles/CMakeError.log
./src/build/CMakeFiles/CMakeOutput.log


but there is nothing (only notices about tests)
Last edited by SeBO on Thu Feb 26, 2015 3:07 pm, edited 1 time in total.
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: [MySQL] Error durnig build

Postby WarheadsSE » Sun Feb 15, 2015 4:22 pm

A complete build log might help in pointing out where the actual error came from, since it is not listed there.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [MySQL] Error durnig build

Postby SeBO » Mon Feb 16, 2015 8:44 am

Noob question: Where i can find this logs ? I've been searching for them with find command - files that i have found i attached to first post (CMAKE logs with nothing inside).
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: [MySQL] Error durnig build

Postby SeBO » Wed Feb 18, 2015 7:25 pm

A piece of error output (i have run make without makepkg and i got some errors)

Code: Select all
[ 64%] Built target ndbsched
Scanning dependencies of target ndbd
[ 64%] Building CXX object storage/ndb/src/kernel/CMakeFiles/ndbd.dir/main.cpp.o
[ 64%] Building CXX object storage/ndb/src/kernel/CMakeFiles/ndbd.dir/ndbd.cpp.o                                                                                                                                                                   
[ 64%] Building CXX object storage/ndb/src/kernel/CMakeFiles/ndbd.dir/angel.cpp.o                                                                                                                                                                 
In file included from /home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/include/debugger/EventLogger.hpp:24:0,
                 from /home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/angel.cpp:31:
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/include/kernel/signaldata/EventReport.hpp: In function 'void reportShutdown(const ndb_mgm_configuration*, NodeId, int, bool, bool, bool, Uint32, Uint32, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/include/kernel/signaldata/EventReport.hpp:85:43: warning: 'theData.EventReport::eventType' is used uninitialized in this function [-Wuninitialized]
   eventType = (nodeId << 16) | (eventType & 0xFFFF);
                                           ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/angel.cpp:52:18: note: 'theData' was declared here
   Uint32 length, theData[25];
                  ^
[ 64%] Building CXX object storage/ndb/src/kernel/CMakeFiles/ndbd.dir/SimBlockList.cpp.o
Linking CXX executable ndbd
[ 64%] Built target ndbd
[ 64%] Building CXX object storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In member function 'bool thr_send_threads::data_available()':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:1249:9: error: 'rmb' was not declared in this scope
     rmb();
         ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In member function 'void thr_send_threads::insert_node(NodeId)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:1412:9: error: 'wmb' was not declared in this scope
     wmb(); /* Ensure send threads see the change to m_first_node != 0 */
         ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In member function 'NodeId thr_send_threads::get_node()':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:1438:11: error: 'wmb' was not declared in this scope
       wmb(); /* Ensure send threads see the change to m_first_node == 0 */
           ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_write_state_other(thr_data*, thr_job_queue_head*, thr_jb_write_state*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2340:7: error: 'wmb' was not declared in this scope
   wmb();
       ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_write_state_other_wakeup(thr_data*, thr_job_queue_head*, thr_jb_write_state*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2397:7: error: 'wmb' was not declared in this scope
   wmb();
       ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_write_state_wakeup(const thr_data*, thr_data*, thr_job_queue_head*, thr_jb_write_state*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2422:9: error: 'wmb' was not declared in this scope
     wmb();
         ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_jbb_write_state(thr_data*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2452:7: error: 'wmb' was not declared in this scope
   wmb();
       ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'Uint32 link_thread_send_buffers(thr_repository::send_buffer*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2813:13: error: 'rmb' was not declared in this scope
         rmb();
             ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void pack_send_buffer(thr_data*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3159:6: error: 'mb' was not declared in this scope
   mb();
      ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_send_buffer(thr_data*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3225:7: error: 'wmb' was not declared in this scope
   wmb();
       ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In member function 'virtual bool mt_send_handle::forceSend(NodeId)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3268:8: error: 'mb' was not declared in this scope
     mb();
        ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void try_send(thr_data*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3302:8: error: 'mb' was not declared in this scope
     mb();
        ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'Uint32 do_send(thr_data*, bool)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3446:10: error: 'mb' was not declared in this scope
       mb();
          ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'bool insert_signal(thr_job_queue*, thr_job_queue_head*, thr_jb_write_state*, Uint32, const SignalHeader*, const Uint32*, const Uint32*, thr_job_buffer*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3578:9: error: 'wmb' was not declared in this scope
     wmb();
         ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void read_jbb_state(thr_data*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3628:30: error: 'read_barrier_depends' was not declared in this scope
         read_barrier_depends();
                              ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'bool read_jba_state(thr_data*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3641:24: error: 'read_barrier_depends' was not declared in this scope
   read_barrier_depends();
                        ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'Uint32 run_job_buffers(thr_data*, Signal*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3797:7: error: 'rmb' was not declared in this scope
   rmb();
       ^
storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/build.make:146: recipe for target 'storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o' failed
make[2]: *** [storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o] Error 1
CMakeFiles/Makefile2:3394: recipe for target 'storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/all' failed
make[1]: *** [storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2


I made post on MySQL forum too:
http://forums.mysql.com/read.php?10,628425,628425#msg-628425
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: [MySQL] Error durnig build

Postby moonman » Wed Feb 18, 2015 9:33 pm

Try with makeflags j1. If it builds - experiment with that setting. j11 might be too much
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3304
Joined: Sat Jan 15, 2011 3:36 am

Re: [MySQL] Error durnig build

Postby SeBO » Thu Feb 19, 2015 8:12 am

Ok i will give a shot without distcc and with -j1 ;)
SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: [MySQL] Error durnig build

Postby WarheadsSE » Thu Feb 19, 2015 4:56 pm

Yes, you should not be setting -j to any number than master's cores+1
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [MySQL] Error durnig build

Postby SeBO » Thu Feb 19, 2015 8:02 pm

Same error with -j1 :( ...

Code: Select all
[ 64%] Building CXX object storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In member function 'bool thr_send_threads::data_available()':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:1249:9: error: 'rmb' was not declared in this scope
     rmb();
         ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In member function 'void thr_send_threads::insert_node(NodeId)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:1412:9: error: 'wmb' was not declared in this scope
     wmb(); /* Ensure send threads see the change to m_first_node != 0 */
         ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In member function 'NodeId thr_send_threads::get_node()':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:1438:11: error: 'wmb' was not declared in this scope
       wmb(); /* Ensure send threads see the change to m_first_node == 0 */
           ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_write_state_other(thr_data*, thr_job_queue_head*, thr_jb_write_state*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2340:7: error: 'wmb' was not declared in this scope
   wmb();
       ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_write_state_other_wakeup(thr_data*, thr_job_queue_head*, thr_jb_write_state*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2397:7: error: 'wmb' was not declared in this scope
   wmb();
       ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_write_state_wakeup(const thr_data*, thr_data*, thr_job_queue_head*, thr_jb_write_state*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2422:9: error: 'wmb' was not declared in this scope
     wmb();
         ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_jbb_write_state(thr_data*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2452:7: error: 'wmb' was not declared in this scope
   wmb();
       ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'Uint32 link_thread_send_buffers(thr_repository::send_buffer*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:2813:13: error: 'rmb' was not declared in this scope
         rmb();
             ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void pack_send_buffer(thr_data*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3159:6: error: 'mb' was not declared in this scope
   mb();
      ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void flush_send_buffer(thr_data*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3225:7: error: 'wmb' was not declared in this scope
   wmb();
       ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In member function 'virtual bool mt_send_handle::forceSend(NodeId)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3268:8: error: 'mb' was not declared in this scope
     mb();
        ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void try_send(thr_data*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3302:8: error: 'mb' was not declared in this scope
     mb();
        ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'Uint32 do_send(thr_data*, bool)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3446:10: error: 'mb' was not declared in this scope
       mb();
          ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'bool insert_signal(thr_job_queue*, thr_job_queue_head*, thr_jb_write_state*, Uint32, const SignalHeader*, const Uint32*, const Uint32*, thr_job_buffer*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3578:9: error: 'wmb' was not declared in this scope
     wmb();
         ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'void read_jbb_state(thr_data*, Uint32)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3628:30: error: 'read_barrier_depends' was not declared in this scope
         read_barrier_depends();
                              ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'bool read_jba_state(thr_data*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3641:24: error: 'read_barrier_depends' was not declared in this scope
   read_barrier_depends();
                        ^
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp: In function 'Uint32 run_job_buffers(thr_data*, Signal*)':
/home/h3x0r/mysql-cluster/src/mysql-cluster-gpl-7.3.8/storage/ndb/src/kernel/vm/mt.cpp:3797:7: error: 'rmb' was not declared in this scope
   rmb();
       ^
storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/build.make:146: recipe for target 'storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o' failed
make[2]: *** [storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o] Error 1
CMakeFiles/Makefile2:3394: recipe for target 'storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/all' failed
make[1]: *** [storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/all] Error 2
Makefile:147: recipe for target 'all' failed

SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Re: [MySQL] Error durnig build

Postby WarheadsSE » Thu Feb 19, 2015 8:21 pm

Yes, code error is code error.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [MySQL] Error durnig build

Postby SeBO » Fri Feb 20, 2015 9:18 am

SeBO
 
Posts: 36
Joined: Tue Jan 27, 2015 6:18 pm

Next

Return to Packages

Who is online

Users browsing this forum: No registered users and 2 guests