gcc-3.4: Remove

No longer in use.

-287
-63
pkgs/development/compilers/gcc/3.4/builder.sh
··· 1 - source $stdenv/setup 2 - 3 - 4 - export NIX_FIXINC_DUMMY=$NIX_BUILD_TOP/dummy 5 - mkdir $NIX_FIXINC_DUMMY 6 - 7 - 8 - if test "$noSysDirs" = "1"; then 9 - 10 - if test -e $NIX_CC/nix-support/orig-libc; then 11 - 12 - # Figure out what extra flags to pass to the gcc compilers 13 - # being generated to make sure that they use our glibc. 14 - extraCFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 15 - extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 16 - 17 - # Use *real* header files, otherwise a limits.h is generated 18 - # that does not include Glibc's limits.h (notably missing 19 - # SSIZE_MAX, which breaks the build). 20 - export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 21 - 22 - else 23 - # Hack: support impure environments. 24 - extraCFlags="-isystem /usr/include" 25 - extraLDFlags="-L/usr/lib64 -L/usr/lib" 26 - export NIX_FIXINC_DUMMY=/usr/include 27 - fi 28 - 29 - export NIX_EXTRA_CFLAGS=$extraCFlags 30 - for i in $extraLDFlags; do 31 - export NIX_EXTRA_LDFLAGS="$NIX_EXTRA_LDFLAGS -Wl,$i" 32 - done 33 - export CFLAGS=$extraCFlags 34 - export CXXFLAGS=$extraCFlags 35 - fi 36 - 37 - 38 - preConfigure() { 39 - # Perform the build in a different directory. 40 - mkdir ../build 41 - cd ../build 42 - configureScript=../$sourceRoot/configure 43 - } 44 - 45 - 46 - postInstall() { 47 - # Remove precompiled headers for now. They are very big and 48 - # probably not very useful yet. 49 - find $out/include -name "*.gch" -exec rm -rf {} \; -prune 50 - 51 - # Remove `fixincl' to prevent a retained dependency on the 52 - # previous gcc. 53 - rm -rf $out/libexec/gcc/*/*/install-tools 54 - } 55 - 56 - 57 - if test -z "$profiledCompiler"; then 58 - buildFlags="bootstrap $buildFlags" 59 - else 60 - buildFlags="profiledbootstrap $buildFlags" 61 - fi 62 - 63 - genericBuild
-47
pkgs/development/compilers/gcc/3.4/default.nix
··· 1 - { stdenv, fetchurl, noSysDirs 2 - , langC ? true, langCC ? true, langF77 ? false 3 - , profiledCompiler ? false 4 - }: 5 - 6 - assert langC; 7 - 8 - with stdenv.lib; 9 - 10 - stdenv.mkDerivation { 11 - name = "gcc-3.4.6"; 12 - builder = ./builder.sh; 13 - src = fetchurl { 14 - url = mirror://gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2; 15 - md5 = "4a21ac777d4b5617283ce488b808da7b"; 16 - }; 17 - 18 - patches = stdenv.lib.optional noSysDirs ./no-sys-dirs.patch; 19 - 20 - # inspiration: https://aur.archlinux.org/packages/g77/ 21 - postPatch = '' 22 - substituteInPlace gcc/config/i386/linux.h --replace 'struct siginfo' siginfo_t 23 - ''; 24 - 25 - inherit noSysDirs profiledCompiler; 26 - 27 - configureFlags = " 28 - --disable-multilib 29 - --with-system-zlib 30 - --enable-languages=${ 31 - concatStrings (intersperse "," 32 - ( optional langC "c" 33 - ++ optional langCC "c++" 34 - ++ optional langF77 "f77" 35 - ) 36 - ) 37 - } 38 - "; 39 - 40 - passthru = { inherit langC langCC langF77; isGNU = true; }; 41 - 42 - meta = { 43 - homepage = "http://gcc.gnu.org/"; 44 - license = "GPL/LGPL"; 45 - description = "GNU Compiler Collection, 3.4.x"; 46 - }; 47 - }
-170
pkgs/development/compilers/gcc/3.4/no-sys-dirs.patch
··· 1 - diff -rc gcc-orig/gcc/cppdefault.c gcc-patched/gcc/cppdefault.c 2 - *** gcc-orig/gcc/cppdefault.c 2003-03-01 15:31:12.000000000 +0100 3 - --- gcc-patched/gcc/cppdefault.c 2004-06-29 10:08:45.000000000 +0200 4 - *************** 5 - *** 41,46 **** 6 - --- 41,50 ---- 7 - # undef CROSS_INCLUDE_DIR 8 - #endif 9 - 10 - + #undef LOCAL_INCLUDE_DIR 11 - + #undef SYSTEM_INCLUDE_DIR 12 - + #undef STANDARD_INCLUDE_DIR 13 - + 14 - const struct default_include cpp_include_defaults[] 15 - #ifdef INCLUDE_DEFAULTS 16 - = INCLUDE_DEFAULTS; 17 - diff -rc gcc-orig/gcc/Makefile.in gcc-patched/gcc/Makefile.in 18 - *** gcc-orig/gcc/Makefile.in 2004-04-01 18:47:54.000000000 +0200 19 - --- gcc-patched/gcc/Makefile.in 2004-06-29 13:50:45.000000000 +0200 20 - *************** 21 - *** 199,205 **** 22 - CPPFLAGS = @CPPFLAGS@ 23 - 24 - # These exists to be overridden by the x-* and t-* files, respectively. 25 - ! X_CFLAGS = 26 - T_CFLAGS = 27 - 28 - X_CPPFLAGS = 29 - --- 199,205 ---- 30 - CPPFLAGS = @CPPFLAGS@ 31 - 32 - # These exists to be overridden by the x-* and t-* files, respectively. 33 - ! X_CFLAGS = $(NIX_EXTRA_CFLAGS) $(NIX_EXTRA_LDFLAGS) 34 - T_CFLAGS = 35 - 36 - X_CPPFLAGS = 37 - *************** 38 - *** 345,351 **** 39 - PARTITION_H = $(srcdir)/../include/partition.h 40 - 41 - # Default native SYSTEM_HEADER_DIR, to be overridden by targets. 42 - ! NATIVE_SYSTEM_HEADER_DIR = /usr/include 43 - # Default cross SYSTEM_HEADER_DIR, to be overridden by targets. 44 - CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@ 45 - 46 - --- 345,355 ---- 47 - PARTITION_H = $(srcdir)/../include/partition.h 48 - 49 - # Default native SYSTEM_HEADER_DIR, to be overridden by targets. 50 - ! # Nix: we override NATIVE_SYSTEM_HEADER_DIR in order to prevent 51 - ! # `fixinc' from fixing header files in /usr/include. However, 52 - ! # NATIVE_SYSTEM_HEADER_DIR must point to an existing directory, so set 53 - ! # it to some dummy directory. 54 - ! NATIVE_SYSTEM_HEADER_DIR = $(NIX_FIXINC_DUMMY) 55 - # Default cross SYSTEM_HEADER_DIR, to be overridden by targets. 56 - CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@ 57 - 58 - diff -rc gcc-orig/libstdc++-v3/include/Makefile.in gcc-patched/libstdc++-v3/include/Makefile.in 59 - *** gcc-orig/libstdc++-v3/include/Makefile.in 2004-03-18 18:36:43.000000000 +0100 60 - --- gcc-patched/libstdc++-v3/include/Makefile.in 2004-06-29 19:01:33.000000000 +0200 61 - *************** 62 - *** 896,903 **** 63 - if [ ! -d "${pch_output_builddir}" ]; then \ 64 - mkdir -p ${pch_output_builddir}; \ 65 - fi; \ 66 - ! $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O0 -g -o ${pch_output_builddir}/O0g; \ 67 - ! $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O2 -g -o ${pch_output_builddir}/O2g; 68 - 69 - # For robustness sake (in light of junk files or in-source 70 - # configuration), copy from the build or source tree to the install 71 - --- 896,903 ---- 72 - if [ ! -d "${pch_output_builddir}" ]; then \ 73 - mkdir -p ${pch_output_builddir}; \ 74 - fi; \ 75 - ! $(CXX) $(CFLAGS) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O0 -g -o ${pch_output_builddir}/O0g; \ 76 - ! $(CXX) $(CFLAGS) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O2 -g -o ${pch_output_builddir}/O2g; 77 - 78 - # For robustness sake (in light of junk files or in-source 79 - # configuration), copy from the build or source tree to the install 80 - diff -rc gcc-orig/ltcf-cxx.sh gcc-patched/ltcf-cxx.sh 81 - *** gcc-orig/ltcf-cxx.sh 2003-11-19 06:29:32.000000000 +0100 82 - --- gcc-patched/ltcf-cxx.sh 2004-06-29 15:26:01.000000000 +0200 83 - *************** 84 - *** 985,991 **** 85 - # the conftest object file. 86 - pre_test_object_deps_done=no 87 - 88 - ! for p in `eval $output_verbose_link_cmd`; do 89 - 90 - case $p in 91 - 92 - --- 985,991 ---- 93 - # the conftest object file. 94 - pre_test_object_deps_done=no 95 - 96 - ! for p in `true`; do 97 - 98 - case $p in 99 - 100 - diff -rc gcc-orig/Makefile.in gcc-patched/Makefile.in 101 - *** gcc-orig/Makefile.in 2004-01-14 21:09:37.000000000 +0100 102 - --- gcc-patched/Makefile.in 2004-06-29 16:21:36.000000000 +0200 103 - *************** 104 - *** 228,234 **** 105 - NM = @NM@ 106 - 107 - LD = @LD@ 108 - ! LDFLAGS = 109 - 110 - RANLIB = @RANLIB@ 111 - 112 - --- 228,234 ---- 113 - NM = @NM@ 114 - 115 - LD = @LD@ 116 - ! LDFLAGS = $(NIX_EXTRA_LDFLAGS) 117 - 118 - RANLIB = @RANLIB@ 119 - 120 - *************** 121 - *** 277,283 **** 122 - # CFLAGS will be just -g. We want to ensure that TARGET libraries 123 - # (which we know are built with gcc) are built with optimizations so 124 - # prepend -O2 when setting CFLAGS_FOR_TARGET. 125 - ! CFLAGS_FOR_TARGET = -O2 $(CFLAGS) 126 - # If GCC_FOR_TARGET is not overriden on the command line, then this 127 - # variable is passed down to the gcc Makefile, where it is used to 128 - # build libgcc2.a. We define it here so that it can itself be 129 - --- 277,283 ---- 130 - # CFLAGS will be just -g. We want to ensure that TARGET libraries 131 - # (which we know are built with gcc) are built with optimizations so 132 - # prepend -O2 when setting CFLAGS_FOR_TARGET. 133 - ! CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(NIX_EXTRA_CFLAGS) 134 - # If GCC_FOR_TARGET is not overriden on the command line, then this 135 - # variable is passed down to the gcc Makefile, where it is used to 136 - # build libgcc2.a. We define it here so that it can itself be 137 - *************** 138 - *** 290,296 **** 139 - RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@ 140 - CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ 141 - RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ 142 - ! CXXFLAGS_FOR_TARGET = $(CXXFLAGS) 143 - LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates 144 - 145 - DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ 146 - --- 290,296 ---- 147 - RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@ 148 - CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ 149 - RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ 150 - ! CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(NIX_EXTRA_CFLAGS) 151 - LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates 152 - 153 - DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ 154 - *************** 155 - *** 321,327 **** 156 - fi; \ 157 - fi` 158 - 159 - ! LDFLAGS_FOR_TARGET = 160 - 161 - NM_FOR_TARGET=@NM_FOR_TARGET@ 162 - USUAL_NM_FOR_TARGET = ` \ 163 - --- 321,327 ---- 164 - fi; \ 165 - fi` 166 - 167 - ! LDFLAGS_FOR_TARGET = $(NIX_EXTRA_LDFLAGS) 168 - 169 - NM_FOR_TARGET=@NM_FOR_TARGET@ 170 - USUAL_NM_FOR_TARGET = ` \
-4
pkgs/top-level/all-packages.nix
··· 3474 3474 3475 3475 gccApple = throw "gccApple is no longer supported"; 3476 3476 3477 - gcc34 = wrapCC (import ../development/compilers/gcc/3.4 { 3478 - inherit fetchurl stdenv noSysDirs; 3479 - }); 3480 - 3481 3477 gcc48_realCross = lib.addMetaAttrs { hydraPlatforms = []; } 3482 3478 (callPackage ../development/compilers/gcc/4.8 { 3483 3479 inherit noSysDirs;
-3
pkgs/top-level/release-small.nix
··· 46 46 findutils = all; 47 47 flex = all; 48 48 gcc = all; 49 - gcc34 = linux; 50 - gcc44 = linux; 51 49 gcj = linux; 52 - ghdl = linux; 53 50 glibc = linux; 54 51 glibcLocales = linux; 55 52 gnat = linux;