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

微软云服务器编译过程中cmake的Error1和Error2报错 #10914

Closed
Gsam333 opened this issue Feb 21, 2023 · 1 comment
Closed

微软云服务器编译过程中cmake的Error1和Error2报错 #10914

Gsam333 opened this issue Feb 21, 2023 · 1 comment

Comments

@Gsam333
Copy link

Gsam333 commented Feb 21, 2023

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)
没有类似的issue

2. 详细叙述

(1) 具体问题

A:编译环境是ubuntu18.04(debian11也试过出现一样问题)
第一次编译严格安装lede的教程来操作,一直卡在cmake相关步骤,报错erro1,error2,编译失败。

(2) 路由器型号和固件版本

A:cw-x86-P1

(3) 详细日志

A:make[2]: Entering directory '/home/debian/lede/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/debian/lede/scripts/config'
make[1]: Entering directory '/home/debian/lede'
make[2]: Entering directory '/home/debian/lede'

  • mkdir -p /home/debian/lede/staging_dir/target-x86_64_musl
  • cd /home/debian/lede/staging_dir/target-x86_64_musl
  • mkdir -p bin lib stamp usr/include usr/lib
    mkdir -p /home/debian/lede/build_dir/target-x86_64_musl/stamp
    touch /home/debian/lede/staging_dir/target-x86_64_musl/.prepared
  • mkdir -p /home/debian/lede/staging_dir/host
  • cd /home/debian/lede/staging_dir/host
  • mkdir -p bin lib stamp usr/include usr/lib
    mkdir -p /home/debian/lede/build_dir/host/stamp /home/debian/lede/staging_dir/host/include/sys
    install -m0644 /home/debian/lede/tools/include/.h /home/debian/lede/staging_dir/host/include/
    install -m0644 /home/debian/lede/tools/include/sys/
    .h /home/debian/lede/staging_dir/host/include/sys/
    ln -snf lib /home/debian/lede/staging_dir/host/lib64
    touch /home/debian/lede/staging_dir/host/.prepared
    make[3]: Entering directory '/home/debian/lede/tools/flock'
    make[3]: Leaving directory '/home/debian/lede/tools/flock'
    time: tools/flock/compile#0.04#0.00#0.05
    make[3]: Entering directory '/home/debian/lede/tools/xz'
    make[3]: Leaving directory '/home/debian/lede/tools/xz'
    time: tools/xz/compile#0.04#0.01#0.07
    make[3]: Entering directory '/home/debian/lede/tools/sed'
    make[3]: Leaving directory '/home/debian/lede/tools/sed'
    time: tools/sed/compile#0.05#0.01#0.08
    make[3]: Entering directory '/home/debian/lede/tools/libdeflate'
    make[3]: Leaving directory '/home/debian/lede/tools/libdeflate'
    time: tools/libdeflate/compile#0.04#0.01#0.06
    make[3]: Entering directory '/home/debian/lede/tools/patch'
    make[3]: Leaving directory '/home/debian/lede/tools/patch'
    time: tools/patch/compile#0.04#0.01#0.06
    make[3]: Entering directory '/home/debian/lede/tools/tar'
    make[3]: Leaving directory '/home/debian/lede/tools/tar'
    time: tools/tar/compile#0.04#0.02#0.08
    make[3]: Entering directory '/home/debian/lede/tools/m4'
    make[3]: Leaving directory '/home/debian/lede/tools/m4'
    time: tools/m4/compile#0.05#0.01#0.08
    make[3]: Entering directory '/home/debian/lede/tools/autoconf'
    make[3]: Leaving directory '/home/debian/lede/tools/autoconf'
    time: tools/autoconf/compile#0.04#0.01#0.06
    make[3]: Entering directory '/home/debian/lede/tools/autoconf-archive'
    make[3]: Leaving directory '/home/debian/lede/tools/autoconf-archive'
    time: tools/autoconf-archive/compile#0.05#0.01#0.07
    make[3]: Entering directory '/home/debian/lede/tools/ninja'
    make[3]: Leaving directory '/home/debian/lede/tools/ninja'
    time: tools/ninja/compile#0.03#0.01#0.06
    make[3]: Entering directory '/home/debian/lede/tools/meson'
    make[3]: Leaving directory '/home/debian/lede/tools/meson'
    time: tools/meson/compile#0.03#0.00#0.05
    make[3]: Entering directory '/home/debian/lede/tools/pkgconf'
    make[3]: Leaving directory '/home/debian/lede/tools/pkgconf'
    time: tools/pkgconf/compile#0.04#0.00#0.06
    make[3]: Entering directory '/home/debian/lede/tools/automake'
    make[3]: Leaving directory '/home/debian/lede/tools/automake'
    time: tools/automake/compile#0.04#0.02#0.07
    make[3]: Entering directory '/home/debian/lede/tools/missing-macros'
    make[3]: Leaving directory '/home/debian/lede/tools/missing-macros'
    time: tools/missing-macros/compile#0.02#0.01#0.04
    make[3]: Entering directory '/home/debian/lede/tools/libtool'
    make[3]: Leaving directory '/home/debian/lede/tools/libtool'
    time: tools/libtool/compile#0.04#0.01#0.06
    make[3]: Entering directory '/home/debian/lede/tools/flex'
    make[3]: Leaving directory '/home/debian/lede/tools/flex'
    time: tools/flex/compile#0.04#0.00#0.06
    make[3]: Entering directory '/home/debian/lede/tools/bison'
    make[3]: Leaving directory '/home/debian/lede/tools/bison'
    time: tools/bison/compile#0.04#0.02#0.08
    make[3]: Entering directory '/home/debian/lede/tools/bc'
    make[3]: Leaving directory '/home/debian/lede/tools/bc'
    time: tools/bc/compile#0.04#0.00#0.06
    make[3]: Entering directory '/home/debian/lede/tools/libressl'
    make[3]: Leaving directory '/home/debian/lede/tools/libressl'
    time: tools/libressl/compile#0.06#0.02#0.12
    make[3]: Entering directory '/home/debian/lede/tools/expat'
    make[3]: Leaving directory '/home/debian/lede/tools/expat'
    time: tools/expat/compile#0.04#0.00#0.06
    make[3]: Entering directory '/home/debian/lede/tools/zlib'
    make[3]: Leaving directory '/home/debian/lede/tools/zlib'
    time: tools/zlib/compile#0.04#0.00#0.07
    make[3]: Entering directory '/home/debian/lede/tools/zstd'
    make[3]: Leaving directory '/home/debian/lede/tools/zstd'
    time: tools/zstd/compile#0.04#0.01#0.07
    make[3]: Entering directory '/home/debian/lede/tools/cmake'
    (cd /home/debian/lede/build_dir/host/cmake-3.25.2/; if [ -x configure ]; then cp -fpR /home/debian/lede/scripts/config.{guess,sub} /home/debian/lede/build_dir/host/cmake-3.25.2// && CC="gcc" CFLAGS="-O2 -I/home/debian/lede/staging_dir/host/include " CXX="g++" CPPFLAGS="-I/home/debian/lede/staging_dir/host/include " CXXFLAGS="" LDFLAGS="-L/home/debian/lede/staging_dir/host/lib -Wl,-rpath,/home/debian/lede/staging_dir/host/lib" CONFIG_SHELL="/usr/bin/env bash" CC="gcc" CXX="g++" MAKEFLAGS="" CXXFLAGS="-O2 -I/home/debian/lede/staging_dir/host/include " MAKE="/home/debian/lede/staging_dir/host/bin/ninja" bash ./configure --prefix="/home/debian/lede/staging_dir/host" --system-expat --system-liblzma --system-zlib --system-zstd --generator=Ninja ; fi )

CMake 3.25.2, Copyright 2000-2022 Kitware, Inc. and Contributors
C compiler on this system is: gcc -O2 -I/home/debian/lede/staging_dir/host/include
C++ compiler on this system is: g++ -O2 -I/home/debian/lede/staging_dir/host/include
Ninja processor on this system is: /home/debian/lede/staging_dir/host/bin/ninja
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ has <ext/stdio_filebuf.h>

[1/177] g++ -O2 -I/home/debian/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -I/home/debian/lede/build_dir/host/cmake-3.25.2/Bootstrap.cmk -I/home/debian/lede/build_dir/host/cmake-3.25.2/Source -I/home/debian/lede/build_dir/host/cmake-3.25.2/Source/LexerParser -I/home/debian/lede/build_dir/host/cmake-3.25.2/Utilities/std -I/home/debian/lede/build_dir/host/cmake-3.25.2/Utilities -c /home/debian/lede/build_dir/host/cmake-3.25.2/Source/cmGeneratorTarget.cxx -o cmGeneratorTarget.o
FAILED: cmGeneratorTarget.o
g++ -O2 -I/home/debian/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -I/home/debian/lede/build_dir/host/cmake-3.25.2/Bootstrap.cmk -I/home/debian/lede/build_dir/host/cmake-3.25.2/Source -I/home/debian/lede/build_dir/host/cmake-3.25.2/Source/LexerParser -I/home/debian/lede/build_dir/host/cmake-3.25.2/Utilities/std -I/home/debian/lede/build_dir/host/cmake-3.25.2/Utilities -c /home/debian/lede/build_dir/host/cmake-3.25.2/Source/cmGeneratorTarget.cxx -o cmGeneratorTarget.o
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[2/177] g++ -O2 -I/home/debian/lede/staging_dir/host/include -D_FILE_OFFSET_BITS=64 -DCMAKE_BOOTSTRAP -DCMake_HAVE_CXX_MAKE_UNIQUE=1 -I/home/debian/lede/build_dir/host/cmake-3.25.2/Bootstrap.cmk -I/home/debian/lede/build_dir/host/cmake-3.25.2/Source -I/home/debian/lede/build_dir/host/cmake-3.25.2/Source/LexerParser -I/home/debian/lede/build_dir/host/cmake-3.25.2/Utilities/std -I/home/debian/lede/build_dir/host/cmake-3.25.2/Utilities -c /home/debian/lede/build_dir/host/cmake-3.25.2/Source/cmGlobalGenerator.cxx -o cmGlobalGenerator.o
ninja: build stopped: subcommand failed.

Error when bootstrapping CMake:
Problem while running /home/debian/lede/staging_dir/host/bin/ninja

Log of errors: /home/debian/lede/build_dir/host/cmake-3.25.2/Bootstrap.cmk/cmake_bootstrap.log

make[3]: *** [Makefile:60: /home/debian/lede/build_dir/host/cmake-3.25.2/.configured] Error 9
make[3]: Leaving directory '/home/debian/lede/tools/cmake'
time: tools/cmake/compile#11.92#3.36#325.02
ERROR: tools/cmake failed to build.
make[2]: *** [tools/Makefile:219: tools/cmake/compile] Error 1
make[2]: Leaving directory '/home/debian/lede'
make[1]: *** [tools/Makefile:215: /home/debian/lede/staging_dir/host/stamp/.tools_compile_nyyynyynnyyynynyyyyyyynyynnynyynnynnyyyyyyyyyyyyyyyyynynnyyyyyyy] Error 2
make[1]: Leaving directory '/home/debian/lede'
make: *** [/home/debian/lede/include/toplevel.mk:231: world] Error 2

@ecrasy
Copy link

ecrasy commented Feb 21, 2023

云编译建议20.04或者22.04

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

3 participants