mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Using one for all yields all sorts of issues:
build/gcc-aarch64-14.2.0/.x86_64-linux-gnu/./gcc/xgcc -Bbuild/gcc-aarch64-14.2.0/.x86_64-linux-gnu/./gcc/ -Btoolchain/aarch64-none-elf/bin/ -Btoolchain/aarch64-none-elf/lib/ -isystem toolchain/aarch64-none-elf/include -isystem toolchain/aarch64-none-elf/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -I. -I. -I../.././gcc -Ibuild/gcc-aarch64-14.2.0/libgcc -Ibuild/gcc-aarch64-14.2.0/libgcc/. -Ibuild/gcc-aarch64-14.2.0/libgcc/../gcc -Ibuild/gcc-aarch64-14.2.0/libgcc/../include -DHAVE_CC_TLS -o cpuinfo.o -MT cpuinfo.o -MD -MP -MF cpuinfo.dep -c build/gcc-aarch64-14.2.0/libgcc/config/aarch64/cpuinfo.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/features.h:548,
from toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/bits/libc-header-start.h:33,
from toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/stdint.h:26,
from build/gcc-aarch64-14.2.0/.x86_64-linux-gnu/gcc/include/stdint.h:9,
from toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/elf.h:24,
from toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/sys/auxv.h:22,
from build/gcc-aarch64-14.2.0/libgcc/config/aarch64/cpuinfo.c:28:
toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
7 | # include <gnu/stubs-soft.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
Notice the mix of paths from two architectures.
Additionally the armv8a fpu config leaks into aarch64.
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="binutils-or1k"
|
|
PKG_VERSION="$(get_pkg_version binutils)"
|
|
PKG_LICENSE="GPL"
|
|
PKG_URL=""
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
|
PKG_LONGDESC="A GNU collection of binary utilities for OpenRISC 1000."
|
|
PKG_DEPENDS_UNPACK+=" binutils"
|
|
PKG_PATCH_DIRS+=" $(get_pkg_directory binutils)/patches"
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="--target=or1k-none-elf \
|
|
--with-sysroot=${TOOLCHAIN}/or1k-none-elf/sysroot \
|
|
--without-ppl \
|
|
--enable-static \
|
|
--without-cloog \
|
|
--disable-werror \
|
|
--disable-multilib \
|
|
--disable-libada \
|
|
--disable-libssp \
|
|
--enable-version-specific-runtime-libs \
|
|
--enable-plugins \
|
|
--enable-gold \
|
|
--enable-ld=default \
|
|
--enable-lto \
|
|
--disable-nls"
|
|
|
|
unpack() {
|
|
mkdir -p ${PKG_BUILD}
|
|
tar --strip-components=1 -xf ${SOURCES}/binutils/binutils-${PKG_VERSION}.tar.xz -C ${PKG_BUILD}
|
|
}
|
|
|
|
pre_configure_host() {
|
|
unset CPPFLAGS
|
|
unset CFLAGS
|
|
unset CXXFLAGS
|
|
unset LDFLAGS
|
|
}
|
|
|
|
make_host() {
|
|
make configure-host
|
|
# override the makeinfo binary with true - this does not build the documentation
|
|
make MAKEINFO=true
|
|
}
|
|
|
|
makeinstall_host() {
|
|
# override the makeinfo binary with true - this does not build the documentation
|
|
make MAKEINFO=true install
|
|
}
|