Skip to content
Permalink
b7ef5b9c45
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 62 lines (44 sloc) 1.56 KB
#!/bin/env beesh
# BEE_VERSION gcc-12.3.0-0
# Note: The test suite runs address sanitizer tests. In the current mariux64 environment
# this requires (the mariux64 default is 2)
#
# sudo sysctl vm.overcommit_memory=0
# Orig: https://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-12.3.0/gcc-12.3.0.tar.xz
SRCURL[0]="https://beehive.molgen.mpg.de/58a863b2a50e4d42eacc20fec419bc3b/gcc-12.3.0.tar.xz"
# PATCHURL[0]=""
LIBEXECDIR=/usr/lib
LIBDIR=/usr/lib
mee_patch_post() {
# ignore libiberty.. used from binutils..
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
# don't fix includes..
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
}
mee_configure() {
bee_configure \
--enable-shared \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-languages=c,fortran,c++,objc,obj-c++ \
--disable-multilib \
--with-system-zlib \
--with-diagnostics-color=auto-if-env
}
mee_check() {
make -k check 2>&1 | tee check.log
}
mee_install_post() {
mkdir -vp ${D}/lib
ln -sv ${BINDIR}/cpp ${D}/lib
ln -sv gcc ${D}${BINDIR}/cc
install -v -dm755 ${D}${LIBDIR}/bfd-plugins
ln -sfv ../gcc/$(gcc -dumpmachine)/${PKGVERSION}/liblto_plugin.so ${D}${LIBDIR}/bfd-plugins/
mv -v ${D}${LIBDIR}64/* ${D}${LIBDIR}
rmdir -v ${D}${LIBDIR}64
mkdir -p ${D}${DATADIR}/gdb/auto-load/${LIBDIR}
mv -v ${D}${LIBDIR}/*-gdb.py ${D}${DATADIR}/gdb/auto-load/${LIBDIR}
echo "${S}/contrib/test_summary | grep -A7 Sum"
echo "grep FAIL ${B}/check.log"
}