I think we should backport patch for new glibc as done for gcc7
Search Criteria
Package Details: gcc6 6.5.0-10
Package Actions
| Git Clone URL: | https://aur.archlinux.org/gcc6.git (read-only, click to copy) |
|---|---|
| Package Base: | gcc6 |
| Description: | The GNU Compiler Collection - C and C++ frontends (6.x.x) |
| Upstream URL: | https://gcc.gnu.org/gcc-6/ |
| Licenses: | GPL, custom, LGPL, FDL |
| Submitter: | svenstaro |
| Maintainer: | valandil |
| Last Packager: | valandil |
| Votes: | 20 |
| Popularity: | 0.000000 |
| First Submitted: | 2018-05-17 20:56 (UTC) |
| Last Updated: | 2025-12-08 18:45 (UTC) |
Dependencies (16)
- binutils
- gcc6-libsAUR
- libmpc (libmpc-gitAUR)
- zlib (zlib-gitAUR, zlib-ng-compat-gitAUR, zlib-ng-compat)
- binutils (make)
- doxygen (doxygen-gitAUR) (make)
- gtk2AUR (gtk2-patched-filechooser-icon-viewAUR, gtk2-ng-gitAUR, gtk2-ng-gitAUR) (make)
- java-environment-common (make)
- java-runtime (jre10AUR, jre12AUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre16-openjdkAUR, jre14-openjdkAUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdkAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jre-openj9AUR, jre12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jre13-openjdkAUR, jre15-openjdkAUR, jre17-jetbrainsAUR, mandrel-binAUR, mandrel24-binAUR, jdk22-graalvm-ee-binAUR, jdk20-graalvm-ee-binAUR, jdk22-graalvm-binAUR, jre19-openjdkAUR, jre21-jetbrainsAUR, zulu-fx-binAUR, zulu11-fx-binAUR, zulu17-fx-binAUR, jdk11-openj9-binAUR, jre-zulu-binAUR, jre-zulu-fx-binAUR, jre17AUR, jre-zuluAUR, jre-zulu-fxAUR, jre8AUR, jdk8AUR, jdk23-graalvm-ee-binAUR, jdk17-jetbrains-binAUR, jdk21-dragonwell-standard-binAUR, jdk24-graalvm-ce-binAUR, jdk8-dragonwell-extendedAUR, jdk23-temurinAUR, zing-23-binAUR, jdk17-dragonwell-standard-binAUR, jdk21-dragonwell-extended-binAUR, openjdk-zulu-ca-fx-binAUR, openjdk-zulu17-ca-fx-binAUR, openjdk-zulu21-ca-fx-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, zulu-24-binAUR, liberica-nik-23-full-binAUR, jre11AUR, liberica-nik-24-full-binAUR, jdk-openj9-binAUR, jdk24-graalvm-binAUR, jdk24-graalvm-ee-binAUR, liberica-nik-25-full-binAUR, amazon-corretto-24-binAUR, jdk8-openj9-binAUR, zulu-21-binAUR, jre21-jetbrains-gitAUR, jdk21-jetbrains-gitAUR, openjdk-liberica11-full-binAUR, openjdk-liberica17-full-binAUR, openjdk-liberica21-full-binAUR, openjdk-liberica8-full-binAUR, openjdk-liberica-full-binAUR, jdk-openjdk-wakefieldAUR, jre-openjdk-wakefieldAUR, amazon-corretto-15AUR, jre25-temurinAUR, jre21-temurinAUR, jre17-temurinAUR, zulu-jre21-fxAUR, zulu-jre25-fxAUR, zulu-jre17-fxAUR, jre8-temurinAUR, jre11-temurinAUR, zulu-jre8-fxAUR, zulu-jre11-fxAUR, jre17-zulu-binAUR, jre21-zulu-binAUR, microsoft-openjdk-21-binAUR, microsoft-openjdk-25-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-11-binAUR, jdk21-graalvm-ee-binAUR, amazon-corretto-25-binAUR, zulu-8-binAUR, zulu-11-binAUR, zulu-25-binAUR, jdk-android-studioAUR, jre25-zulu-binAUR, zing-21-binAUR, zing-17-binAUR, zing-8-binAUR, jdk8-perfAUR, jdk25-openjdk-wakefieldAUR, jre25-openjdk-wakefieldAUR, zulu-17-binAUR, jdk25-graalvm-binAUR, jdk25-graalvm-ce-binAUR, zulu-26-fx-binAUR, jdk21-jetbrains-binAUR, liberica-jdk-21-binAUR, jdk16-temurinAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, liberica-jdk-25-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, jdk25-temurinAUR, jdk21-temurinAUR, jdk17-temurinAUR, jre22-openjdkAUR, jdk22-openjdkAUR, jre23-openjdkAUR, jdk23-openjdkAUR, jdk24-openjdkAUR, jre24-openjdkAUR, jdk17-graalvm-ee-binAUR, zulu-17-fx-binAUR, jdk25-openj9-binAUR, jdk11-temurinAUR, jdk17-openj9-binAUR, jdk21-openj9-binAUR, liberica-jdk-11-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-lite-binAUR, liberica-jdk-17-full-binAUR, jdk11-graalvm-ee-binAUR, jdk8-graalvm-ee-binAUR, java-openjdk-ea-binAUR, jdk8-temurinAUR, jdk21-graalvm-binAUR, jdk-temurinAUR, amazon-corretto-11AUR, amazon-corretto-8AUR, sapmachine11-jdkAUR, sapmachine17-jdkAUR, zulu8-fx-binAUR, zulu21-fx-binAUR, zulu-jre-fx-binAUR, zulu-jdk-fx-binAUR, jre-jetbrainsAUR, jreAUR, jdkAUR, jre-ltsAUR, jdk-ltsAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jdk25-openjdk, jre-openjdk, jre11-openjdk, jre17-openjdk, jre21-openjdk, jre25-openjdk, jre8-openjdk) (make)
- jdk8-openjdk (openjdk-liberica8-full-binAUR) (make)
- libart-lgplAUR (make)
- libmpc (libmpc-gitAUR) (make)
- libxtst (make)
- subversion (make)
- zip (zip-natspecAUR) (make)
- zlib (zlib-gitAUR, zlib-ng-compat-gitAUR, zlib-ng-compat) (make)
Required by (11)
Sources (7)
dviktor commented on 2020-02-26 10:44 (UTC)
valandil commented on 2020-02-26 10:37 (UTC)
I'm looking into it.
For the record though, what you attached does not contain information about the actual compilation error, it's just makepkg reporting that the build failed.
arch202928 commented on 2020-02-26 02:32 (UTC)
Install failed with the following message,
checking for memmove... (cached) yes
checking for strcmp... yes
checking for closedir... yes
checking for opendir... (cached) yes
checking for readdir... yes
configure: updating cache .././config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing depfiles commands
make[1]: Leaving directory '/home/myname/.cache/yay/gcc6/src/gcc-build'
make: *** [Makefile:917: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Error making: gcc6 (gcc6-libs gcc6)
dviktor commented on 2020-02-16 16:40 (UTC)
@L1ghtmar3 your link is broken. Could you please to force-rebuild without parallel make?
L1ghtmar3 commented on 2020-02-16 07:05 (UTC)
I'm having trouble building gcc6 on a fresh system, either using yay or manually. Full build log, though I don't think it contains any actual error messages, and seems to end on slightly different lines every time. The line after that was build aborting due to Error 2 in Makefile at line 917.
This might have something to do with my makepkg.conf CFLAGS="-march=native -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt". When I could build the package successfully on my other machine, the flags were rather default -march=x86-64 and so on. The -march=native description for the PC that fails the build.
valandil commented on 2019-09-03 01:53 (UTC)
I hadn't noticed that this package was back in AUR. Let me know if you need a hand maintaining the package. -- Joey
sebschrader commented on 2019-07-18 11:10 (UTC)
A make distclean in src/gcc-build solved the issue.
sebschrader commented on 2019-07-17 13:20 (UTC)
Builds fail reproducible on my machine in the bootstrap comparison step between stages 2 and 3:
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=x86_64-pc-linux-gnu" "bindir=/usr/bin" "datadir=/usr/share" "exec_prefix=/usr" "includedir=/usr/include" "datarootdir=/usr/share" "docdir=/usr/share/doc/" "infodir=/usr/share/info" "pdfdir=/usr/share/doc/" "htmldir=/usr/share/doc/" "libdir=/usr/lib" "libexecdir=/usr/lib" "lispdir=" "localstatedir=/usr/var" "mandir=/usr/share/man" "oldincludedir=/usr/include" "prefix=/usr" "sbindir=/usr/sbin" "sharedstatedir=/usr/com" "sysconfdir=/usr/etc" "tooldir=/usr/x86_64-pc-linux-gnu" "build_tooldir=/usr/x86_64-pc-linux-gnu" "target_alias=x86_64-pc-linux-gnu" "AWK=gawk" "BISON=bison" "CC_FOR_BUILD=gcc" "CFLAGS_FOR_BUILD=-march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt" "CXX_FOR_BUILD=g++ -std=gnu++98" "EXPECT=expect" "FLEX=flex" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS_FOR_BUILD=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" "LEX=flex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/usr/bin/sed" "SHELL=/bin/sh" "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2" "BOOT_LDFLAGS=" "CFLAGS=-march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt" "CXXFLAGS=-march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt" "LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" "LIBCFLAGS=-march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt" "LIBCXXFLAGS=-march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt -fno-implicit-templates" "STAGE1_CHECKING=--enable-checking=release,types" "STAGE1_LANGUAGES=c,c++,lto" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET=/home/scs/.cache/aurman/gcc6/src/gcc-build/./gcc/xgcc -B/home/scs/.cache/aurman/gcc6/src/gcc-build/./gcc/" "CFLAGS_FOR_TARGET=-g -march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt" "CPPFLAGS_FOR_TARGET=" "CXXFLAGS_FOR_TARGET=-g -march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt -D_GNU_SOURCE" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include" "GCJ_FOR_TARGET=/home/scs/.cache/aurman/gcc6/src/gcc-build/./gcc/gcj -B/home/scs/.cache/aurman/gcc6/src/gcc-build/./gcc/" "GFORTRAN_FOR_TARGET=/home/scs/.cache/aurman/gcc6/src/gcc-build/./gcc/gfortran -B/home/scs/.cache/aurman/gcc6/src/gcc-build/./gcc/" "GOC_FOR_TARGET=" "GOCFLAGS_FOR_TARGET=-O2 -g" "LD_FOR_TARGET=ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt" "LIBCXXFLAGS_FOR_TARGET=-g -march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt -D_GNU_SOURCE -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "OBJCOPY_FOR_TARGET=" "RANLIB_FOR_TARGET=ranlib" "READELF_FOR_TARGET=readelf" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "STAGE1_CFLAGS=-g" "STAGE1_CXXFLAGS=-g" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-g -O2 -gtoggle" "STAGE2_CXXFLAGS=-g -O2 -gtoggle" "STAGE2_TFLAGS=" "STAGE3_CFLAGS=-g -O2" "STAGE3_CXXFLAGS=-g -O2" "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-g -O2" "STAGE4_CXXFLAGS=-g -O2" "STAGE4_TFLAGS=" "STAGEprofile_CFLAGS=-g -O2 -gtoggle -fprofile-generate" "STAGEprofile_CXXFLAGS=-g -O2 -gtoggle -fprofile-generate" "STAGEprofile_TFLAGS=" "STAGEfeedback_CFLAGS=-g -O2 -fprofile-use" "STAGEfeedback_CXXFLAGS=-g -O2 -fprofile-use" "STAGEfeedback_TFLAGS=" "CXX_FOR_TARGET= $r/./gcc/xg++ -B$r/./gcc/ -nostdinc++ `if test -f $r/x86_64-pc-linux-gnu/libstdc++-v3/scripts/testsuite_flags; then /bin/sh $r/x86_64-pc-linux-gnu/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$r/x86_64-pc-linux-gnu/libstdc++-v3/src -L$r/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L$r/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs" "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" compare
make[2]: Entering directory '/home/scs/.cache/aurman/gcc6/src/gcc-build'
make[3]: Entering directory '/home/scs/.cache/aurman/gcc6/src/gcc-build'
rm -f stage_current
make[3]: Leaving directory '/home/scs/.cache/aurman/gcc6/src/gcc-build'
Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Bootstrap comparison failure!
gcc/plugin.o differs
gcc/gcc.o differs
make[2]: *** [Makefile:23282: compare] Error 1
make[2]: Leaving directory '/home/scs/.cache/aurman/gcc6/src/gcc-build'
make[1]: *** [Makefile:23262: stage3-bubble] Error 2
make[1]: Leaving directory '/home/scs/.cache/aurman/gcc6/src/gcc-build'
make: *** [Makefile:915: all] Error 2
==> ERROR: A failure occurred in build().
Aborting..
moham_96 commented on 2019-05-03 10:31 (UTC)
@dviktor https://0x0.st/zcUP.txt
dviktor commented on 2019-05-03 09:59 (UTC)
@moham_96 Can you please post your error log?
Pinned Comments
valandil commented on 2020-08-24 15:06 (UTC)
I highly recommend building this package in a clean chroot. This avoids the use of a AUR helper, which sometimes uses
/tmpas the stating directory, which often gets filled completely by gcc's build process.It also provides a clean environment, which minimizes interactions between your current environment and gcc's build process.