[
https://issues.apache.org/jira/browse/KUDU-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jordan Birdsell resolved KUDU-1706.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Resolved with commit fd81373177dbd159861df38b25ebec73d0efd0de by Andy Stadtler
(not on JIRA).
> Unable to build from source using Python 3
> ------------------------------------------
>
> Key: KUDU-1706
> URL: https://issues.apache.org/jira/browse/KUDU-1706
> Project: Kudu
> Issue Type: Improvement
> Components: build
> Affects Versions: 1.0.1
> Environment: uname -a: Linux desktop 4.4.0-43-generic #63-Ubuntu SMP
> Wed Oct 12 13:48:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
> python 3 installed by default
> Reporter: Greg
> Fix For: 1.2.0
>
>
> Building from source using results in Python print Syntax error.
> Running this script:
> {code:shell}
> #!/bin/bash
> sudo apt-get -y install git autoconf automake \
> curl gcc g++ libsasl2-dev libsasl2-modules \
> libtool ntp patch pkg-config make rsync unzip vim-common gdb python
> lsb-release
> git clone https://github.com/apache/kudu
> cd kudu
> thirdparty/build-if-necessary.sh
> mkdir -p build/release
> cd build/release
> ../../thirdparty/installed/bin/cmake \
> -DCMAKE_BUILD_TYPE=release \
> ../..
> make -j4
> {code}
> Results in:
> {code:shell}
> ++ BOOST_VERSION=1_61_0
> ++ BOOST_NAME=boost_1_61_0
> ++ BOOST_SOURCE=/home/greg/kudu/thirdparty/src/boost_1_61_0
> + source /home/greg/kudu/thirdparty/build-definitions.sh
> + /home/greg/kudu/thirdparty/preflight.py
> File "/home/greg/kudu/thirdparty/preflight.py", line 60
> print "***", error_msg
> ^
> SyntaxError: Missing parentheses in call to 'print'
> kudu.sh: line 12: ../../thirdparty/installed/bin/cmake: No such file or
> directory
> make: *** No targets specified and no makefile found. Stop.
> {code}
> Adding brackets to the print statements in
> /home/greg/kudu/thirdparty/preflight.py and running the build script again
> results in:
> {code:shell}
> ++ BOOST_VERSION=1_61_0
> ++ BOOST_NAME=boost_1_61_0
> ++ BOOST_SOURCE=/home/greg/kudu/thirdparty/src/boost_1_61_0
> + source /home/greg/kudu/thirdparty/build-definitions.sh
> + /home/greg/kudu/thirdparty/preflight.py
> File "/home/greg/kudu/thirdparty/preflight.py", line 84
> print(>>p.stdin, script)
> ^
> SyntaxError: invalid syntax
> kudu.sh: line 12: ../../thirdparty/installed/bin/cmake: No such file or
> directory
> make: *** No targets specified and no makefile found. Stop.
> {code}
> Then removing the ">>" from line 84 and running the build script again
> results in:
> {code:shell}
> ++ BOOST_VERSION=1_61_0
> ++ BOOST_NAME=boost_1_61_0
> ++ BOOST_SOURCE=/home/greg/kudu/thirdparty/src/boost_1_61_0
> + source /home/greg/kudu/thirdparty/build-definitions.sh
> + /home/greg/kudu/thirdparty/preflight.py
> Traceback (most recent call last):
> File "/home/greg/kudu/thirdparty/preflight.py", line 35, in <module>
> DEV_NULL = file("/dev/null", "wb")
> NameError: name 'file' is not defined
> kudu.sh: line 12: ../../thirdparty/installed/bin/cmake: No such file or
> directory
> make: *** No targets specified and no makefile found. Stop.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)