-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
libstdc++ currently fails with ../.././libgcc/config/i386/cpuinfo.c: In function ‘get_available_features’: ../.././libgcc/config/i386/cpuinfo.c:388:14: error: ‘bit_AVX512VP2INTERSECT’ undeclared (first use in this function); did you mean ‘FEATURE_AVX512VP2INTERSECT’? if (edx & bit_AVX512VP2INTERSECT) ^~~~~~~~~~~~~~~~~~~~~~ FEATURE_AVX512VP2INTERSECT ../.././libgcc/config/i386/cpuinfo.c:388:14: note: each undeclared identifier is reported only once for each function it appears in ../.././libgcc/config/i386/cpuinfo.c:392:14: error: ‘bit_AVX512BF16’ undeclared (first use in this function); did you mean ‘bit_AVX512F’? if (eax & bit_AVX512BF16)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
PKG_NAME = glibc | ||
PKG_VERS = 2.28 | ||
PKG_EXT = tar.xz | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)-build | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = http://ftpmirror.gnu.org/$(PKG_NAME) | ||
|
||
DEPENDS = | ||
|
||
#REQUIRE_KERNEL = 1 | ||
|
||
HOMEPAGE = https://www.gnu.org/software/libc/started.html | ||
COMMENT = The GNU C Library (glibc) | ||
LICENSE = GPLv3 | ||
|
||
CONFIGURE_ARGS += --prefix=$(INSTALL_PREFIX) | ||
CONFIGURE_ARGS += --disable-sanity-checks | ||
# CONFIGURE_ARGS += --with-headers=$(KERNAL_ROOT) | ||
|
||
CONFIGURE_TARGET = glibc_config | ||
INSTALL_TARGET = glibc_install | ||
|
||
include ../../mk/spksrc.cross-cc.mk | ||
|
||
.PHONY: glibc_config glibc_build glibc_install | ||
glibc_config: | ||
mkdir -p $(WORK_DIR)/$(PKG_NAME)-$(PKG_VERS)-build | ||
@$(RUN) $(WORK_DIR)/$(PKG_NAME)-$(PKG_VERS)/configure $(CONFIGURE_ARGS) | ||
|
||
glibc_install: | ||
@$(RUN) $(MAKE) install DESTDIR=$(INSTALL_DIR) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
glibc-2.28.tar.xz SHA1 ccb5dc9e51a9884df8488f86982439d47b283b2a | ||
glibc-2.28.tar.xz SHA256 b1900051afad76f7a4f73e71413df4826dce085ef8ddb785a945b66d7d513082 | ||
glibc-2.28.tar.xz MD5 c81d2388896379997bc359d4f2084239 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
PKG_NAME = libstdc++ | ||
PARENT_PKG_NAME = gcc | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
th0ma7
|
||
PKG_VERS = 10.2.0 | ||
PKG_EXT = tar.xz | ||
PKG_DIR = $(PARENT_PKG_NAME)-$(PKG_VERS) | ||
PKG_DIST_NAME = $(PARENT_PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = http://ftpmirror.gnu.org/$(PARENT_PKG_NAME)/$(PARENT_PKG_NAME)-$(PKG_VERS) | ||
|
||
BUILD_DEPENDS = cross/gmp cross/mpfr cross/mpc | ||
|
||
HOMEPAGE = https://gcc.gnu.org/ | ||
COMMENT = This package contains an additional runtime library for C++ programs built with the GNU compiler. | ||
LICENSE = GPLv3 | ||
|
||
|
||
include ../../mk/spksrc.archs.mk | ||
ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS) $(ARMv7_ARCHS) $(ARMv7L_ARCHS) $(ARMv8_ARCHS)),$(ARCH)) | ||
BUILD_TARGET = arm-unknown-linux-gnueabi | ||
endif | ||
ifeq ($(findstring $(ARCH),$(i686_ARCHS)),$(ARCH)) | ||
BUILD_TARGET = i686-linux-gnu | ||
endif | ||
ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH)) | ||
BUILD_TARGET = x86_64-pc-linux-gnu | ||
endif | ||
ifeq ($(findstring $(ARCH),$(PPC_ARCHS)),$(ARCH)) | ||
BUILD_TARGET = powerpc-linux-gnu | ||
endif | ||
|
||
include ../../mk/spksrc.cross-cc.mk | ||
|
||
GNU_CONFIGURE = 1 | ||
ADDITIONAL_CXXFLAGS += -std=c++11 -march=x86-64 | ||
|
||
CONFIGURE_ARGS += --target=$(BUILD_TARGET) | ||
# CONFIGURE_ARGS += --build=$(BUILD_TARGET) | ||
CONFIGURE_ARGS += --host=x86_64-pc-linux-gnu | ||
CONFIGURE_ARGS += --with-gmp $(STAGING_INSTALL_PREFIX) | ||
CONFIGURE_ARGS += --with-mpfr $(STAGING_INSTALL_PREFIX) | ||
CONFIGURE_ARGS += --with-mpc $(STAGING_INSTALL_PREFIX) | ||
CONFIGURE_ARGS += --prefix=$(INSTALL_PREFIX) | ||
#CONFIGURE_ARGS += --enable-shared=libstdc++ | ||
CONFIGURE_ARGS += --enable-languages=c++ | ||
CONFIGURE_ARGS += --disable-nls | ||
CONFIGURE_ARGS += --disable-multilib | ||
# CONFIGURE_ARGS += --with-system-zlib | ||
CONFIGURE_ARGS += --without-headers | ||
# CONFIGURE_ARGS += --with-sysroot=/ | ||
# CONFIGURE_ARGS += --with-sysroot=$(TOOLKIT_ROOT)/$(BUILD_TARGET)/$(BUILD_TARGET)/sys-root | ||
# CONFIGURE_ARGS += --with-native-system-header-dir=$(TOOLKIT_ROOT)/$(BUILD_TARGET)/$(BUILD_TARGET)/sys-root/usr/include | ||
# CONFIGURE_ARGS += --with-native-system-header-dir=/usr/include/ | ||
|
||
COMPILE_TARGET = gcc_build | ||
INSTALL_TARGET = gcc_install | ||
|
||
## force newer system bintools | ||
CONFIGURE_ARGS += --with-ld=/usr/bin/ld | ||
CONFIGURE_ARGS += --with-as=/usr/bin/as | ||
## force newer system compiler from host systemm since the gcc from the toolchain is too old, | ||
## we can still cross compile by setting the target touple. | ||
# env -u LDSHARED -u MAKEFLAGS -u PKG_CONFIG -u PKG_CONFIG_LIBDIR -u PKG_CONFIG_PATH | ||
ENV += LD= | ||
ENV += CPP= | ||
ENV += NM= | ||
ENV += CC= | ||
ENV += RANLIB= | ||
ENV += CXX= | ||
ENV += AR= | ||
ENV += STRIP= | ||
ENV += OBJDUM= | ||
ENV += READELF= | ||
ENV += AS= | ||
ENV += OBJDUMP= | ||
ENV += CFLAGS="-I$(STAGING_INSTALL_PREFIX)/include -I/usr/include/ -march=x86-64" | ||
ENV += CPPFLAGS="-I$(STAGING_INSTALL_PREFIX)/include -I/usr/include/" | ||
ENV += CXXFLAGS="-I$(STAGING_INSTALL_PREFIX)/include -I/usr/include/ -std=c++11 -march=x86-64" | ||
ENV += LDFLAGS=" -L$(STAGING_INSTALL_PREFIX)/lib -L/usr/lib -Wl,--rpath-link,$(STAGING_INSTALL_PREFIX)/lib -Wl,--rpath,/usr/local/libstdc++/lib " | ||
#ENV += LD_LIBRARY_PATH=-L$(STAGING_INSTALL_PREFIX)/lib | ||
.PHONY: gcc_build gcc_install | ||
gcc_build: | ||
# quick hack to "fix missing commands for the " | ||
ln -s /usr/bin/gcc /usr/bin/x86_64-pc-linux-gnu-gcc | ||
ln -s /usr/bin/cc /usr/bin/x86_64-pc-linux-gnu-cc | ||
ln -s /usr/bin/ar /usr/bin/x86_64-pc-linux-gnu-ar | ||
@$(RUN) $(MAKE) all-target-libstdc++-v3 | ||
rm /usr/bin/x86_64-pc-linux-gnu-gcc | ||
rm /usr/bin/x86_64-pc-linux-gnu-cc | ||
rm /usr/bin/x86_64-pc-linux-gnu-ar | ||
gcc_install: | ||
@$(RUN) $(MAKE) install-target-libstdc++-v3 DESTDIR=$(INSTALL_DIR) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gcc-10.2.0.tar.xz SHA1 8de0aecd3a52bb92b43082df8a9256356d1f03be | ||
gcc-10.2.0.tar.xz SHA256 b8dd4368bb9c7f0b98188317ee0254dd8cc99d1e3a18d0ff146c855fe16c1d8c | ||
gcc-10.2.0.tar.xz MD5 e9fd9b1789155ad09bcf3ae747596b50 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
mpc-1.1.0.tar.gz SHA1 b019d9e1d27ec5fb99497159d43a3164995de2d0 | ||
mpc-1.1.0.tar.gz SHA256 6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e | ||
mpc-1.1.0.tar.gz MD5 4125404e41e482ec68282a2e687f6c73 | ||
mpc-1.2.1.tar.gz SHA1 2a4919abf445c6eda4e120cd669b8733ce337227 | ||
mpc-1.2.1.tar.gz SHA256 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459 | ||
mpc-1.2.1.tar.gz MD5 9f16c976c25bb0f76b50be749cd7a3a8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
mpfr-4.0.2.tar.xz SHA1 52c1f2a4c9a202f46cf3275a8d46b562aa584208 | ||
mpfr-4.0.2.tar.xz SHA256 1d3be708604eae0e42d578ba93b390c2a145f17743a744d8f3f8c2ad5855a38a | ||
mpfr-4.0.2.tar.xz MD5 320fbc4463d4c8cb1e566929d8adc4f8 | ||
mpfr-4.1.0.tar.xz SHA1 159c3a58705662bfde4dc93f2617f3660855ead6 | ||
mpfr-4.1.0.tar.xz SHA256 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f | ||
mpfr-4.1.0.tar.xz MD5 bdd3d5efba9c17da8d83a35ec552baef |
This file was deleted.
@hgy59 @th0ma7 I've tried to compile libstdc++ for .NET applications, but I think my approach is wrong and/or finding compatible versions for the libraries and host compiler is harder that it should be... If you guys have time I'd like to get some feedback. Maybe before I start hitting my head against a wall.