-
Notifications
You must be signed in to change notification settings - Fork 12
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
Build fail in ubuntu 22.04 c-stack.c:55:26: error: missing binary operator before token "(" #19
Comments
上面是ubuntu 的版本不对,需要使用 ubuntu 20.04才行, 如果需要使用 22.04,请切到 |
似乎是这个bug导致的 https://bugs.buildroot.org/show_bug.cgi?id=13721 修复的commit参见 https://git.buildroot.org/buildroot/commit/?id=5a9504831f3fa1ef3be334036c93da30150fde55 dev_nuclei_next的分支的buildroot版本刚好是 关于分支介绍参见 #2 |
如果使用root账户构建(例如docker下的root)可能会报如下错误
解决方案 就是 运行 但是不建议使用 root账户,强烈反对root和普通用户混用,会带来一堆问题。 |
测试ubuntu 22.04 的docker,下载代码,切换到 测试 commit为 ff7509e # in host
docker run -it ubuntu:22.04
# in docker now, default is root account
# not recommend to use root account in normal non-docker environment
# update apt package index
apt update
git clone -b dev_nuclei_5.10_v2 --depth 5 https://github.com/Nuclei-Software/nuclei-linux-sdk
cd nuclei-linux-sdk
git submodule update --init --depth=5
# please make sure source code cloned and updated successfully without any error
# install required packages
xargs apt install -y < .github/apt.txt
# file is also required
apt install file
# you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
export FORCE_UNSAFE_CONFIGURE=1
# build freeloader and bootimages
make freeloader bootimages
# install qemu via wget
wget https://nucleisys.com/upload/files/toochain/qemu/nuclei-qemu-2023.10-linux-x64.tar.gz
tar -xzf nuclei-qemu-2023.10-linux-x64.tar.gz
export PATH=$(pwd)/qemu/bin:$PATH
# check required libraries are installed or not for qemu
ldd `which qemu-system-riscv64`
# Fix gdb missing libgmp.so.3, see https://github.com/Nuclei-Software/nuclei-linux-sdk/issues/5
ln -s /lib/x86_64-linux-gnu/libgmp.so /lib/x86_64-linux-gnu/libgmp.so.3
# run in qemu
make run_qemu
|
You can try |
如下图所示
The text was updated successfully, but these errors were encountered: