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

安装编译环境出错 #2

Open
xm3good opened this issue Dec 29, 2024 · 1 comment
Open

安装编译环境出错 #2

xm3good opened this issue Dec 29, 2024 · 1 comment

Comments

@xm3good
Copy link

xm3good commented Dec 29, 2024

++ ID_LIKE=debian
++ HOME_URL=https://www.ubuntu.com/
++ SUPPORT_URL=https://help.ubuntu.com/
++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
++ UBUNTU_CODENAME=noble
++ LOGO=ubuntu-logo

  • DISTRO=ubuntu
  • case ${DISTRO} in
  • [[ -n noble ]]
  • CODENAME=noble
  • [[ -n noble ]]
  • LINKNAME=-noble
  • '[' 1 -ge 1 ']'
  • '[' 1 '!=' - ']'
  • '[' 13 '!=' all ']'
  • LLVM_VERSION=13
  • OPTIND=2
  • '[' 1 -ge 2 ']'
  • getopts :hm:n: arg
  • [[ 0 -ne 0 ]]
  • declare -A LLVM_VERSION_PATTERNS
  • LLVM_VERSION_PATTERNS[9]=-9
  • LLVM_VERSION_PATTERNS[10]=-10
  • LLVM_VERSION_PATTERNS[11]=-11
  • LLVM_VERSION_PATTERNS[12]=-12
  • LLVM_VERSION_PATTERNS[13]=-13
  • LLVM_VERSION_PATTERNS[14]=-14
  • LLVM_VERSION_PATTERNS[15]=-15
  • LLVM_VERSION_PATTERNS[16]=-16
  • LLVM_VERSION_PATTERNS[17]=-17
  • LLVM_VERSION_PATTERNS[18]=-18
  • LLVM_VERSION_PATTERNS[19]=-19
  • LLVM_VERSION_PATTERNS[20]=
  • '[' '!' _ ']'
  • LLVM_VERSION_STRING=-13
  • [[ -n noble ]]
  • REPO_NAME='deb http://apt.llvm.org/noble/ llvm-toolchain-noble-13 main'
  • wget -q --method=HEAD http://apt.llvm.org/noble
  • [[ ! -f /etc/apt/trusted.gpg.d/apt.llvm.org.asc ]]
  • wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key
  • tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1.4.12 (GNU/Linux)

mQINBFE9lCwBEADi0WUAApM/mgHJRU8lVkkw0CHsZNpqaQDNaHefD6Rw3S4LxNmM
EZaOTkhP200XZM8lVdbfUW9xSjA3oPldc1HG26NjbqqCmWpdo2fb+r7VmU2dq3NM
R18ZlKixiLDE6OUfaXWKamZsXb6ITTYmgTO6orQWYrnW6ckYHSeaAkW0wkDAryl2
B5v8aoFnQ1rFiVEMo4NGzw4UX+MelF7rxaaregmKVTPiqCOSPJ1McC1dHFN533FY
Wh/RVLKWo6npu+owtwYFQW+zyQhKzSIMvNujFRzhIxzxR9Gn87MoLAyfgKEzrbbT
DhqqNXTxS4UMUKCQaO93TzetX/EBrRpJj+vP640yio80h4Dr5pAd7+LnKwgpTDk1
G88bBXJAcPZnTSKu9I2c6KY4iRNbvRz4i+ZdwwZtdW4nSdl2792L7Sl7Nc44uLL/
ZqkKDXEBF6lsX5XpABwyK89S/SbHOytXv9o4puv+65Ac5/UShspQTMSKGZgvDauU
cs8kE1U9dPOqVNCYq9Nfwinkf6RxV1k1+gwtclxQuY7UpKXP0hNAXjAiA5KS5Crq
7aaJg9q2F4bub0mNU6n7UI6vXguF2n4SEtzPRk6RP+4TiT3bZUsmr+1ktogyOJCc
Ha8G5VdL+NBIYQthOcieYCBnTeIH7D3Sp6FYQTYtVbKFzmMK+36ERreL/wARAQAB
tD1TeWx2ZXN0cmUgTGVkcnUgLSBEZWJpYW4gTExWTSBwYWNrYWdlcyA8c3lsdmVz
dHJlQGRlYmlhbi5vcmc+iQI4BBMBAgAiBQJRPZQsAhsDBgsJCAcDAgYVCAIJCgsE
FgIDAQIeAQIXgAAKCRAVz00Yr090Ibx+EADArS/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----END PGP PUBLIC KEY BLOCK-----
++ apt-key list
++ grep -i llvm

@xm3good
Copy link
Author

xm3good commented Dec 29, 2024

修改LLVM版本为17-18-19的以后这步能过了,
又出别的错误了
Run cd $GITHUB_WORKSPACE/kernel
cd $GITHUB_WORKSPACE/kernel
export KERNEL_DEFCONFIG=vendor/lahaina-qgki_defconfig
echo "===================Setup Export========================="
export KERNEL_PATH=$PWD
export CLANG_PATH=~/clang
export PATH=${CLANG_PATH}/bin:${PATH}
export CLANG_TRIPLE=aarch64-linux-gnu-
export ARCH=arm64
export SUBARCH=arm64
echo "===================Setup Environment Again==================="
if [ ! -e "$CLANG_PATH/README.md" ]; then
git clone --depth=1 https://github.com/kdrag0n/proton-clang $CLANG_PATH
fi
sudo apt install --fix-missing
echo "=========================Make=========================="
make O=out CC="ccache clang" CXX="ccache clang++" ARCH=arm64 CROSS_COMPILE=$CLANG_PATH/bin/aarch64-linux-gnu- CROSS_COMPILE_ARM32=$CLANG_PATH/bin/arm-linux-gnueabi- LD=ld.lld $KERNEL_DEFCONFIG

Disable LTO

if [[ $(echo "$(awk '/MemTotal/ {print $2}' /proc/meminfo) < 16000000" | bc -l) -eq 1 ]]; then

  scripts/config --file out/.config -d LTO -d LTO_CLANG -d THINLTO -e LTO_NONE

fi

make O=out CC="ccache clang" CXX="ccache clang++" ARCH=arm64 -jnproc CROSS_COMPILE=$CLANG_PATH/bin/aarch64-linux-gnu- CROSS_COMPILE_ARM32=$CLANG_PATH/bin/arm-linux-gnueabi- LD=ld.lld 2>&1 | tee kernel.log
shell: /usr/bin/bash -e {0}
env:
CCACHE_COMPILERCHECK: %compiler% -dumpmachine; %compiler% -dumpversion
CCACHE_NOHASHDIR: true
CCACHE_MAXSIZE: 2G
CCACHE_HARDLINK: true
TAG_NAME: v5.4.256-20241229
===================Setup Export=========================
===================Setup Environment Again===================

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.
=========================Make==========================
make[1]: Entering directory '/home/runner/work/9RTKernelSu/9RTKernelSu/kernel/out'
OplusKernelEnvConfig.mk:166: "OPLUS_VND_ENV_CHG_OP9RT_PMIC_VOOCPHY is "
GEN Makefile
HOSTCC scripts/basic/fixdep
/home/runner/clang/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: unknown type [0x13] section .relr.dyn' /home/runner/clang/bin/ld: skipping incompatible /lib/x86_64-linux-gnu/libc.so.6 when searching for /lib/x86_64-linux-gnu/libc.so.6 /home/runner/clang/bin/ld: cannot find /lib/x86_64-linux-gnu/libc.so.6 /home/runner/clang/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: unknown type [0x13] section .relr.dyn'
/home/runner/clang/bin/ld: skipping incompatible /lib/x86_64-linux-gnu/libc.so.6 when searching for /lib/x86_64-linux-gnu/libc.so.6
/home/runner/clang/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn' /home/runner/clang/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2 /home/runner/clang/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2 /home/runner/clang/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn'
/home/runner/clang/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:107: scripts/basic/fixdep] Error 1
make[1]: *** [/home/runner/work/9RTKernelSu/9RTKernelSu/kernel/Makefile:569: scripts_basic] Error 2
make[1]: Leaving directory '/home/runner/work/9RTKernelSu/9RTKernelSu/kernel/out'
make: *** [Makefile:190: sub-make] Error 2
Error: Process completed with exit code 2.

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