Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to build from source code #74

Open
yuzibo opened this issue Nov 30, 2022 · 0 comments
Open

fail to build from source code #74

yuzibo opened this issue Nov 30, 2022 · 0 comments

Comments

@yuzibo
Copy link

yuzibo commented Nov 30, 2022

Hi,
I am sorry if I am missing something here.
I want to try fix the issue, but I can not to build from source code on amd64:

Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container d78b64adbc5c
 ---> 2604673bc8de
Step 4/15 : FROM fetk_base
 ---> 2604673bc8de
Step 5/15 : ARG CREATE_PACKAGE=FALSE
 ---> Running in de1a12e5f021
Removing intermediate container de1a12e5f021
 ---> a2cdffeeafaa
Step 6/15 : ARG FETK_STATIC_BUILD=ON
 ---> Running in 11e6b4376eb9
Removing intermediate container 11e6b4376eb9
 ---> decd1a47c3f7
Step 7/15 : ARG MAKEJOBS="-j"
 ---> Running in 74a9256fa468
Removing intermediate container 74a9256fa468
 ---> 1d277cf6dbd6
Step 8/15 : COPY cmake /src/cmake
 ---> 64b690ac27f7
Step 9/15 : COPY gamer /src/gamer
 ---> b4dcb967431a
Step 10/15 : COPY maloc /src/maloc
 ---> ec2f18ddc589
Step 11/15 : COPY mc /src/mc
 ---> c47c90984124
Step 12/15 : COPY punc /src/punc
 ---> 47be2c799f76
Step 13/15 : COPY CMakeLists.txt /src/CMakeLists.txt
 ---> adbaf0b329ff
Step 14/15 : COPY VERSION /src/VERSION
 ---> 6b0f3a6aac47
Step 15/15 : RUN cd /src &&     export CC=gcc &&     mkdir build &&     cd build &&     cmake         -DCREATE_PACKAGE:BOOL=${CREATE_PACKAGE}         -DFETK_STATIC_BUILD:BOOL=${FETK_STATIC_BUILD}         .. &&     make ${MAKEJOBS} install &&     if [ "${CREATE_PACKAGE,,}" = true ]; then cpack; fi
 ---> Running in ea55522af37e
CMake Error at CMakeLists.txt:20 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at CMakeLists.txt:27 (project):
  VERSION "NOTFOUND" format invalid.


-- Configuring incomplete, errors occurred!
The command '/bin/bash -c cd /src &&     export CC=gcc &&     mkdir build &&     cd build &&     cmake         -DCREATE_PACKAGE:BOOL=${CREATE_PACKAGE}         -DFETK_STATIC_BUILD:BOOL=${FETK_STATIC_BUILD}         .. &&     make ${MAKEJOBS} install &&     if [ "${CREATE_PACKAGE,,}" = true ]; then cpack; fi' returned a non-zero code: 1

Or I try to native build, but got the same error on riscv64:

# cat  start.sh
#!/bin/bash

    cmake \
        -DCREATE_PACKAGE:BOOL=FALSE \
        -DFETK_STATIC_BUILD:BOOL=ON \
        .. && \
    make ${MAKEJOBS} install && \
    if [ "${CREATE_PACKAGE,,}" = true ]; then cpack; fi

vimer@unmatched:~/build/fpu/FETK/src/build$ ./start.sh
CMake Error at CMakeLists.txt:20 (string):
  string sub-command REPLACE requires at least four arguments.


CMake Error at CMakeLists.txt:27 (project):
  VERSION "NOTFOUND" format invalid.


-- Configuring incomplete, errors occurred!

Any help will be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant