Author Topic: [Support Request] Build Error: Performing autogen step for 'project_secp256k'  (Read 2803 times)

0 Members and 1 Guest are viewing this topic.

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
@clayop thanks for the reference!  Turns out my prerequisites were missing both the libtool and autoconf packages.  With those both added the build went straight away within the Graphene build script.  I did not need to build it separately prior.

Can you update the platform install documentation with a pull request so that others make sure to install libtool/autoconf on your platform.   Thanks.

Done :)
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
See https://github.com/cryptonomex/graphene/issues/138

Looks like vikram knows it.

Run this command before cmake:
Code: [Select]
sudo apt-get install autoconf libtool
« Last Edit: July 18, 2015, 07:19:59 am by abit »
BitShares committee member: abit
BitShares witness: in.abit

Offline bytemaster

@clayop thanks for the reference!  Turns out my prerequisites were missing both the libtool and autoconf packages.  With those both added the build went straight away within the Graphene build script.  I did not need to build it separately prior.

Can you update the platform install documentation with a pull request so that others make sure to install libtool/autoconf on your platform.   Thanks.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Fox

@Clayop thanks for the reference!  Turns out my prerequisites were missing both the libtool and autoconf packages.  With those both added the build went straight away within the Graphene build script.  I did not need to build it separately prior. 
Witness: fox

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline Fox

Requesting assistance with building Graphene on Ubuntu 14.04LTS.  I have reviewed the Build Ubuntu documentation for Graphene [1] and taken care to verify Boost 1.57 is referenced within the CMake script.  However, the build fails within 'project_secp256k1' with the output:
Code: [Select]
[  6%] Performing autogen step for 'project_secp256k1'
/home/myUser/graphene/libraries/fc/vendor/secp256k1-zkp/autogen.sh: 3: /home/myUser/graphene/libraries/fc/vendor/secp256k1-zkp/autogen.sh: autoreconf: not found
make[2]: *** [libraries/fc/vendor/secp256k1-zkp/src/project_secp256k1-stamp/./project_secp256k1-autogen] Error 127
make[1]: *** [libraries/fc/CMakeFiles/project_secp256k1.dir/all] Error 2
make: *** [all] Error 2
myHost:~/graphene$
[1] https://github.com/cryptonomex/graphene/wiki/build-ubuntu

I did review closed Issue #76 [2] which references this library and similar build issues.  Those changes were merged into Master three weeks back, so perhaps this is new, yet related.
[2] https://github.com/cryptonomex/graphene/issues/76

For troubleshooting purposes I'll include:
  • My Graphene Build Script
  • CMake Output
  • Make Output

My Graphene Build Script
Code: [Select]
# Prep Server
sudo apt-get update
sudo apt-get -y install dphys-swapfile

# Install Prerequisite Packages
sudo apt-get -y install ntp cmake git libreadline-dev uuid-dev g++ libdb++-dev libdb-dev zip libssl-dev openssl build-essential python-dev autotools-dev libicu-dev libbz2-dev libboost-dev libboost-all-dev

# Install Boost 1.57
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.bz2/download'
tar -xf download
cd boost_1_57_0/
./bootstrap.sh --prefix=/usr/local/
./b2 install

# Install Graphene
git clone https://github.com/cryptonomex/graphene.git
git submodule update --init --recursive
cmake -DBOOST_ROOT="/usr/local/" -DCMAKE_BUILD_TYPE=Debug .
make -j4

CMake Output
Code: [Select]
myHost:~/graphene$ sudo cmake -DBOOST_ROOT="/usr/local/" -DCMAKE_BUILD_TYPE=Debug .
-- Using custom FindBoost.cmake
-- Boost version: 1.57.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
-- Using custom FindBoost.cmake
-- Boost version: 1.57.0
-- Found the following Boost libraries:
--   coroutine
-- Configuring Graphene on Linux
-- Using  as BerkeleyDB root
-- Looking for: db_cxx-6.0
-- debug/usr/lib/x86_64-linux-gnu/libdb_cxx.sooptimized/usr/lib/x86_64-linux-gnu/libdb_cxx.so
-- Configuring project fc located in: /home/myUser/graphene/libraries/fc
-- Configuring fc to build on Unix/Apple
-- Using custom FindBoost.cmake
-- Boost version: 1.57.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
--   iostreams
--   coroutine
** websocketpp

=========== Used Build Configuration =============

-- ENABLE_CPP11        = ON
-- BUILD_EXAMPLES      = OFF
-- BUILD_TESTS         = OFF

-- WEBSOCKETPP_ROOT    = /home/myUser/graphene/libraries/fc/vendor/websocketpp
-- WEBSOCKETPP_BIN     = /home/myUser/graphene/libraries/fc/vendor/websocketpp/bin
-- WEBSOCKETPP_LIB     = /home/myUser/graphene/libraries/fc/vendor/websocketpp/lib
-- Install prefix      = /usr/local

-- WEBSOCKETPP_BOOST_LIBS        =
-- WEBSOCKETPP_PLATFORM_LIBS     =
-- WEBSOCKETPP_PLATFORM_TSL_LIBS =

-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)
-- Finished fc module configuration...
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/myUser/graphene

Make Output
Code: [Select]
myHost:~/graphene$ sudo make
[  0%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/api.cpp.o
[  1%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/buffer.cpp.o
[  1%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/cache.cpp.o
[  2%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/ccc.cpp.o
[  2%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/channel.cpp.o
[  3%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/common.cpp.o
[  3%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/core.cpp.o
[  4%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/epoll.cpp.o
[  4%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/list.cpp.o
[  5%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/md5.cpp.o
[  5%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/packet.cpp.o
[  6%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/queue.cpp.o
[  6%] Building CXX object libraries/fc/vendor/udt4/CMakeFiles/udt.dir/src/window.cpp.o
Linking CXX static library libudt_debug.a
[  6%] Built target udt
[  6%] Performing autogen step for 'project_secp256k1'
/home/myUser/graphene/libraries/fc/vendor/secp256k1-zkp/autogen.sh: 3: /home/myUser/graphene/libraries/fc/vendor/secp256k1-zkp/autogen.sh: autoreconf: not found
make[2]: *** [libraries/fc/vendor/secp256k1-zkp/src/project_secp256k1-stamp/./project_secp256k1-autogen] Error 127
make[1]: *** [libraries/fc/CMakeFiles/project_secp256k1.dir/all] Error 2
make: *** [all] Error 2
myHost:~/graphene$

Any suggestion for troubleshooting is greatly appreciated.
Witness: fox