Coder Social home page Coder Social logo

Comments (2)

ekoby avatar ekoby commented on June 1, 2024

can you post cmake command output?

from ziti-sdk-c.

dvershinin avatar dvershinin commented on June 1, 2024

Here's entire RPM build log starting from prep section where I do the necessary things in order to built from a github archive..

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.UyXgJe
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf ziti-sdk-c-0.22.0
+ /usr/bin/gzip -dc /builddir/build/SOURCES/0.22.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ziti-sdk-c-0.22.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ sed -i 's@DESTINATION lib@DESTINATION lib64@' CMakeLists.txt
+ sed -i /git.cmake/d CMakeLists.txt
+ sed -ri 's@.*HAVE_LIBSODIUM.*@option(HAVE_LIBSODIUM "use and link installed shared libsodium library" ON)@' CMakeLists.txt
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.LmHtwl
+ umask 022
+ cd /builddir/build/BUILD
+ cd ziti-sdk-c-0.22.0
+ export ver=0.22.0
+ ver=0.22.0
+ mkdir ./build
~/build/BUILD/ziti-sdk-c-0.22.0/build ~/build/BUILD/ziti-sdk-c-0.22.0
+ pushd ./build
+ cmake3 .. -DCMAKE_BUILD_TYPE=Release '-DCMAKE_CXX_FLAGS:STRING=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' '-DCMAKE_C_FLAGS:STRING=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-error=unused-result' -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64
CMake Warning at CMakeLists.txt:4 (project):
  VERSION keyword not followed by a value or was followed by a value that
  expanded to nothing.


-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
project version: 
git info:
   branch : 
     hash : 
          date : 

using Unix Makefiles
cross-compiling FALSE
Project: ziti-sdk@v
using mbedTLS libraries
CMake Warning (dev) at build/_deps/mbedtls-src/CMakeLists.txt:5 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Python3: /usr/bin/python3.6 (found version "3.6.8") found components: Interpreter 
uvlink src = /builddir/build/BUILD/ziti-sdk-c-0.22.0/build/_deps/uv_link-src
CMake Error at CMakeLists.txt:73 (if):
  if given arguments:

    "STREQUAL" "main"

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
See also "/builddir/build/BUILD/ziti-sdk-c-0.22.0/build/CMakeFiles/CMakeOutput.log".


RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.LmHtwl (%build)
    Bad exit status from /var/tmp/rpm-tmp.LmHtwl (%build)
Finish: rpmbuild ziti-0.22.0-1.el8.src.rpm
Finish: build phase for ziti-0.22.0-1.el8.src.rpm
ERROR: Exception(ziti-0.22.0-1.el8.src.rpm) Config(gps-8-x86_64) 0 minutes 32 seconds
INFO: Results and/or logs in: .
ERROR: Command failed: 
 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/ziti.spec

from ziti-sdk-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.