[Maria-developers] Issue with setting up of MariaDB and solve issue MDEV-14896
Hello developers I am setting up the codebase for MariaDB on my system to understand the codebase and solve some issues. But I am facing a problem which I am not able to solve when I run "make" command. Error log: https://pastebin.com/u5fAhMHX OS: MacOS 10.13.3 Python version: 2.7.14 Please let me know how can I set up so that I can run and test the changes. Also, I want to solve issue MDEV-14896. Please connect me to the owner of the issue so that I can discuss the changes. ( https://jira.mariadb.org/browse/MDEV-14896 ) Thanks Aman Jain
Hi, Aman! On Mar 08, Aman Jain wrote:
Hello developers
I am setting up the codebase for MariaDB on my system to understand the codebase and solve some issues. But I am facing a problem which I am not able to solve when I run "make" command.
Error log: https://pastebin.com/u5fAhMHX OS: MacOS 10.13.3 Python version: 2.7.14
Please let me know how can I set up so that I can run and test the changes.
A simple workaround would be to build without tokudb: cmake -DPLUGIN_TOKUDB=NO alternatively, try to see where exactly xz is trying to install yourself and why it fails.
Also, I want to solve issue MDEV-14896. Please connect me to the owner of the issue so that I can discuss the changes. (https://jira.mariadb.org/browse/MDEV-14896)
You did everything perfectly. Ask in Jira. Wait a bit, say, a day or two, if nobody answers, ask here. Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Hi,
On Mar 8, 2018, at 1:16 PM, Sergei Golubchik <serg@mariadb.org> wrote:
... I am setting up the codebase for MariaDB on my system to understand the codebase and solve some issues. But I am facing a problem which I am not able to solve when I run "make" command.
Error log: https://pastebin.com/u5fAhMHX OS: MacOS 10.13.3 Python version: 2.7.14
Please let me know how can I set up so that I can run and test the changes.
A simple workaround would be to build without tokudb:
cmake -DPLUGIN_TOKUDB=NO
alternatively, try to see where exactly xz is trying to install yourself and why it fails.
I encountered this too, the reason for the failure is that none of the helper scripts in storage/tokudb/PerconaFT/xz/src/build_lzma/build-aux/ are set as executable, including install-sh. Pasting the relevant lines from plain ./configure && make install in xz's source: -- test -z "/usr/local/include" || ../../../build-aux/install-sh -c -d "/usr/local/include" /bin/sh: ../../../build-aux/install-sh: Permission denied ... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d --- Also the reason why this doesn't happen for other setups is most likely having gnu's coreutils from Homebrew or otherwise installed, in which case xz's configure defaults to using ginstall(1) instead of fallback install-sh wrapper. Can I get some pointers as to whether it is best to try and fix in xz tarball, PerconaFT upstream or workaround in cmake config? Best regards, Shinnok
Hi, Shinnok! On Apr 03, Shinnok wrote:
I encountered this too, the reason for the failure is that none of the helper scripts in storage/tokudb/PerconaFT/xz/src/build_lzma/build-aux/ are set as executable, including install-sh.
Pasting the relevant lines from plain ./configure && make install in xz's source: -- test -z "/usr/local/include" || ../../../build-aux/install-sh -c -d "/usr/local/include" /bin/sh: ../../../build-aux/install-sh: Permission denied ... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d ---
Also the reason why this doesn't happen for other setups is most likely having gnu's coreutils from Homebrew or otherwise installed, in which case xz's configure defaults to using ginstall(1) instead of fallback install-sh wrapper.
Can I get some pointers as to whether it is best to try and fix in xz tarball, PerconaFT upstream or workaround in cmake config?
I'd just 'chmod +x' on all scripts that need to be executable. Could you do that, please? chmod them one by one until the build starts working? Then just tell me what scripts need it and I'll fix it for the next release. Thanks! Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Hi Sergei,
On Apr 3, 2018, at 1:20 PM, Sergei Golubchik <serg@mariadb.org> wrote:
Hi, Shinnok!
On Apr 03, Shinnok wrote:
I encountered this too, the reason for the failure is that none of the helper scripts in storage/tokudb/PerconaFT/xz/src/build_lzma/build-aux/ are set as executable, including install-sh.
Pasting the relevant lines from plain ./configure && make install in xz's source: -- test -z "/usr/local/include" || ../../../build-aux/install-sh -c -d "/usr/local/include" /bin/sh: ../../../build-aux/install-sh: Permission denied ... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d ---
Also the reason why this doesn't happen for other setups is most likely having gnu's coreutils from Homebrew or otherwise installed, in which case xz's configure defaults to using ginstall(1) instead of fallback install-sh wrapper.
Can I get some pointers as to whether it is best to try and fix in xz tarball, PerconaFT upstream or workaround in cmake config?
I'd just 'chmod +x' on all scripts that need to be executable.
Could you do that, please? chmod them one by one until the build starts working? Then just tell me what scripts need it and I'll fix it for the next release.
Sure, apparently only install-sh needs chmod. I also created a Jira issue and an accompanying PR for a bunch of other issues I encountered building on the Mac. I can include this chmod also in this patch if you see it fit. https://jira.mariadb.org/browse/MDEV-15778 <https://jira.mariadb.org/browse/MDEV-15778> https://github.com/MariaDB/server/pull/691 <https://github.com/MariaDB/server/pull/691> Thanks, Shinnok
Hi, Shinnok! On Apr 04, Shinnok wrote:
I'd just 'chmod +x' on all scripts that need to be executable.
Could you do that, please? chmod them one by one until the build starts working? Then just tell me what scripts need it and I'll fix it for the next release.
Sure, apparently only install-sh needs chmod. I also created a Jira issue and an accompanying PR for a bunch of other issues I encountered building on the Mac. I can include this chmod also in this patch if you see it fit.
https://jira.mariadb.org/browse/MDEV-15778 https://github.com/MariaDB/server/pull/691
I see you've already included it. Great, thanks. Regards, Sergei Chief Architect MariaDB and security@mariadb.org
participants (3)
-
Aman Jain
-
Sergei Golubchik
-
Shinnok