Merge remote-tracking branch 'origin/gcc-5' into staging

Still some breakage but no blockers:

http://hydra.nixos.org/eval/1242130?filter=x86_64-linux&compare=1237852&full=#tabs-now-fail

+60 -1848
+1 -1
pkgs/applications/networking/mailreaders/thunderbird/default.nix
··· 69 "--enable-optimize" "--enable-strip" ]) 70 ++ [ 71 "--disable-javaxpcom" 72 - "--enable-stdcxx-compat" # Avoid dependency on libstdc++ 4.7 73 ] 74 ++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding"; 75 in ''
··· 69 "--enable-optimize" "--enable-strip" ]) 70 ++ [ 71 "--disable-javaxpcom" 72 + #"--enable-stdcxx-compat" # Avoid dependency on libstdc++ 4.7 73 ] 74 ++ stdenv.lib.optional enableOfficialBranding "--enable-official-branding"; 75 in ''
+1 -1
pkgs/applications/version-management/rcs/default.nix
··· 12 13 doCheck = true; 14 15 - NIX_CFLAGS_COMPILE = if stdenv.isDarwin then "-std=gnu99" else null; 16 17 meta = { 18 homepage = http://www.gnu.org/software/rcs/;
··· 12 13 doCheck = true; 14 15 + NIX_CFLAGS_COMPILE = [ "-std=c99" ]; 16 17 meta = { 18 homepage = http://www.gnu.org/software/rcs/;
+27
pkgs/desktops/kde-4.14/kdebindings/pykde4-gcc-5.patch
···
··· 1 + https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb0ed8c85dd15fb18a902b22a7555ba4f7cf01cb 2 + 3 + Patch created by: Erik Zeek 4 + 5 + See also: https://bugs.gentoo.org/show_bug.cgi?id=567022 6 + 7 + --- a/CMakeLists.txt 8 + +++ a/CMakeLists.txt 9 + @@ -166,7 +166,7 @@ add_sip_python_module(PyKDE4.kdeui sip/kdeui/kdeuimod.sip ${KDE4_KDEUI_LIBS} ${Q 10 + 11 + file(GLOB kio_files_sip sip/kio/*.sip) 12 + set(SIP_EXTRA_FILES_DEPEND ${kio_files_sip}) 13 + -add_sip_python_module(PyKDE4.kio sip/kio/kiomod.sip ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS}) 14 + +add_sip_python_module(PyKDE4.kio sip/kio/kiomod.sip ${KDE4_SOLID_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS}) 15 + 16 + file(GLOB kutils_files_sip sip/kutils/*.sip) 17 + set(SIP_EXTRA_FILES_DEPEND ${kutils_files_sip}) 18 + @@ -190,7 +190,7 @@ add_sip_python_module(PyKDE4.knewstuff sip/knewstuff/knewstuffmod.sip ${KDE4_KNE 19 + 20 + file(GLOB dnssd_files_sip sip/dnssd/*.sip) 21 + set(SIP_EXTRA_FILES_DEPEND ${dnssd_files_sip}) 22 + -add_sip_python_module(PyKDE4.dnssd sip/dnssd/dnssdmod.sip ${KDE4_KDNSSD_LIBS} ${QT_QTCORE_LIBRARY}) 23 + +add_sip_python_module(PyKDE4.dnssd sip/dnssd/dnssdmod.sip ${KDE4_KDNSSD_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY}) 24 + 25 + file(GLOB phonon_files_sip sip/phonon/*.sip) 26 + set(SIP_EXTRA_FILES_DEPEND ${phonon_files_sip}) 27 +
+2
pkgs/desktops/kde-4.14/kdebindings/pykde4.nix
··· 5 6 kde { 7 8 # todo: polkit isn't found by the build system 9 10 buildInputs = [
··· 5 6 kde { 7 8 + patches = [ ./pykde4-gcc-5.patch ]; 9 + 10 # todo: polkit isn't found by the build system 11 12 buildInputs = [
-144
pkgs/development/compilers/gcc/4.3/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 - # libstdc++ needs this; otherwise it will use /lib/cpp, which is a Bad 9 - # Thing. 10 - export CPP="gcc -E" 11 - 12 - 13 - if test "$noSysDirs" = "1"; then 14 - 15 - if test -e $NIX_CC/nix-support/orig-libc; then 16 - 17 - # Figure out what extra flags to pass to the gcc compilers 18 - # being generated to make sure that they use our glibc. 19 - extraCFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 20 - extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 21 - 22 - # Use *real* header files, otherwise a limits.h is generated 23 - # that does not include Glibc's limits.h (notably missing 24 - # SSIZE_MAX, which breaks the build). 25 - export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 26 - 27 - else 28 - # Hack: support impure environments. 29 - extraCFlags="-isystem /usr/include" 30 - extraLDFlags="-L/usr/lib64 -L/usr/lib" 31 - export NIX_FIXINC_DUMMY=/usr/include 32 - fi 33 - 34 - 35 - extraCFlags="-g0 -I$gmp/include -I$mpfr/include $extraCFlags" 36 - extraLDFlags="--strip-debug $extraLDFlags" 37 - 38 - export NIX_EXTRA_CFLAGS=$extraCFlags 39 - for i in $extraLDFlags; do 40 - export NIX_EXTRA_LDFLAGS="$NIX_EXTRA_LDFLAGS -Wl,$i" 41 - done 42 - 43 - if test -n "$targetConfig"; then 44 - if test -z "$crossStageStatic"; then 45 - extraXCFlags="-B${libcCross}/lib -idirafter ${libcCross}/include" 46 - extraXLDFlags="-L${libcCross}/lib" 47 - export NIX_EXTRA_CFLAGS_TARGET=$extraXCFlags 48 - for i in $extraXLDFlags; do 49 - export NIX_EXTRA_LDFLAGS_TARGET="$NIX_EXTRA_LDFLAGS_TARGET -Wl,$i" 50 - done 51 - fi 52 - 53 - makeFlagsArray=( \ 54 - "${makeFlagsArray[@]}" \ 55 - NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 56 - SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 57 - CFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS_TARGET $NIX_EXTRA_LDFLAGS_TARGET" \ 58 - LDFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS_TARGET $NIX_EXTRA_LDFLAGS_TARGET" \ 59 - ) 60 - else 61 - export NIX_EXTRA_CFLAGS_TARGET=$NIX_EXTRA_CFLAGS 62 - export NIX_EXTRA_LDFLAGS_TARGET=$NIX_EXTRA_LDFLAGS 63 - makeFlagsArray=( \ 64 - "${makeFlagsArray[@]}" \ 65 - NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 66 - SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 67 - CFLAGS_FOR_BUILD="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 68 - CFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 69 - LDFLAGS_FOR_BUILD="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 70 - LDFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \ 71 - ) 72 - fi 73 - 74 - if test -n "$targetConfig" -a "$crossStageStatic" == 1; then 75 - # We don't want the gcc build to assume there will be a libc providing 76 - # limits.h in this stagae 77 - makeFlagsArray=( \ 78 - "${makeFlagsArray[@]}" \ 79 - LIMITS_H_TEST=false \ 80 - ) 81 - else 82 - makeFlagsArray=( \ 83 - "${makeFlagsArray[@]}" \ 84 - LIMITS_H_TEST=true \ 85 - ) 86 - fi 87 - fi 88 - 89 - if test -n "$targetConfig"; then 90 - # The host strip will destroy everything in the target binaries otherwise 91 - dontStrip=1 92 - fi 93 - 94 - preConfigure() { 95 - # Perform the build in a different directory. 96 - mkdir ../build 97 - cd ../build 98 - configureScript=../$sourceRoot/configure 99 - } 100 - 101 - 102 - postInstall() { 103 - # Remove precompiled headers for now. They are very big and 104 - # probably not very useful yet. 105 - find $out/include -name "*.gch" -exec rm -rf {} \; -prune 106 - 107 - # Remove `fixincl' to prevent a retained dependency on the 108 - # previous gcc. 109 - rm -rf $out/libexec/gcc/*/*/install-tools 110 - rm -rf $out/lib/gcc/*/*/install-tools 111 - 112 - # Get rid of some "fixed" header files 113 - rm -rf $out/lib/gcc/*/*/include/root 114 - 115 - # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks. 116 - for i in $out/bin/*-gcc*; do 117 - if cmp -s $out/bin/gcc $i; then 118 - ln -sfn gcc $i 119 - fi 120 - done 121 - 122 - for i in $out/bin/*-c++* $out/bin/*-g++*; do 123 - if cmp -s $out/bin/g++ $i; then 124 - ln -sfn g++ $i 125 - fi 126 - done 127 - 128 - eval "$postInstallGhdl" 129 - } 130 - 131 - 132 - if test -z "$targetConfig"; then 133 - if test -z "$profiledCompiler"; then 134 - buildFlags="bootstrap $buildFlags" 135 - else 136 - buildFlags="profiledbootstrap $buildFlags" 137 - fi 138 - else 139 - : 140 - # buildFlags="all-gcc all-target-libgcc $buildFlags" 141 - # installTargets="install-gcc install-target-libgcc" 142 - fi 143 - 144 - genericBuild
···
-184
pkgs/development/compilers/gcc/4.3/default.nix
··· 1 - { stdenv, fetchurl, noSysDirs 2 - , langC ? true, langCC ? true, langFortran ? false, langTreelang ? false 3 - , langJava ? false 4 - , langVhdl ? false 5 - , profiledCompiler ? false 6 - , staticCompiler ? false 7 - , enableShared ? true 8 - , texinfo ? null 9 - , gmp, mpfr 10 - , bison ? null, flex ? null 11 - , zlib ? null, boehmgc ? null 12 - , enableMultilib ? false 13 - , name ? "gcc" 14 - , cross ? null 15 - , binutilsCross ? null 16 - , libcCross ? null 17 - , crossStageStatic ? true 18 - , gnat ? null 19 - }: 20 - 21 - assert langTreelang -> bison != null && flex != null; 22 - 23 - assert cross != null -> profiledCompiler == false && enableMultilib == true; 24 - assert (cross != null && crossStageStatic) -> (langCC == false && langFortran 25 - == false && langTreelang == false); 26 - 27 - assert langVhdl -> gnat != null; 28 - 29 - with stdenv.lib; 30 - 31 - let 32 - version = "4.3.6"; 33 - 34 - crossConfigureFlags = 35 - "--target=${cross.config}" + 36 - (if crossStageStatic then 37 - " --disable-libssp --disable-nls" + 38 - " --without-headers" + 39 - " --disable-threads " + 40 - " --disable-libmudflap " + 41 - " --disable-libgomp " + 42 - " --disable-shared" 43 - else 44 - " --with-headers=${libcCross}/include" + 45 - " --enable-__cxa_atexit" + 46 - " --enable-long-long" + 47 - " --enable-threads=posix" + 48 - " --enable-nls" 49 - ); 50 - stageNameAddon = if crossStageStatic then "-stage-static" else 51 - "-stage-final"; 52 - crossNameAddon = if cross != null then "-${cross.config}" + stageNameAddon else ""; 53 - in 54 - 55 - stdenv.mkDerivation ({ 56 - name = "${name}-${version}" + crossNameAddon; 57 - 58 - builder = ./builder.sh; 59 - 60 - src = 61 - optional /*langC*/ true (fetchurl { 62 - url = "mirror://gcc/releases/gcc-${version}/gcc-core-${version}.tar.bz2"; 63 - sha256 = "0ygrfw3hgp48hkqipbl9lw38f27npigc2sm6f01g9iswpq1igbw6"; 64 - }) ++ 65 - optional langCC (fetchurl { 66 - url = "mirror://gcc/releases/gcc-${version}/gcc-g++-${version}.tar.bz2"; 67 - sha256 = "105xz3991b57zx3146xwlpchdb2sjmlknclvi1iac2gawm4mhxhf"; 68 - }) ++ 69 - optional langFortran (fetchurl { 70 - url = "mirror://gcc/releases/gcc-${version}/gcc-fortran-${version}.tar.bz2"; 71 - sha256 = "12bqvf53hvhrwjnh101vn9frb5g8cr98cra4f11dzhzs4ppydpi1"; 72 - }) ++ 73 - optional langJava (fetchurl { 74 - url = "mirror://gcc/releases/gcc-${version}/gcc-java-${version}.tar.bz2"; 75 - sha256 = "03w6jln9gmdv149s774rlw4rzi2zhbqna54r86cd6mql8flmy7fs"; 76 - }); 77 - 78 - patches = 79 - [ ./pass-cxxcpp.patch ./libmudflap-cpp.patch ./siginfo_t_fix.patch ] 80 - ++ optional noSysDirs ./no-sys-dirs.patch 81 - ++ optional (noSysDirs && langFortran) ./no-sys-dirs-fortran.patch 82 - ++ optional langJava ./java-jvgenmain-link.patch 83 - ++ optional langVhdl ./ghdl-ortho-cflags.patch 84 - ++ optional langVhdl ./ghdl-runtime-o2.patch; 85 - 86 - inherit noSysDirs profiledCompiler staticCompiler crossStageStatic 87 - binutilsCross libcCross; 88 - targetConfig = if cross != null then cross.config else null; 89 - 90 - buildInputs = [texinfo gmp mpfr] 91 - ++ (optionals langTreelang [bison flex]) 92 - ++ (optional (zlib != null) zlib) 93 - ++ (optional (boehmgc != null) boehmgc) 94 - ++ (optionals (cross != null) [binutilsCross]) 95 - ++ (optionals langVhdl [gnat]) 96 - ; 97 - 98 - configureFlags = " 99 - ${if enableMultilib then "" else "--disable-multilib"} 100 - ${if enableShared then "" else "--disable-shared"} 101 - --disable-libstdcxx-pch 102 - --with-system-zlib 103 - --enable-languages=${ 104 - concatStrings (intersperse "," 105 - ( optional langC "c" 106 - ++ optional langCC "c++" 107 - ++ optional langFortran "fortran" 108 - ++ optional langJava "java" 109 - ++ optional langTreelang "treelang" 110 - ++ optional langVhdl "vhdl" 111 - ) 112 - ) 113 - } 114 - ${if stdenv.isi686 then "--with-arch=i686" else ""} 115 - ${if cross != null then crossConfigureFlags else ""} 116 - "; 117 - #Above I added a hack on making the build different than the host. 118 - 119 - # Needed for the cross compilation to work 120 - AR = "ar"; 121 - LD = "ld"; 122 - CC = "gcc"; 123 - 124 - NIX_EXTRA_LDFLAGS = if staticCompiler then "-static" else ""; 125 - 126 - inherit gmp mpfr; 127 - 128 - passthru = { inherit langC langCC langFortran langVhdl langTreelang 129 - enableMultilib; }; 130 - 131 - # ghdl does not build fine with parallel building 132 - enableParallelBuilding = !langVhdl; 133 - 134 - meta = { 135 - homepage = "http://gcc.gnu.org/"; 136 - license = "GPL/LGPL"; 137 - description = "GNU Compiler Collection, 4.3.x"; 138 - maintainers = with stdenv.lib.maintainers; [viric]; 139 - platforms = with stdenv.lib.platforms; linux; 140 - }; 141 - 142 - } // (if langJava then { 143 - postConfigure = '' 144 - make configure-gcc 145 - sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${zlib}/include@ ; s@^LDFLAGS = .*@& -L${zlib}/lib@' 146 - sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${boehmgc}/include@ ; s@^LDFLAGS = .*@& -L${boehmgc}/lib -lgc@' 147 - ''; 148 - } else {}) 149 - // (if langVhdl then rec { 150 - name = "ghdl-0.29"; 151 - 152 - ghdlSrc = fetchurl { 153 - url = "http://ghdl.free.fr/ghdl-0.29.tar.bz2"; 154 - sha256 = "15mlinr1lwljwll9ampzcfcrk9bk0qpdks1kxlvb70xf9zhh2jva"; 155 - }; 156 - 157 - # Ghdl has some timestamps checks, storing file timestamps in '.cf' files. 158 - # As we will change the timestamps to 1970-01-01 00:00:01, we also set the 159 - # content of that .cf to that value. This way ghdl does not complain on 160 - # the installed object files from the basic libraries (ieee, ...) 161 - postInstallGhdl = '' 162 - pushd $out 163 - find . -name "*.cf" -exec \ 164 - sed 's/[0-9]*\.000" /19700101000001.000" /g' -i {} \; 165 - popd 166 - ''; 167 - 168 - postUnpack = '' 169 - tar xvf ${ghdlSrc} 170 - mv ghdl-*/vhdl gcc*/gcc 171 - rm -Rf ghdl-* 172 - ''; 173 - 174 - passthru.isGNU = true; 175 - 176 - meta = { 177 - homepage = "http://ghdl.free.fr/"; 178 - license = stdenv.lib.licenses.gpl2Plus; 179 - description = "Complete VHDL simulator, using the GCC technology"; 180 - maintainers = with stdenv.lib.maintainers; [viric]; 181 - platforms = with stdenv.lib.platforms; linux; 182 - }; 183 - 184 - } else {}))
···
-36
pkgs/development/compilers/gcc/4.3/ghdl-ortho-cflags.patch
··· 1 - diff --git a/gcc/vhdl/Make-lang.in b/gcc/vhdl/Make-lang.in 2 - index 8f481df..681ac59 100644 3 - --- a/gcc/vhdl/Make-lang.in 4 - +++ b/gcc/vhdl/Make-lang.in 5 - @@ -96,7 +96,7 @@ AGCC_GCCOBJ_DIR=../ 6 - AGCC_INC_FLAGS=-I$(AGCC_GCCOBJ_DIR)/gcc -I$(AGCC_GCCSRC_DIR)/include \ 7 - -I$(AGCC_GCCSRC_DIR)/gcc -I$(AGCC_GCCSRC_DIR)/gcc/config \ 8 - -I$(AGCC_GCCSRC_DIR)/libcpp/include 9 - -AGCC_CFLAGS=-g -Wall -DIN_GCC $(AGCC_INC_FLAGS) 10 - +AGCC_CFLAGS=-g -Wall -DIN_GCC $(AGCC_INC_FLAGS) $(CFLAGS) 11 - 12 - AGCC_LOCAL_OBJS=ortho-lang.o 13 - 14 - @@ -140,7 +140,7 @@ ghdl$(exeext): force 15 - 16 - # Ghdl libraries. 17 - ghdllib: ghdl$(exeext) $(GCC_PASSES) force 18 - - $(MAKE_IN_VHDL) GRT_FLAGS="-O -g" ghdllib 19 - + $(MAKE_IN_VHDL) GRT_FLAGS="-O -g $(CFLAGS)" ghdllib 20 - 21 - # Build hooks: 22 - 23 - diff --git a/gcc/vhdl/Makefile.in b/gcc/vhdl/Makefile.in 24 - index d754c6c..07abc4a 100644 25 - --- a/gcc/vhdl/Makefile.in 26 - +++ b/gcc/vhdl/Makefile.in 27 - @@ -80,7 +80,8 @@ T_CPPFLAGS = 28 - X_ADAFLAGS = 29 - T_ADAFLAGS = 30 - 31 - -ADAC = $(CC) 32 - +# Never use the bootstrapped compiler, as it may not be built for ada 33 - +ADAC = gcc 34 - 35 - ECHO = echo 36 - CHMOD = chmod
···
-13
pkgs/development/compilers/gcc/4.3/ghdl-runtime-o2.patch
··· 1 - diff --git a/gcc/vhdl/Makefile.in b/gcc/vhdl/Makefile.in 2 - index b8d2ed0..0e8bd55 100644 3 - --- a/gcc/vhdl/Makefile.in 4 - +++ b/gcc/vhdl/Makefile.in 5 - @@ -682,7 +682,7 @@ install-ghdllib: ghdllib grt.lst $(STD93_SRCS) $(STD87_SRCS) \ 6 - PDIR=`pwd` && cd $(DESTDIR)$(VHDL_LIB_DIR) && \ 7 - $(MAKE) -f $$PDIR/Makefile REL_DIR=../../.. \ 8 - LIBSRC_DIR="src" LIB93_DIR=lib/v93 LIB87_DIR=lib/v87 \ 9 - - ANALYZE="$$PDIR/../ghdl -a --GHDL1=$$PDIR/../ghdl1 --ieee=none" \ 10 - + ANALYZE="$$PDIR/../ghdl -a --GHDL1=$$PDIR/../ghdl1 --ieee=none -Wc,-O2" \ 11 - std.v93 std.v87 ieee.v93 ieee.v87 synopsys.v93 synopsys.v87 mentor.v93 12 - # Copy std_standard (this is done after libraries, since they remove dirs). 13 - $(INSTALL_DATA) std87_standard.o \
···
-17
pkgs/development/compilers/gcc/4.3/java-jvgenmain-link.patch
··· 1 - The `jvgenmain' executable must be linked against `vec.o', among others, 2 - since it uses its vector API. 3 - 4 - --- gcc-4.3.3/gcc/java/Make-lang.in 2008-12-05 00:00:19.000000000 +0100 5 - +++ gcc-4.3.3/gcc/java/Make-lang.in 2009-07-03 16:11:41.000000000 +0200 6 - @@ -109,9 +109,9 @@ jcf-dump$(exeext): $(JCFDUMP_OBJS) $(LIB 7 - $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JCFDUMP_OBJS) \ 8 - $(CPPLIBS) $(ZLIB) $(LDEXP_LIB) $(LIBS) 9 - 10 - -jvgenmain$(exeext): $(JVGENMAIN_OBJS) $(LIBDEPS) 11 - +jvgenmain$(exeext): $(JVGENMAIN_OBJS) $(LIBDEPS) $(BUILD_RTL) 12 - rm -f $@ 13 - - $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JVGENMAIN_OBJS) $(LIBS) 14 - + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JVGENMAIN_OBJS) $(BUILD_RTL) $(LIBS) 15 - 16 - # 17 - # Build hooks:
···
-12
pkgs/development/compilers/gcc/4.3/libmudflap-cpp.patch
··· 1 - diff --git a/Makefile.in b/Makefile.in 2 - index d24c1af..b86e522 100644 3 - --- a/Makefile.in 4 - +++ b/Makefile.in 5 - @@ -230,6 +229,7 @@ RAW_CXX_TARGET_EXPORTS = \ 6 - 7 - NORMAL_TARGET_EXPORTS = \ 8 - $(BASE_TARGET_EXPORTS) \ 9 - + CPP="$(CC_FOR_TARGET) -E"; export CPP; \ 10 - CXX="$(CXX_FOR_TARGET)"; export CXX; 11 - 12 - # Where to find GMP
···
-15
pkgs/development/compilers/gcc/4.3/no-sys-dirs-fortran.patch
··· 1 - diff -ru gcc-4.3.1-orig/libgfortran/configure gcc-4.3.1/libgfortran/configure 2 - --- gcc-4.3.1-orig/libgfortran/configure 2008-06-06 16:49:11.000000000 +0200 3 - +++ gcc-4.3.1/libgfortran/configure 2008-06-27 08:25:08.000000000 +0200 4 - @@ -35405,6 +35405,11 @@ 5 - # A language specific compiler. 6 - CC=$lt_compiler 7 - 8 - +# Ugly hack to get libmudflap (and possibly other libraries) to build. 9 - +# Libtool filters out \`-B' flags when linking (why?), so the \`-B' flag 10 - +# to Glibc gets lost. Here we forcibly add it to any invocation. 11 - +CC="\$CC $NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" 12 - + 13 - # Is the compiler the GNU compiler? 14 - with_gcc=$GCC 15 -
···
-132
pkgs/development/compilers/gcc/4.3/no-sys-dirs.patch
··· 1 - diff -ru gcc-4.3.1-orig/gcc/cppdefault.c gcc-4.3.1/gcc/cppdefault.c 2 - --- gcc-4.3.1-orig/gcc/cppdefault.c 2007-07-26 10:37:01.000000000 +0200 3 - +++ gcc-4.3.1/gcc/cppdefault.c 2008-06-25 17:48:23.000000000 +0200 4 - @@ -41,6 +41,10 @@ 5 - # undef CROSS_INCLUDE_DIR 6 - #endif 7 - 8 - +#undef LOCAL_INCLUDE_DIR 9 - +#undef SYSTEM_INCLUDE_DIR 10 - +#undef STANDARD_INCLUDE_DIR 11 - + 12 - const struct default_include cpp_include_defaults[] 13 - #ifdef INCLUDE_DEFAULTS 14 - = INCLUDE_DEFAULTS; 15 - diff -ru gcc-4.3.1-orig/gcc/gcc.c gcc-4.3.1/gcc/gcc.c 16 - --- gcc-4.3.1-orig/gcc/gcc.c 2008-03-02 23:55:19.000000000 +0100 17 - +++ gcc-4.3.1/gcc/gcc.c 2008-06-25 17:52:53.000000000 +0200 18 - @@ -1478,10 +1478,10 @@ 19 - /* Default prefixes to attach to command names. */ 20 - 21 - #ifndef STANDARD_STARTFILE_PREFIX_1 22 - -#define STANDARD_STARTFILE_PREFIX_1 "/lib/" 23 - +#define STANDARD_STARTFILE_PREFIX_1 "" 24 - #endif 25 - #ifndef STANDARD_STARTFILE_PREFIX_2 26 - -#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/" 27 - +#define STANDARD_STARTFILE_PREFIX_2 "" 28 - #endif 29 - 30 - #ifdef CROSS_DIRECTORY_STRUCTURE /* Don't use these prefixes for a cross compiler. */ 31 - @@ -1515,8 +1515,8 @@ 32 - /* For native compilers, these are well-known paths containing 33 - components that may be provided by the system. For cross 34 - compilers, these paths are not used. */ 35 - -static const char *const standard_exec_prefix_1 = "/usr/libexec/gcc/"; 36 - -static const char *const standard_exec_prefix_2 = "/usr/lib/gcc/"; 37 - +static const char *const standard_exec_prefix_1 = "/no-such-path/"; 38 - +static const char *const standard_exec_prefix_2 = "/no-such-path/"; 39 - static const char *md_exec_prefix = MD_EXEC_PREFIX; 40 - static const char *md_startfile_prefix = MD_STARTFILE_PREFIX; 41 - static const char *md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1; 42 - diff -ru gcc-4.3.1-orig/gcc/Makefile.in gcc-4.3.1/gcc/Makefile.in 43 - --- gcc-4.3.1-orig/gcc/Makefile.in 2008-05-11 20:54:15.000000000 +0200 44 - +++ gcc-4.3.1/gcc/Makefile.in 2008-06-25 17:48:23.000000000 +0200 45 - @@ -378,7 +378,11 @@ 46 - MD5_H = $(srcdir)/../include/md5.h 47 - 48 - # Default native SYSTEM_HEADER_DIR, to be overridden by targets. 49 - -NATIVE_SYSTEM_HEADER_DIR = /usr/include 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 - @@ -3277,7 +3281,7 @@ 59 - -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ 60 - -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_noncanonical)\" \ 61 - -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \ 62 - - -DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \ 63 - + -DLOCAL_INCLUDE_DIR=\"/no-such-dir\" \ 64 - -DCROSS_INCLUDE_DIR=\"$(CROSS_SYSTEM_HEADER_DIR)\" \ 65 - -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \ 66 - -DPREFIX=\"$(prefix)/\" \ 67 - diff -ru gcc-4.3.1-orig/libgomp/configure gcc-4.3.1/libgomp/configure 68 - --- gcc-4.3.1-orig/libgomp/configure 2008-01-24 17:23:13.000000000 +0100 69 - +++ gcc-4.3.1/libgomp/configure 2008-06-26 11:23:49.000000000 +0200 70 - @@ -21493,6 +21493,11 @@ 71 - # A language specific compiler. 72 - CC=$lt_compiler 73 - 74 - +# Ugly hack to get libmudflap (and possibly other libraries) to build. 75 - +# Libtool filters out \`-B' flags when linking (why?), so the \`-B' flag 76 - +# to Glibc gets lost. Here we forcibly add it to any invocation. 77 - +CC="\$CC $NIX_EXTRA_CFLAGS_TARGET $NIX_EXTRA_LDFLAGS_TARGET" 78 - + 79 - # Is the compiler the GNU compiler? 80 - with_gcc=$GCC 81 - 82 - Only in gcc-4.3.1/libgomp: configure~ 83 - diff -ru gcc-4.3.1-orig/libmudflap/configure gcc-4.3.1/libmudflap/configure 84 - --- gcc-4.3.1-orig/libmudflap/configure 2008-01-24 17:30:08.000000000 +0100 85 - +++ gcc-4.3.1/libmudflap/configure 2008-06-26 11:23:11.000000000 +0200 86 - @@ -14229,6 +14229,11 @@ 87 - # A language specific compiler. 88 - CC=$lt_compiler 89 - 90 - +# Ugly hack to get libmudflap (and possibly other libraries) to build. 91 - +# Libtool filters out \`-B' flags when linking (why?), so the \`-B' flag 92 - +# to Glibc gets lost. Here we forcibly add it to any invocation. 93 - +CC="\$CC $NIX_EXTRA_CFLAGS_TARGET $NIX_EXTRA_LDFLAGS_TARGET" 94 - + 95 - # Is the compiler the GNU compiler? 96 - with_gcc=$GCC 97 - 98 - Only in gcc-4.3.1/libmudflap: configure~ 99 - diff -ru gcc-4.3.1-orig/libssp/configure gcc-4.3.1/libssp/configure 100 - --- gcc-4.3.1-orig/libssp/configure 2008-01-24 17:33:29.000000000 +0100 101 - +++ gcc-4.3.1/libssp/configure 2008-06-26 11:23:25.000000000 +0200 102 - @@ -12142,6 +12142,11 @@ 103 - # A language specific compiler. 104 - CC=$lt_compiler 105 - 106 - +# Ugly hack to get libmudflap (and possibly other libraries) to build. 107 - +# Libtool filters out \`-B' flags when linking (why?), so the \`-B' flag 108 - +# to Glibc gets lost. Here we forcibly add it to any invocation. 109 - +CC="\$CC $NIX_EXTRA_CFLAGS_TARGET $NIX_EXTRA_LDFLAGS_TARGET" 110 - + 111 - # Is the compiler the GNU compiler? 112 - with_gcc=$GCC 113 - 114 - Only in gcc-4.3.1/libssp: configure~ 115 - diff -ru gcc-4.3.1-orig/Makefile.in gcc-4.3.1/Makefile.in 116 - --- gcc-4.3.1-orig/Makefile.in 2007-12-13 10:30:49.000000000 +0100 117 - +++ gcc-4.3.1/Makefile.in 2008-06-25 17:48:23.000000000 +0200 118 - @@ -405,6 +405,14 @@ 119 - @host_makefile_frag@ 120 - ### 121 - 122 - +CFLAGS += $(NIX_EXTRA_CFLAGS) 123 - +CPPFLAGS_FOR_TARGET += $(NIX_EXTRA_CFLAGS_TARGET) 124 - +CXXFLAGS += $(NIX_EXTRA_CFLAGS) 125 - +LDFLAGS += $(NIX_EXTRA_LDFLAGS) 126 - +LDFLAGS_FOR_TARGET += $(NIX_EXTRA_LDFLAGS_TARGET) 127 - +BOOT_CFLAGS += $(NIX_EXTRA_CFLAGS) 128 - +BOOT_LDFLAGS += $(NIX_EXTRA_LDFLAGS) 129 - + 130 - # This is the list of directories that may be needed in RPATH_ENVVAR 131 - # so that prorgams built for the target machine work. 132 - TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(HOST_LIB_PATH_gcc)
···
-21
pkgs/development/compilers/gcc/4.3/pass-cxxcpp.patch
··· 1 - diff -rc gcc-orig/Makefile.in gcc-4.1.1/Makefile.in 2 - *** gcc-orig/Makefile.in Wed Jun 21 13:40:23 2006 3 - --- gcc-4.1.1/Makefile.in Wed Jun 21 14:19:44 2006 4 - *************** 5 - *** 213,219 **** 6 - RAW_CXX_TARGET_EXPORTS = \ 7 - $(BASE_TARGET_EXPORTS) \ 8 - CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ 9 - ! CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; 10 - 11 - NORMAL_TARGET_EXPORTS = \ 12 - $(BASE_TARGET_EXPORTS) \ 13 - --- 213,220 ---- 14 - RAW_CXX_TARGET_EXPORTS = \ 15 - $(BASE_TARGET_EXPORTS) \ 16 - CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ 17 - ! CXX="$(RAW_CXX_FOR_TARGET) $(CFLAGS_FOR_BUILD)"; export CXX; \ 18 - ! CXXCPP="$(RAW_CXX_FOR_TARGET) $(CFLAGS_FOR_BUILD) -E"; export CXXCPP; 19 - 20 - NORMAL_TARGET_EXPORTS = \ 21 - $(BASE_TARGET_EXPORTS) \
···
-174
pkgs/development/compilers/gcc/4.3/siginfo_t_fix.patch
··· 1 - https://bugs.gentoo.org/424970 2 - 3 - fix from upstream for building with newer glibc versions 4 - 5 - From f0cdca2bf2230005025e13e7354fedb612933c96 Mon Sep 17 00:00:00 2001 6 - From: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> 7 - Date: Fri, 20 Apr 2012 08:14:00 +0000 8 - Subject: [PATCH] struct siginfo vs. siginfo_t 9 - 10 - Backport from trunk (but apply to gcc/): 11 - 12 - 2012-04-20 Thomas Schwinge <thomas@codesourcery.com> 13 - 14 - gcc/ 15 - * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Use 16 - siginfo_t instead of struct siginfo. 17 - * config/bfin/linux-unwind.h (bfin_fallback_frame_state): Likewise. 18 - * config/i386/linux-unwind.h (x86_fallback_frame_state): Likewise. 19 - * config/ia64/linux-unwind.h (ia64_fallback_frame_state) 20 - (ia64_handle_unwabi): Likewise. 21 - * config/mips/linux-unwind.h (mips_fallback_frame_state): Likewise. 22 - * config/pa/linux-unwind.h (pa32_fallback_frame_state): Likewise. 23 - * config/sh/linux-unwind.h (shmedia_fallback_frame_state) 24 - (sh_fallback_frame_state): Likewise. 25 - * config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Likewise. 26 - 27 - git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_5-branch@186613 138bc75d-0d04-0410-961f-82ee72b054a4 28 - --- 29 - gcc/ChangeLog | 20 ++++++++++++++++++++ 30 - gcc/config/alpha/linux-unwind.h | 4 ++-- 31 - gcc/config/bfin/linux-unwind.h | 6 +++--- 32 - gcc/config/i386/linux-unwind.h | 6 +++--- 33 - gcc/config/ia64/linux-unwind.h | 6 +++--- 34 - gcc/config/mips/linux-unwind.h | 5 +++-- 35 - gcc/config/pa/linux-unwind.h | 4 ++-- 36 - gcc/config/sh/linux-unwind.h | 9 +++++---- 37 - gcc/config/xtensa/linux-unwind.h | 4 ++-- 38 - 9 files changed, 43 insertions(+), 21 deletions(-) 39 - 40 - diff --git a/gcc/config/alpha/linux-unwind.h b/gcc/config/alpha/linux-unwind.h 41 - index 4c811dc..8c04b3b 100644 42 - --- a/gcc/config/alpha/linux-unwind.h 43 - +++ b/gcc/config/alpha/linux-unwind.h 44 - @@ -49,7 +49,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context, 45 - else if (pc[1] == 0x201f015f) /* lda $0,NR_rt_sigreturn */ 46 - { 47 - struct rt_sigframe { 48 - - struct siginfo info; 49 - + siginfo_t info; 50 - struct ucontext uc; 51 - } *rt_ = context->cfa; 52 - sc = &rt_->uc.uc_mcontext; 53 - diff --git a/gcc/config/bfin/linux-unwind.h b/gcc/config/bfin/linux-unwind.h 54 - index 88c8285..15bb2f1 100644 55 - --- a/gcc/config/bfin/linux-unwind.h 56 - +++ b/gcc/config/bfin/linux-unwind.h 57 - @@ -48,10 +48,10 @@ bfin_fallback_frame_state (struct _Unwind_Context *context, 58 - { 59 - struct rt_sigframe { 60 - int sig; 61 - - struct siginfo *pinfo; 62 - + siginfo_t *pinfo; 63 - void *puc; 64 - char retcode[8]; 65 - - struct siginfo info; 66 - + siginfo_t info; 67 - struct ucontext uc; 68 - } *rt_ = context->cfa; 69 - 70 - diff --git a/gcc/config/i386/linux-unwind.h b/gcc/config/i386/linux-unwind.h 71 - index 36ee370..fe0ea3e 100644 72 - --- a/gcc/config/i386/linux-unwind.h 73 - +++ b/gcc/config/i386/linux-unwind.h 74 - @@ -133,9 +133,9 @@ x86_fallback_frame_state (struct _Unwind_Context *context, 75 - { 76 - struct rt_sigframe { 77 - int sig; 78 - - struct siginfo *pinfo; 79 - + siginfo_t *pinfo; 80 - void *puc; 81 - - struct siginfo info; 82 - + siginfo_t info; 83 - struct ucontext uc; 84 - } *rt_ = context->cfa; 85 - /* The void * cast is necessary to avoid an aliasing warning. 86 - diff --git a/gcc/config/ia64/linux-unwind.h b/gcc/config/ia64/linux-unwind.h 87 - index 93f762d..da31259 100644 88 - --- a/gcc/config/ia64/linux-unwind.h 89 - +++ b/gcc/config/ia64/linux-unwind.h 90 - @@ -47,7 +47,7 @@ ia64_fallback_frame_state (struct _Unwind_Context *context, 91 - struct sigframe { 92 - char scratch[16]; 93 - unsigned long sig_number; 94 - - struct siginfo *info; 95 - + siginfo_t *info; 96 - struct sigcontext *sc; 97 - } *frame_ = (struct sigframe *)context->psp; 98 - struct sigcontext *sc = frame_->sc; 99 - @@ -137,7 +137,7 @@ ia64_handle_unwabi (struct _Unwind_Context *context, _Unwind_FrameState *fs) 100 - struct sigframe { 101 - char scratch[16]; 102 - unsigned long sig_number; 103 - - struct siginfo *info; 104 - + siginfo_t *info; 105 - struct sigcontext *sc; 106 - } *frame = (struct sigframe *)context->psp; 107 - struct sigcontext *sc = frame->sc; 108 - diff --git a/gcc/config/mips/linux-unwind.h b/gcc/config/mips/linux-unwind.h 109 - index 02f7cd5..094ff58 100644 110 - --- a/gcc/config/mips/linux-unwind.h 111 - +++ b/gcc/config/mips/linux-unwind.h 112 - @@ -75,7 +76,7 @@ mips_fallback_frame_state (struct _Unwind_Context *context, 113 - struct rt_sigframe { 114 - u_int32_t ass[4]; /* Argument save space for o32. */ 115 - u_int32_t trampoline[2]; 116 - - struct siginfo info; 117 - + siginfo_t info; 118 - _sig_ucontext_t uc; 119 - } *rt_ = context->cfa; 120 - sc = &rt_->uc.uc_mcontext; 121 - diff --git a/gcc/config/pa/linux-unwind.h b/gcc/config/pa/linux-unwind.h 122 - index a0560e9..38b4eda 100644 123 - --- a/gcc/config/pa/linux-unwind.h 124 - +++ b/gcc/config/pa/linux-unwind.h 125 - @@ -63,7 +63,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context, 126 - int i; 127 - struct sigcontext *sc; 128 - struct rt_sigframe { 129 - - struct siginfo info; 130 - + siginfo_t info; 131 - struct ucontext uc; 132 - } *frame; 133 - 134 - diff --git a/gcc/config/sh/linux-unwind.h b/gcc/config/sh/linux-unwind.h 135 - index 94ed95d..5a78e31 100644 136 - --- a/gcc/config/sh/linux-unwind.h 137 - +++ b/gcc/config/sh/linux-unwind.h 138 - @@ -80,9 +81,9 @@ shmedia_fallback_frame_state (struct _Unwind_Context *context, 139 - && (*(unsigned long *) (pc+11) == 0x6ff0fff0)) 140 - { 141 - struct rt_sigframe { 142 - - struct siginfo *pinfo; 143 - + siginfo_t *pinfo; 144 - void *puc; 145 - - struct siginfo info; 146 - + siginfo_t info; 147 - struct ucontext uc; 148 - } *rt_ = context->cfa; 149 - /* The void * cast is necessary to avoid an aliasing warning. 150 - @@ -179,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context, 151 - && (*(unsigned short *) (pc+14) == 0x00ad)))) 152 - { 153 - struct rt_sigframe { 154 - - struct siginfo info; 155 - + siginfo_t info; 156 - struct ucontext uc; 157 - } *rt_ = context->cfa; 158 - /* The void * cast is necessary to avoid an aliasing warning. 159 - diff --git a/gcc/config/xtensa/linux-unwind.h b/gcc/config/xtensa/linux-unwind.h 160 - index 32e9349..2456497 100644 161 - --- a/gcc/config/xtensa/linux-unwind.h 162 - +++ b/gcc/config/xtensa/linux-unwind.h 163 - @@ -62,7 +62,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context, 164 - struct sigcontext *sc; 165 - 166 - struct rt_sigframe { 167 - - struct siginfo info; 168 - + siginfo_t info; 169 - struct ucontext uc; 170 - } *rt_; 171 - 172 - -- 173 - 1.7.9.7 174 -
···
-200
pkgs/development/compilers/gcc/4.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 - # libstdc++ needs this; otherwise it will use /lib/cpp, which is a Bad 9 - # Thing. 10 - export CPP="gcc -E" 11 - 12 - if test "$staticCompiler" = "1"; then 13 - EXTRA_LDFLAGS="-static" 14 - else 15 - EXTRA_LDFLAGS="" 16 - fi 17 - 18 - if test "$noSysDirs" = "1"; then 19 - 20 - if test -e $NIX_CC/nix-support/orig-libc; then 21 - 22 - # Figure out what extra flags to pass to the gcc compilers 23 - # being generated to make sure that they use our glibc. 24 - extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 25 - extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)" 26 - 27 - # Use *real* header files, otherwise a limits.h is generated 28 - # that does not include Glibc's limits.h (notably missing 29 - # SSIZE_MAX, which breaks the build). 30 - export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include 31 - 32 - # The path to the Glibc binaries such as `crti.o'. 33 - glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib" 34 - 35 - else 36 - # Hack: support impure environments. 37 - extraFlags="-isystem /usr/include" 38 - extraLDFlags="-L/usr/lib64 -L/usr/lib" 39 - glibc_libdir="/usr/lib" 40 - export NIX_FIXINC_DUMMY=/usr/include 41 - fi 42 - 43 - extraFlags="-g0 -O2 -I$NIX_FIXINC_DUMMY $extraFlags" 44 - extraLDFlags="--strip-debug -L$glibc_libdir -rpath $glibc_libdir $extraLDFlags" 45 - 46 - EXTRA_FLAGS="$extraFlags" 47 - for i in $extraLDFlags; do 48 - EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,$i" 49 - done 50 - 51 - if test -n "$targetConfig"; then 52 - # Cross-compiling, we need gcc not to read ./specs in order to build 53 - # the g++ compiler (after the specs for the cross-gcc are created). 54 - # Having LIBRARY_PATH= makes gcc read the specs from ., and the build 55 - # breaks. Having this variable comes from the default.nix code to bring 56 - # gcj in. 57 - unset LIBRARY_PATH 58 - unset CPATH 59 - if test -z "$crossStageStatic"; then 60 - EXTRA_FLAGS_TARGET="-g0 -O2 -B${libcCross}/lib -idirafter ${libcCross}/include" 61 - EXTRA_LDFLAGS_TARGET="-Wl,-L${libcCross}/lib" 62 - fi 63 - else 64 - if test -z "$NIX_CC_CROSS"; then 65 - EXTRA_FLAGS_TARGET="$EXTRA_FLAGS" 66 - EXTRA_LDFLAGS_TARGET="$EXTRA_LDFLAGS" 67 - else 68 - # This the case of cross-building the gcc. 69 - # We need special flags for the target, different than those of the build 70 - # Assertion: 71 - test -e $NIX_CC_CROSS/nix-support/orig-libc 72 - 73 - # Figure out what extra flags to pass to the gcc compilers 74 - # being generated to make sure that they use our glibc. 75 - extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)" 76 - extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)" 77 - 78 - # Use *real* header files, otherwise a limits.h is generated 79 - # that does not include Glibc's limits.h (notably missing 80 - # SSIZE_MAX, which breaks the build). 81 - NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_CC_CROSS/nix-support/orig-libc)/include 82 - 83 - # The path to the Glibc binaries such as `crti.o'. 84 - glibc_libdir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)/lib" 85 - 86 - extraFlags="-g0 -O2 -I$NIX_FIXINC_DUMMY_CROSS $extraFlags" 87 - extraLDFlags="--strip-debug -L$glibc_libdir -rpath $glibc_libdir $extraLDFlags" 88 - 89 - EXTRA_FLAGS_TARGET="$extraFlags" 90 - for i in $extraLDFlags; do 91 - EXTRA_LDFLAGS_TARGET="$EXTRA_LDFLAGS_TARGET -Wl,$i" 92 - done 93 - fi 94 - fi 95 - 96 - 97 - # CFLAGS_FOR_TARGET are needed for the libstdc++ configure script to find 98 - # the startfiles. 99 - # FLAGS_FOR_TARGET are needed for the target libraries to receive the -Bxxx 100 - # for the startfiles. 101 - makeFlagsArray=( \ 102 - "${makeFlagsArray[@]}" \ 103 - NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 104 - SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 105 - CFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \ 106 - CFLAGS_FOR_TARGET="$EXTRA_FLAGS_TARGET $EXTRA_LDFLAGS_TARGET" \ 107 - FLAGS_FOR_TARGET="$EXTRA_FLAGS_TARGET $EXTRA_LDFLAGS_TARGET" \ 108 - LDFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \ 109 - LDFLAGS_FOR_TARGET="$EXTRA_FLAGS_TARGET $EXTRA_LDFLAGS_TARGET" \ 110 - ) 111 - 112 - if test -z "$targetConfig"; then 113 - makeFlagsArray=( \ 114 - "${makeFlagsArray[@]}" \ 115 - BOOT_CFLAGS="$EXTRA_FLAGS $EXTRA_LDFLAGS" \ 116 - BOOT_LDFLAGS="$EXTRA_FLAGS_TARGET $EXTRA_LDFLAGS_TARGET" \ 117 - ) 118 - fi 119 - 120 - if test -n "$targetConfig" -a "$crossStageStatic" == 1; then 121 - # We don't want the gcc build to assume there will be a libc providing 122 - # limits.h in this stagae 123 - makeFlagsArray=( \ 124 - "${makeFlagsArray[@]}" \ 125 - LIMITS_H_TEST=false \ 126 - ) 127 - else 128 - makeFlagsArray=( \ 129 - "${makeFlagsArray[@]}" \ 130 - LIMITS_H_TEST=true \ 131 - ) 132 - fi 133 - fi 134 - 135 - if test -n "$targetConfig"; then 136 - # The host strip will destroy some important details of the objects 137 - dontStrip=1 138 - fi 139 - 140 - preConfigure() { 141 - if test -n "$newlibSrc"; then 142 - tar xvf "$newlibSrc" -C .. 143 - ln -s ../newlib-*/newlib newlib 144 - # Patch to get armvt5el working: 145 - sed -i -e 's/ arm)/ arm*)/' newlib/configure.host 146 - fi 147 - # Bug - they packaged zlib 148 - if test -d "zlib"; then 149 - # This breaks the build without-headers, which should build only 150 - # the target libgcc as target libraries. 151 - # See 'configure:5370' 152 - rm -Rf zlib 153 - fi 154 - 155 - # Perform the build in a different directory. 156 - mkdir ../build 157 - cd ../build 158 - configureScript=../$sourceRoot/configure 159 - } 160 - 161 - 162 - postInstall() { 163 - # Remove precompiled headers for now. They are very big and 164 - # probably not very useful yet. 165 - find $out/include -name "*.gch" -exec rm -rf {} \; -prune 166 - 167 - # Remove `fixincl' to prevent a retained dependency on the 168 - # previous gcc. 169 - rm -rf $out/libexec/gcc/*/*/install-tools 170 - rm -rf $out/lib/gcc/*/*/install-tools 171 - 172 - # Get rid of some "fixed" header files 173 - rm -rf $out/lib/gcc/*/*/include/root 174 - 175 - # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks. 176 - for i in $out/bin/*-gcc*; do 177 - if cmp -s $out/bin/gcc $i; then 178 - ln -sfn gcc $i 179 - fi 180 - done 181 - 182 - for i in $out/bin/*-c++* $out/bin/*-g++*; do 183 - if cmp -s $out/bin/g++ $i; then 184 - ln -sfn g++ $i 185 - fi 186 - done 187 - 188 - eval "$postInstallGhdl" 189 - } 190 - 191 - 192 - if test -z "$targetConfig" && test -z "$crossConfig"; then 193 - if test -z "$profiledCompiler"; then 194 - buildFlags="bootstrap $buildFlags" 195 - else 196 - buildFlags="profiledbootstrap $buildFlags" 197 - fi 198 - fi 199 - 200 - genericBuild
···
-310
pkgs/development/compilers/gcc/4.4/default.nix
··· 1 - { stdenv, fetchurl, noSysDirs 2 - , langC ? true, langCC ? true, langFortran ? false 3 - , langJava ? false 4 - , langAda ? false 5 - , langVhdl ? false 6 - , profiledCompiler ? false 7 - , staticCompiler ? false 8 - , enableShared ? true 9 - , texinfo ? null 10 - , gmp, mpfr, gettext, which 11 - , ppl ? null, cloogppl ? null # used by the Graphite optimization framework 12 - , zlib ? null, boehmgc ? null 13 - , zip ? null, unzip ? null, pkgconfig ? null, gtk ? null, libart_lgpl ? null 14 - , libX11 ? null, libXt ? null, libSM ? null, libICE ? null, libXtst ? null 15 - , libXrender ? null, xproto ? null, renderproto ? null, xextproto ? null 16 - , libXrandr ? null, libXi ? null, inputproto ? null, randrproto ? null 17 - , gnatboot ? null 18 - , enableMultilib ? false 19 - , name ? "gcc" 20 - , cross ? null 21 - , binutilsCross ? null 22 - , libcCross ? null 23 - , crossStageStatic ? true 24 - , gnat ? null 25 - }: 26 - 27 - assert langJava -> zip != null && unzip != null 28 - && zlib != null && boehmgc != null; 29 - assert langAda -> gnatboot != null; 30 - assert langVhdl -> gnat != null; 31 - 32 - with stdenv.lib; 33 - 34 - let version = "4.4.7"; 35 - javaEcj = fetchurl { 36 - # The `$(top_srcdir)/ecj.jar' file is automatically picked up at 37 - # `configure' time. 38 - 39 - # XXX: Eventually we might want to take it from upstream. 40 - url = "ftp://sourceware.org/pub/java/ecj-4.3.jar"; 41 - sha256 = "0jz7hvc0s6iydmhgh5h2m15yza7p2rlss2vkif30vm9y77m97qcx"; 42 - }; 43 - 44 - # Antlr (optional) allows the Java `gjdoc' tool to be built. We want a 45 - # binary distribution here to allow the whole chain to be bootstrapped. 46 - javaAntlr = fetchurl { 47 - url = http://www.antlr.org/download/antlr-3.1.3.jar; 48 - sha256 = "1f41j0y4kjydl71lqlvr73yagrs2jsg1fjymzjz66mjy7al5lh09"; 49 - }; 50 - 51 - xlibs = [ 52 - libX11 libXt libSM libICE libXtst libXrender libXrandr libXi 53 - xproto renderproto xextproto inputproto randrproto 54 - ]; 55 - 56 - javaAwtGtk = langJava && gtk != null; 57 - 58 - /* Cross-gcc settings */ 59 - gccArch = stdenv.lib.attrByPath [ "gcc" "arch" ] null cross; 60 - gccCpu = stdenv.lib.attrByPath [ "gcc" "cpu" ] null cross; 61 - gccAbi = stdenv.lib.attrByPath [ "gcc" "abi" ] null cross; 62 - withArch = if gccArch != null then " --with-arch=${gccArch}" else ""; 63 - withCpu = if gccCpu != null then " --with-cpu=${gccCpu}" else ""; 64 - withAbi = if gccAbi != null then " --with-abi=${gccAbi}" else ""; 65 - 66 - crossConfigureFlags = 67 - "--target=${cross.config}" + 68 - withArch + 69 - withCpu + 70 - withAbi + 71 - (if crossStageStatic then 72 - " --disable-libssp --disable-nls" + 73 - " --without-headers" + 74 - " --disable-threads " + 75 - " --disable-libmudflap " + 76 - " --disable-libgomp " + 77 - " --disable-shared" + 78 - " --disable-decimal-float" # libdecnumber requires libc 79 - else 80 - " --with-headers=${libcCross}/include" + 81 - " --enable-__cxa_atexit" + 82 - " --enable-long-long" + 83 - " --enable-threads=posix" + 84 - " --enable-nls" + 85 - " --disable-decimal-float" # No final libdecnumber (it may work only in 386) 86 - ); 87 - stageNameAddon = if crossStageStatic then "-stage-static" else 88 - "-stage-final"; 89 - crossNameAddon = if cross != null then "-${cross.config}" + stageNameAddon else ""; 90 - 91 - in 92 - 93 - # We need all these X libraries when building AWT with GTK+. 94 - assert gtk != null -> (filter (x: x == null) xlibs) == []; 95 - 96 - stdenv.mkDerivation ({ 97 - name = "${name}-${version}" + crossNameAddon; 98 - 99 - builder = ./builder.sh; 100 - 101 - src = (import ./sources.nix) { 102 - inherit fetchurl optional version; 103 - inherit langC langCC langFortran langJava langAda; 104 - }; 105 - 106 - patches = 107 - [ ./pass-cxxcpp.patch 108 - 109 - # libmudflap and libstdc++ receive the build CPP, 110 - # and not the target. 111 - # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42279 112 - ./target-cpp.patch 113 - 114 - # Bad mixture of build/target flags 115 - ./libstdc++-target.patch 116 - 117 - # Compatibility with newer Glibc. 118 - ./siginfo_t_fix.patch 119 - ] 120 - ++ optional noSysDirs ./no-sys-dirs.patch 121 - # The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its 122 - # target libraries and tools. 123 - ++ optional langAda ./gnat-cflags.patch 124 - ++ optional langVhdl ./ghdl-ortho-cflags.patch 125 - ++ optional (cross != null && cross.arch == "sparc64") ./pr41818.patch; 126 - 127 - inherit noSysDirs profiledCompiler staticCompiler langJava crossStageStatic 128 - libcCross; 129 - 130 - nativeBuildInputs = [ texinfo which ]; 131 - 132 - buildInputs = [ gmp mpfr gettext ] 133 - ++ (optional (ppl != null) ppl) 134 - ++ (optional (cloogppl != null) cloogppl) 135 - ++ (optional (zlib != null) zlib) 136 - ++ (optional (boehmgc != null) boehmgc) 137 - ++ (optionals langJava [zip unzip]) 138 - ++ (optionals javaAwtGtk ([gtk pkgconfig libart_lgpl] ++ xlibs)) 139 - ++ (optionals (cross != null) [binutilsCross]) 140 - ++ (optionals langAda [gnatboot]) 141 - ++ (optionals langVhdl [gnat]) 142 - ; 143 - 144 - configureFlags = " 145 - ${if enableMultilib then "" else "--disable-multilib"} 146 - ${if enableShared then "" else "--disable-shared"} 147 - ${if ppl != null then "--with-ppl=${ppl}" else ""} 148 - ${if cloogppl != null then "--with-cloog=${cloogppl}" else ""} 149 - ${if langJava then "--with-ecj-jar=${javaEcj}" else ""} 150 - ${if javaAwtGtk then "--enable-java-awt=gtk" else ""} 151 - ${if langJava && javaAntlr != null then "--with-antlr-jar=${javaAntlr}" else ""} 152 - --with-gmp=${gmp} 153 - --with-mpfr=${mpfr} 154 - --disable-libstdcxx-pch 155 - --without-included-gettext 156 - --with-system-zlib 157 - --enable-languages=${ 158 - concatStrings (intersperse "," 159 - ( optional langC "c" 160 - ++ optional langCC "c++" 161 - ++ optional langFortran "fortran" 162 - ++ optional langJava "java" 163 - ++ optional langAda "ada" 164 - ++ optional langVhdl "vhdl" 165 - ) 166 - ) 167 - } 168 - ${if langAda then " --enable-libada" else ""} 169 - ${if cross == null && stdenv.isi686 then "--with-arch=i686" else ""} 170 - ${if cross != null then crossConfigureFlags else ""} 171 - "; 172 - 173 - targetConfig = if cross != null then cross.config else null; 174 - 175 - # Needed for the cross compilation to work 176 - AR = "ar"; 177 - LD = "ld"; 178 - CC = "gcc"; 179 - 180 - crossAttrs = { 181 - AR = "${stdenv.cross.config}-ar"; 182 - LD = "${stdenv.cross.config}-ld"; 183 - CC = "${stdenv.cross.config}-gcc"; 184 - CXX = "${stdenv.cross.config}-gcc"; 185 - AR_FOR_TARGET = "${stdenv.cross.config}-ar"; 186 - LD_FOR_TARGET = "${stdenv.cross.config}-ld"; 187 - CC_FOR_TARGET = "${stdenv.cross.config}-gcc"; 188 - NM_FOR_TARGET = "${stdenv.cross.config}-nm"; 189 - CXX_FOR_TARGET = "${stdenv.cross.config}-g++"; 190 - # If we are making a cross compiler, cross != null 191 - NIX_CC_CROSS = if cross == null then "${stdenv.ccCross}" else ""; 192 - configureFlags = " 193 - ${if enableMultilib then "" else "--disable-multilib"} 194 - ${if enableShared then "" else "--disable-shared"} 195 - ${if ppl != null then "--with-ppl=${ppl.crossDrv}" else ""} 196 - ${if cloogppl != null then "--with-cloog=${cloogppl.crossDrv}" else ""} 197 - ${if langJava then "--with-ecj-jar=${javaEcj.crossDrv}" else ""} 198 - ${if javaAwtGtk then "--enable-java-awt=gtk" else ""} 199 - ${if langJava && javaAntlr != null then "--with-antlr-jar=${javaAntlr.crossDrv}" else ""} 200 - --with-gmp=${gmp.crossDrv} 201 - --with-mpfr=${mpfr.crossDrv} 202 - --disable-libstdcxx-pch 203 - --without-included-gettext 204 - --with-system-zlib 205 - --enable-languages=${ 206 - concatStrings (intersperse "," 207 - ( optional langC "c" 208 - ++ optional langCC "c++" 209 - ++ optional langFortran "fortran" 210 - ++ optional langJava "java" 211 - ++ optional langAda "ada" 212 - ++ optional langVhdl "vhdl" 213 - ) 214 - ) 215 - } 216 - ${if langAda then " --enable-libada" else ""} 217 - ${if cross == null && stdenv.isi686 then "--with-arch=i686" else ""} 218 - ${if cross != null then crossConfigureFlags else ""} 219 - --target=${stdenv.cross.config} 220 - "; 221 - }; 222 - 223 - # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find 224 - # the library headers and binaries, regarless of the language being 225 - # compiled. 226 - 227 - # Note: When building the Java AWT GTK+ peer, the build system doesn't 228 - # honor `--with-gmp' et al., e.g., when building 229 - # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just 230 - # add them to $CPATH and $LIBRARY_PATH in this case. 231 - 232 - CPATH = concatStrings 233 - (intersperse ":" (map (x: x + "/include") 234 - (optionals langJava [ boehmgc zlib ] 235 - ++ optionals javaAwtGtk xlibs 236 - ++ optionals javaAwtGtk [ gmp mpfr ]))); 237 - 238 - LIBRARY_PATH = concatStrings 239 - (intersperse ":" (map (x: x + "/lib") 240 - (optionals langJava [ boehmgc zlib ] 241 - ++ optionals javaAwtGtk xlibs 242 - ++ optionals javaAwtGtk [ gmp mpfr ]))); 243 - 244 - 245 - passthru = { inherit langC langCC langAda langFortran langVhdl 246 - enableMultilib version; isGNU = true; }; 247 - 248 - # ghdl does not build fine with parallel building 249 - # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46173 250 - #enableParallelBuilding = !langVhdl && !langAda; 251 - 252 - meta = { 253 - homepage = http://gcc.gnu.org/; 254 - license = stdenv.lib.licenses.gpl3Plus; # runtime support libraries are typically LGPLv3+ 255 - description = "GNU Compiler Collection, version ${version}"; 256 - 257 - longDescription = '' 258 - The GNU Compiler Collection includes compiler front ends for C, C++, 259 - Objective-C, Fortran, OpenMP for C/C++/Fortran, Java, and Ada, as well 260 - as libraries for these languages (libstdc++, libgcj, libgomp,...). 261 - 262 - GCC development is a part of the GNU Project, aiming to improve the 263 - compiler used in the GNU system including the GNU/Linux variant. 264 - ''; 265 - 266 - maintainers = [ 267 - # Add your name here! 268 - stdenv.lib.maintainers.viric 269 - ]; 270 - 271 - # Volunteers needed for the {Cyg,Dar}win ports of *PPL. 272 - # gnatboot is not available out of linux platforms, so we disable the darwin build 273 - # for the gnat (ada compiler). 274 - platforms = stdenv.lib.platforms.linux ++ optionals (langAda == false) [ "i686-darwin" ]; 275 - }; 276 - } 277 - // (if langVhdl then rec { 278 - name = "ghdl-0.29"; 279 - 280 - ghdlSrc = fetchurl { 281 - url = "http://ghdl.free.fr/ghdl-0.29.tar.bz2"; 282 - sha256 = "15mlinr1lwljwll9ampzcfcrk9bk0qpdks1kxlvb70xf9zhh2jva"; 283 - }; 284 - 285 - # Ghdl has some timestamps checks, storing file timestamps in '.cf' files. 286 - # As we will change the timestamps to 1970-01-01 00:00:01, we also set the 287 - # content of that .cf to that value. This way ghdl does not complain on 288 - # the installed object files from the basic libraries (ieee, ...) 289 - postInstallGhdl = '' 290 - pushd $out 291 - find . -name "*.cf" -exec \ 292 - sed 's/[0-9]*\.000" /19700101000001.000" /g' -i {} \; 293 - popd 294 - ''; 295 - 296 - postUnpack = '' 297 - tar xvf ${ghdlSrc} 298 - mv ghdl-*/vhdl gcc*/gcc 299 - rm -Rf ghdl-* 300 - ''; 301 - 302 - meta = { 303 - homepage = "http://ghdl.free.fr/"; 304 - license = stdenv.lib.licenses.gpl2Plus; 305 - description = "Complete VHDL simulator, using the GCC technology (gcc ${version})"; 306 - maintainers = with stdenv.lib.maintainers; [viric]; 307 - platforms = with stdenv.lib.platforms; linux; 308 - }; 309 - 310 - } else {}))
···
-111
pkgs/development/compilers/gcc/4.4/ghdl-ortho-cflags.patch
··· 1 - diff --git a/gcc/vhdl/Make-lang.in b/gcc/vhdl/Make-lang.in 2 - index 8f481df..681ac59 100644 3 - --- a/gcc/vhdl/Make-lang.in 4 - +++ b/gcc/vhdl/Make-lang.in 5 - @@ -96,7 +96,7 @@ AGCC_GCCOBJ_DIR=../ 6 - AGCC_INC_FLAGS=-I$(AGCC_GCCOBJ_DIR)/gcc -I$(AGCC_GCCSRC_DIR)/include \ 7 - -I$(AGCC_GCCSRC_DIR)/gcc -I$(AGCC_GCCSRC_DIR)/gcc/config \ 8 - -I$(AGCC_GCCSRC_DIR)/libcpp/include 9 - -AGCC_CFLAGS=-g -Wall -DIN_GCC $(AGCC_INC_FLAGS) 10 - +AGCC_CFLAGS=-g -Wall -DIN_GCC $(AGCC_INC_FLAGS) $(CFLAGS) $(INCLUDES) 11 - 12 - AGCC_LOCAL_OBJS=ortho-lang.o 13 - 14 - @@ -140,7 +140,7 @@ ghdl$(exeext): force 15 - 16 - # Ghdl libraries. 17 - ghdllib: ghdl$(exeext) $(GCC_PASSES) force 18 - - $(MAKE_IN_VHDL) GRT_FLAGS="-O -g" ghdllib 19 - + $(MAKE_IN_VHDL) GRT_FLAGS="-O -g $(CFLAGS)" ghdllib 20 - 21 - # Build hooks: 22 - 23 - diff --git a/gcc/vhdl/Makefile.in b/gcc/vhdl/Makefile.in 24 - index d754c6c..07abc4a 100644 25 - --- a/gcc/vhdl/Makefile.in 26 - +++ b/gcc/vhdl/Makefile.in 27 - @@ -80,7 +80,8 @@ T_CPPFLAGS = 28 - X_ADAFLAGS = 29 - T_ADAFLAGS = 30 - 31 - -ADAC = $(CC) 32 - +# Never use the bootstrapped compiler, as it may not be built for ada 33 - +ADAC = gcc 34 - 35 - ECHO = echo 36 - CHMOD = chmod 37 - diff --git a/gcc/vhdl/ortho-lang.c b/gcc/vhdl/ortho-lang.c 38 - index 84aeb92..8eddd42 100644 39 - --- a/gcc/vhdl/ortho-lang.c 40 - +++ b/gcc/vhdl/ortho-lang.c 41 - @@ -16,6 +16,7 @@ 42 - #include "options.h" 43 - #include "real.h" 44 - -#include "tree-gimple.h" 45 - +#include "gimple.h" 46 - +#include "tree.h" 47 - #include "function.h" 48 - #include "cgraph.h" 49 - #include "target.h" 50 - @@ -680,38 +681,10 @@ type_for_mode (enum machine_mode mode, int unsignedp) 51 - 52 - const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER; 53 - 54 - -/* Tree code classes. */ 55 - - 56 - -#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) TYPE, 57 - - 58 - -const enum tree_code_class tree_code_type[] = { 59 - -#include "tree.def" 60 - - 'x' 61 - -}; 62 - -#undef DEFTREECODE 63 - - 64 - -/* Table indexed by tree code giving number of expression 65 - - operands beyond the fixed part of the node structure. 66 - - Not used for types or decls. */ 67 - - 68 - -#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) LENGTH, 69 - - 70 - -const unsigned char tree_code_length[] = { 71 - -#include "tree.def" 72 - - 0 73 - -}; 74 - -#undef DEFTREECODE 75 - - 76 - -#define DEFTREECODE(SYM, NAME, TYPE, LENGTH) NAME, 77 - -const char * const tree_code_name[] = { 78 - -#include "tree.def" 79 - - "@@dummy" 80 - -}; 81 - -#undef DEFTREECODE 82 - 83 - union lang_tree_node 84 - GTY((desc ("0"), 85 - - chain_next ("(union lang_tree_node *) GENERIC_NEXT (&%h.generic)"))) 86 - + chain_next ("(union lang_tree_node *) TREE_CHAIN (&%h.generic)"))) 87 - { 88 - union tree_node GTY ((tag ("0"))) generic; 89 - }; 90 - @@ -1162,7 +1135,7 @@ new_access_type (tree dtype) 91 - res = make_node (POINTER_TYPE); 92 - TREE_TYPE (res) = NULL_TREE; 93 - /* Seems necessary. */ 94 - - TYPE_MODE (res) = Pmode; 95 - + SET_TYPE_MODE (res, Pmode); 96 - layout_type (res); 97 - return res; 98 - } 99 - diff --git a/gcc/vhdl/Make-lang.in b/gcc/vhdl/Make-lang.in 100 - index e201f64..f36fb97 100644 101 - --- a/gcc/vhdl/Make-lang.in 102 - +++ b/gcc/vhdl/Make-lang.in 103 - @@ -132,7 +132,7 @@ ghdl1$(exeext): $(AGCC_OBJS) $(AGCC_DEPS) force 104 - -cargs $(CFLAGS) $(GHDL_ADAFLAGS) 105 - $(GNATMAKE) -o $@ -aI$(srcdir)/vhdl -aOvhdl ortho_gcc-main \ 106 - -bargs -E -cargs $(CFLAGS) $(GHDL_ADAFLAGS) \ 107 - - -largs $(AGCC_OBJS) $(LIBS) $(GMPLIBS) 108 - + -largs $(AGCC_OBJS) $(LIBS) $(GMPLIBS) $(CLOOGLIBS) $(PPLLIBS) 109 - 110 - # The driver for ghdl. 111 - ghdl$(exeext): force
···
-33
pkgs/development/compilers/gcc/4.4/gnat-cflags.patch
··· 1 - diff --git a/libada/Makefile.in b/libada/Makefile.in 2 - index f5057a0..337e0c6 100644 3 - --- a/libada/Makefile.in 4 - +++ b/libada/Makefile.in 5 - @@ -55,7 +55,7 @@ GCC_WARN_CFLAGS = $(LOOSE_WARN) 6 - WARN_CFLAGS = @warn_cflags@ 7 - 8 - TARGET_LIBGCC2_CFLAGS= 9 - -GNATLIBCFLAGS= -g -O2 10 - +GNATLIBCFLAGS= -g -O2 $(CFLAGS) 11 - GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \ 12 - -DIN_RTS @have_getipinfo@ 13 - 14 - --- a/gcc/ada/gcc-interface/Makefile.in 15 - +++ b/gcc/ada/gcc-interface/Makefile.in 16 - @@ -105,7 +105,7 @@ ADAFLAGS = -W -Wall -gnatpg -gnata 17 - SOME_ADAFLAGS =-gnata 18 - FORCE_DEBUG_ADAFLAGS = -g 19 - GNATLIBFLAGS = -gnatpg -nostdinc 20 - -GNATLIBCFLAGS = -g -O2 21 - +GNATLIBCFLAGS = -g -O2 $(CFLAGS_FOR_TARGET) 22 - # Pretend that _Unwind_GetIPInfo is available for the target by default. This 23 - # should be autodetected during the configuration of libada and passed down to 24 - # here, but we need something for --disable-libada and hope for the best. 25 - @@ -1838,7 +1838,7 @@ ADA_INCLUDE_SRCS =\ 26 - 27 - LIBGNAT=../$(RTSDIR)/libgnat.a 28 - 29 - -GCC_LINK=$(CC) -static-libgcc $(ADA_INCLUDES) 30 - +GCC_LINK=$(CC) -static-libgcc $(CFLAGS_FOR_TARGET) $(ADA_INCLUDES) 31 - 32 - # when compiling the tools, the runtime has to be first on the path so that 33 - # it hides the runtime files lying with the rest of the sources
···
-15
pkgs/development/compilers/gcc/4.4/libstdc++-target.patch
··· 1 - diff --git a/Makefile.in b/Makefile.in 2 - index 245c770..8545b60 100644 3 - --- a/Makefile.in 4 - +++ b/Makefile.in 5 - @@ -250,8 +250,8 @@ BASE_TARGET_EXPORTS = \ 6 - RAW_CXX_TARGET_EXPORTS = \ 7 - $(BASE_TARGET_EXPORTS) \ 8 - CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ 9 - - CXX="$(RAW_CXX_FOR_TARGET) $(CFLAGS_FOR_BUILD)"; export CXX; \ 10 - - CXXCPP="$(RAW_CXX_FOR_TARGET) $(CFLAGS_FOR_BUILD) -E"; export CXXCPP; 11 - + CXX="$(RAW_CXX_FOR_TARGET) $(CFLAGS_FOR_TARGET)"; export CXX; \ 12 - + CXXCPP="$(RAW_CXX_FOR_TARGET) $(CFLAGS_FOR_TARGET) -E"; export CXXCPP; 13 - 14 - NORMAL_TARGET_EXPORTS = \ 15 - $(BASE_TARGET_EXPORTS) \
···
-66
pkgs/development/compilers/gcc/4.4/no-sys-dirs.patch
··· 1 - diff -ru gcc-4.3.1-orig/gcc/cppdefault.c gcc-4.3.1/gcc/cppdefault.c 2 - --- gcc-4.3.1-orig/gcc/cppdefault.c 2007-07-26 10:37:01.000000000 +0200 3 - +++ gcc-4.3.1/gcc/cppdefault.c 2008-06-25 17:48:23.000000000 +0200 4 - @@ -41,6 +41,10 @@ 5 - # undef CROSS_INCLUDE_DIR 6 - #endif 7 - 8 - +#undef LOCAL_INCLUDE_DIR 9 - +#undef SYSTEM_INCLUDE_DIR 10 - +#undef STANDARD_INCLUDE_DIR 11 - + 12 - const struct default_include cpp_include_defaults[] 13 - #ifdef INCLUDE_DEFAULTS 14 - = INCLUDE_DEFAULTS; 15 - diff -ru gcc-4.3.1-orig/gcc/gcc.c gcc-4.3.1/gcc/gcc.c 16 - --- gcc-4.3.1-orig/gcc/gcc.c 2008-03-02 23:55:19.000000000 +0100 17 - +++ gcc-4.3.1/gcc/gcc.c 2008-06-25 17:52:53.000000000 +0200 18 - @@ -1478,10 +1478,10 @@ 19 - /* Default prefixes to attach to command names. */ 20 - 21 - #ifndef STANDARD_STARTFILE_PREFIX_1 22 - -#define STANDARD_STARTFILE_PREFIX_1 "/lib/" 23 - +#define STANDARD_STARTFILE_PREFIX_1 "" 24 - #endif 25 - #ifndef STANDARD_STARTFILE_PREFIX_2 26 - -#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/" 27 - +#define STANDARD_STARTFILE_PREFIX_2 "" 28 - #endif 29 - 30 - #ifdef CROSS_DIRECTORY_STRUCTURE /* Don't use these prefixes for a cross compiler. */ 31 - @@ -1515,8 +1515,8 @@ 32 - /* For native compilers, these are well-known paths containing 33 - components that may be provided by the system. For cross 34 - compilers, these paths are not used. */ 35 - -static const char *const standard_exec_prefix_1 = "/usr/libexec/gcc/"; 36 - -static const char *const standard_exec_prefix_2 = "/usr/lib/gcc/"; 37 - +static const char *const standard_exec_prefix_1 = "/no-such-path/"; 38 - +static const char *const standard_exec_prefix_2 = "/no-such-path/"; 39 - static const char *md_exec_prefix = MD_EXEC_PREFIX; 40 - static const char *md_startfile_prefix = MD_STARTFILE_PREFIX; 41 - static const char *md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1; 42 - diff -ru gcc-4.3.1-orig/gcc/Makefile.in gcc-4.3.1/gcc/Makefile.in 43 - --- gcc-4.3.1-orig/gcc/Makefile.in 2008-05-11 20:54:15.000000000 +0200 44 - +++ gcc-4.3.1/gcc/Makefile.in 2008-06-25 17:48:23.000000000 +0200 45 - @@ -378,7 +378,11 @@ 46 - MD5_H = $(srcdir)/../include/md5.h 47 - 48 - # Default native SYSTEM_HEADER_DIR, to be overridden by targets. 49 - -NATIVE_SYSTEM_HEADER_DIR = /usr/include 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 - @@ -3277,7 +3281,7 @@ 59 - -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ 60 - -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_noncanonical)\" \ 61 - -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \ 62 - - -DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \ 63 - + -DLOCAL_INCLUDE_DIR=\"/no-such-dir\" \ 64 - -DCROSS_INCLUDE_DIR=\"$(CROSS_SYSTEM_HEADER_DIR)\" \ 65 - -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \ 66 - -DPREFIX=\"$(prefix)/\" \
···
-21
pkgs/development/compilers/gcc/4.4/pass-cxxcpp.patch
··· 1 - diff -rc gcc-orig/Makefile.in gcc-4.1.1/Makefile.in 2 - *** gcc-orig/Makefile.in Wed Jun 21 13:40:23 2006 3 - --- gcc-4.1.1/Makefile.in Wed Jun 21 14:19:44 2006 4 - *************** 5 - *** 213,219 **** 6 - RAW_CXX_TARGET_EXPORTS = \ 7 - $(BASE_TARGET_EXPORTS) \ 8 - CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ 9 - ! CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; 10 - 11 - NORMAL_TARGET_EXPORTS = \ 12 - $(BASE_TARGET_EXPORTS) \ 13 - --- 213,220 ---- 14 - RAW_CXX_TARGET_EXPORTS = \ 15 - $(BASE_TARGET_EXPORTS) \ 16 - CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ 17 - ! CXX="$(RAW_CXX_FOR_TARGET) $(CFLAGS_FOR_BUILD)"; export CXX; \ 18 - ! CXXCPP="$(RAW_CXX_FOR_TARGET) $(CFLAGS_FOR_BUILD) -E"; export CXXCPP; 19 - 20 - NORMAL_TARGET_EXPORTS = \ 21 - $(BASE_TARGET_EXPORTS) \
···
-26
pkgs/development/compilers/gcc/4.4/pr41818.patch
··· 1 - From <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818>. This fixes compilation 2 - of the sparc64-linux-gnu cross-compiler with shared libraries. 3 - 4 - --- trunk/Makefile.in 2010/01/07 19:21:46 155705 5 - +++ trunk/Makefile.in 2010/01/07 19:53:50 155706 6 - @@ -259,7 +259,7 @@ 7 - # directories built for the target. 8 - TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)" 9 - # This is the list of variables to export in the environment when 10 - -# configuring subdirectories for the host system. 11 - +# configuring subdirectories for the target system. 12 - BASE_TARGET_EXPORTS = \ 13 - $(BASE_EXPORTS) \ 14 - AR="$(AR_FOR_TARGET)"; export AR; \ 15 - @@ -281,7 +281,10 @@ 16 - STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \ 17 - WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ 18 - WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \ 19 - - $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); 20 - +@if gcc-bootstrap 21 - + $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \ 22 - +@endif gcc-bootstrap 23 - + $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); 24 - 25 - RAW_CXX_TARGET_EXPORTS = \ 26 - $(BASE_TARGET_EXPORTS) \
···
-174
pkgs/development/compilers/gcc/4.4/siginfo_t_fix.patch
··· 1 - https://bugs.gentoo.org/424970 2 - 3 - fix from upstream for building with newer glibc versions 4 - 5 - From f0cdca2bf2230005025e13e7354fedb612933c96 Mon Sep 17 00:00:00 2001 6 - From: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> 7 - Date: Fri, 20 Apr 2012 08:14:00 +0000 8 - Subject: [PATCH] struct siginfo vs. siginfo_t 9 - 10 - Backport from trunk (but apply to gcc/): 11 - 12 - 2012-04-20 Thomas Schwinge <thomas@codesourcery.com> 13 - 14 - gcc/ 15 - * config/alpha/linux-unwind.h (alpha_fallback_frame_state): Use 16 - siginfo_t instead of struct siginfo. 17 - * config/bfin/linux-unwind.h (bfin_fallback_frame_state): Likewise. 18 - * config/i386/linux-unwind.h (x86_fallback_frame_state): Likewise. 19 - * config/ia64/linux-unwind.h (ia64_fallback_frame_state) 20 - (ia64_handle_unwabi): Likewise. 21 - * config/mips/linux-unwind.h (mips_fallback_frame_state): Likewise. 22 - * config/pa/linux-unwind.h (pa32_fallback_frame_state): Likewise. 23 - * config/sh/linux-unwind.h (shmedia_fallback_frame_state) 24 - (sh_fallback_frame_state): Likewise. 25 - * config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Likewise. 26 - 27 - git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_5-branch@186613 138bc75d-0d04-0410-961f-82ee72b054a4 28 - --- 29 - gcc/ChangeLog | 20 ++++++++++++++++++++ 30 - gcc/config/alpha/linux-unwind.h | 4 ++-- 31 - gcc/config/bfin/linux-unwind.h | 6 +++--- 32 - gcc/config/i386/linux-unwind.h | 6 +++--- 33 - gcc/config/ia64/linux-unwind.h | 6 +++--- 34 - gcc/config/mips/linux-unwind.h | 5 +++-- 35 - gcc/config/pa/linux-unwind.h | 4 ++-- 36 - gcc/config/sh/linux-unwind.h | 9 +++++---- 37 - gcc/config/xtensa/linux-unwind.h | 4 ++-- 38 - 9 files changed, 43 insertions(+), 21 deletions(-) 39 - 40 - diff --git a/gcc/config/alpha/linux-unwind.h b/gcc/config/alpha/linux-unwind.h 41 - index 4c811dc..8c04b3b 100644 42 - --- a/gcc/config/alpha/linux-unwind.h 43 - +++ b/gcc/config/alpha/linux-unwind.h 44 - @@ -49,7 +49,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context, 45 - else if (pc[1] == 0x201f015f) /* lda $0,NR_rt_sigreturn */ 46 - { 47 - struct rt_sigframe { 48 - - struct siginfo info; 49 - + siginfo_t info; 50 - struct ucontext uc; 51 - } *rt_ = context->cfa; 52 - sc = &rt_->uc.uc_mcontext; 53 - diff --git a/gcc/config/bfin/linux-unwind.h b/gcc/config/bfin/linux-unwind.h 54 - index 88c8285..15bb2f1 100644 55 - --- a/gcc/config/bfin/linux-unwind.h 56 - +++ b/gcc/config/bfin/linux-unwind.h 57 - @@ -48,10 +48,10 @@ bfin_fallback_frame_state (struct _Unwind_Context *context, 58 - { 59 - struct rt_sigframe { 60 - int sig; 61 - - struct siginfo *pinfo; 62 - + siginfo_t *pinfo; 63 - void *puc; 64 - char retcode[8]; 65 - - struct siginfo info; 66 - + siginfo_t info; 67 - struct ucontext uc; 68 - } *rt_ = context->cfa; 69 - 70 - diff --git a/gcc/config/i386/linux-unwind.h b/gcc/config/i386/linux-unwind.h 71 - index 36ee370..fe0ea3e 100644 72 - --- a/gcc/config/i386/linux-unwind.h 73 - +++ b/gcc/config/i386/linux-unwind.h 74 - @@ -133,9 +133,9 @@ x86_fallback_frame_state (struct _Unwind_Context *context, 75 - { 76 - struct rt_sigframe { 77 - int sig; 78 - - struct siginfo *pinfo; 79 - + siginfo_t *pinfo; 80 - void *puc; 81 - - struct siginfo info; 82 - + siginfo_t info; 83 - struct ucontext uc; 84 - } *rt_ = context->cfa; 85 - /* The void * cast is necessary to avoid an aliasing warning. 86 - diff --git a/gcc/config/ia64/linux-unwind.h b/gcc/config/ia64/linux-unwind.h 87 - index 93f762d..da31259 100644 88 - --- a/gcc/config/ia64/linux-unwind.h 89 - +++ b/gcc/config/ia64/linux-unwind.h 90 - @@ -47,7 +47,7 @@ ia64_fallback_frame_state (struct _Unwind_Context *context, 91 - struct sigframe { 92 - char scratch[16]; 93 - unsigned long sig_number; 94 - - struct siginfo *info; 95 - + siginfo_t *info; 96 - struct sigcontext *sc; 97 - } *frame_ = (struct sigframe *)context->psp; 98 - struct sigcontext *sc = frame_->sc; 99 - @@ -137,7 +137,7 @@ ia64_handle_unwabi (struct _Unwind_Context *context, _Unwind_FrameState *fs) 100 - struct sigframe { 101 - char scratch[16]; 102 - unsigned long sig_number; 103 - - struct siginfo *info; 104 - + siginfo_t *info; 105 - struct sigcontext *sc; 106 - } *frame = (struct sigframe *)context->psp; 107 - struct sigcontext *sc = frame->sc; 108 - diff --git a/gcc/config/mips/linux-unwind.h b/gcc/config/mips/linux-unwind.h 109 - index 02f7cd5..094ff58 100644 110 - --- a/gcc/config/mips/linux-unwind.h 111 - +++ b/gcc/config/mips/linux-unwind.h 112 - @@ -75,7 +76,7 @@ mips_fallback_frame_state (struct _Unwind_Context *context, 113 - struct rt_sigframe { 114 - u_int32_t ass[4]; /* Argument save space for o32. */ 115 - u_int32_t trampoline[2]; 116 - - struct siginfo info; 117 - + siginfo_t info; 118 - _sig_ucontext_t uc; 119 - } *rt_ = context->cfa; 120 - sc = &rt_->uc.uc_mcontext; 121 - diff --git a/gcc/config/pa/linux-unwind.h b/gcc/config/pa/linux-unwind.h 122 - index a0560e9..38b4eda 100644 123 - --- a/gcc/config/pa/linux-unwind.h 124 - +++ b/gcc/config/pa/linux-unwind.h 125 - @@ -63,7 +63,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context, 126 - int i; 127 - struct sigcontext *sc; 128 - struct rt_sigframe { 129 - - struct siginfo info; 130 - + siginfo_t info; 131 - struct ucontext uc; 132 - } *frame; 133 - 134 - diff --git a/gcc/config/sh/linux-unwind.h b/gcc/config/sh/linux-unwind.h 135 - index 94ed95d..5a78e31 100644 136 - --- a/gcc/config/sh/linux-unwind.h 137 - +++ b/gcc/config/sh/linux-unwind.h 138 - @@ -80,9 +81,9 @@ shmedia_fallback_frame_state (struct _Unwind_Context *context, 139 - && (*(unsigned long *) (pc+11) == 0x6ff0fff0)) 140 - { 141 - struct rt_sigframe { 142 - - struct siginfo *pinfo; 143 - + siginfo_t *pinfo; 144 - void *puc; 145 - - struct siginfo info; 146 - + siginfo_t info; 147 - struct ucontext uc; 148 - } *rt_ = context->cfa; 149 - /* The void * cast is necessary to avoid an aliasing warning. 150 - @@ -179,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context, 151 - && (*(unsigned short *) (pc+14) == 0x00ad)))) 152 - { 153 - struct rt_sigframe { 154 - - struct siginfo info; 155 - + siginfo_t info; 156 - struct ucontext uc; 157 - } *rt_ = context->cfa; 158 - /* The void * cast is necessary to avoid an aliasing warning. 159 - diff --git a/gcc/config/xtensa/linux-unwind.h b/gcc/config/xtensa/linux-unwind.h 160 - index 32e9349..2456497 100644 161 - --- a/gcc/config/xtensa/linux-unwind.h 162 - +++ b/gcc/config/xtensa/linux-unwind.h 163 - @@ -62,7 +62,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context, 164 - struct sigcontext *sc; 165 - 166 - struct rt_sigframe { 167 - - struct siginfo info; 168 - + siginfo_t info; 169 - struct ucontext uc; 170 - } *rt_; 171 - 172 - -- 173 - 1.7.9.7 174 -
···
-26
pkgs/development/compilers/gcc/4.4/sources.nix
··· 1 - /* Automatically generated by `update-gcc.sh', do not edit. 2 - For GCC 4.4.7. */ 3 - { fetchurl, optional, version, langC, langCC, langFortran, langJava, langAda }: 4 - 5 - assert version == "4.4.7"; 6 - optional /* langC */ true (fetchurl { 7 - url = "mirror://gcc/releases/gcc-${version}/gcc-core-${version}.tar.bz2"; 8 - sha256 = "c4663b7023909a4a075d3c2b2e17f6e082a9625aebfd0ce7f1d7817e44bf5542"; 9 - }) ++ 10 - optional langCC (fetchurl { 11 - url = "mirror://gcc/releases/gcc-${version}/gcc-g++-${version}.tar.bz2"; 12 - sha256 = "1882ff29be51eeb3fb349cbcda9df200a5c3cd20c97dd1d593101e0998b3c469"; 13 - }) ++ 14 - optional langFortran (fetchurl { 15 - url = "mirror://gcc/releases/gcc-${version}/gcc-fortran-${version}.tar.bz2"; 16 - sha256 = "545a1e8e97d9364de4408c6a91830f9051ce24b4fbfbfdc56e72c7b4be17ebdd"; 17 - }) ++ 18 - optional langJava (fetchurl { 19 - url = "mirror://gcc/releases/gcc-${version}/gcc-java-${version}.tar.bz2"; 20 - sha256 = "3c31ddd80f945b797d8d4ed7761426c26343781c361ec1b33bcea9874cc4c6c0"; 21 - }) ++ 22 - optional langAda (fetchurl { 23 - url = "mirror://gcc/releases/gcc-${version}/gcc-ada-${version}.tar.bz2"; 24 - sha256 = "fb9f30b85d48838390554b948d137487f0db09ad5f8ba73ca4d7ca35765c6ed8"; 25 - }) ++ 26 - []
···
-12
pkgs/development/compilers/gcc/4.4/target-cpp.patch
··· 1 - diff --git a/Makefile.in b/Makefile.in 2 - index 8545b60..1fab64d 100644 3 - --- a/Makefile.in 4 - +++ b/Makefile.in 5 - @@ -231,6 +231,7 @@ BASE_TARGET_EXPORTS = \ 6 - CC="$(CC_FOR_TARGET)"; export CC; \ 7 - CFLAGS="$(CFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CFLAGS; \ 8 - CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ 9 - + CPP="$(CC_FOR_TARGET) -E"; export CPP; \ 10 - CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \ 11 - CXXFLAGS="$(CXXFLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)"; export CXXFLAGS; \ 12 - GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
···
-64
pkgs/development/compilers/gcc/4.4/update-gcc.sh
··· 1 - #!/bin/sh 2 - 3 - if [ $# -ne 1 ] 4 - then 5 - echo "Usage: $(basename $0) VERSION" 6 - echo 7 - echo "Download and GPG-check component tarballs for GCC VERSION." 8 - exit 1 9 - fi 10 - 11 - version="$1" 12 - 13 - set -e 14 - 15 - out="sources.nix" 16 - 17 - declare -A options 18 - 19 - options["core"]="/* langC */ true" 20 - options["g++"]="langCC" 21 - options["fortran"]="langFortran" 22 - options["java"]="langJava" 23 - options["ada"]="langAda" 24 - #options["go"]="langGo" 25 - 26 - cat > "$out"<<EOF 27 - /* Automatically generated by \`$(basename $0)', do not edit. 28 - For GCC ${version}. */ 29 - { fetchurl, optional, version, langC, langCC, langFortran, langJava, langAda, 30 - langGo }: 31 - 32 - assert version == "${version}"; 33 - EOF 34 - 35 - for component in core g++ fortran java ada #go 36 - do 37 - dir="ftp.gnu.org/gnu/gcc/gcc-${version}" 38 - file="gcc-${component}-${version}.tar.bz2" 39 - url="${dir}/${file}" 40 - 41 - rm -f "${file}" 42 - 43 - wget "$url" 44 - hash="$(nix-hash --flat --type sha256 "$file")" 45 - path="$(nix-store --add-fixed sha256 "$file")" 46 - 47 - rm -f "${file}" "${file}.sig" 48 - wget "${url}.sig" 49 - gpg --verify "${file}.sig" "${path}" || gpg2 --verify "${file}.sig" "${path}" 50 - rm "${file}.sig" 51 - 52 - cat >> "$out" <<EOF 53 - optional ${options[$component]} (fetchurl { 54 - url = "mirror://gcc/releases/gcc-\${version}/gcc-${component}-\${version}.tar.bz2"; 55 - sha256 = "${hash}"; 56 - }) ++ 57 - EOF 58 - done 59 - 60 - cat >> "$out" <<EOF 61 - [] 62 - EOF 63 - 64 - echo "result stored in \`$out'"
···
+2
pkgs/development/compilers/gcc/5/default.nix
··· 495 496 inherit (stdenv) is64bit; 497 498 meta = { 499 homepage = http://gcc.gnu.org/; 500 license = stdenv.lib.licenses.gpl3Plus; # runtime support libraries are typically LGPLv3+
··· 495 496 inherit (stdenv) is64bit; 497 498 + setupHook = ./use-old-abi.sh; 499 + 500 meta = { 501 homepage = http://gcc.gnu.org/; 502 license = stdenv.lib.licenses.gpl3Plus; # runtime support libraries are typically LGPLv3+
+1
pkgs/development/compilers/gcc/5/use-old-abi.sh
···
··· 1 + NIX_CFLAGS_COMPILE+=" -D_GLIBCXX_USE_CXX11_ABI=0"
+4 -4
pkgs/development/interpreters/self/default.nix
··· 1 - { fetchurl, fetchgit, stdenv, xorg, gcc44, makeWrapper, ncurses, cmake }: 2 3 stdenv.mkDerivation rec { 4 # The Self wrapper stores source in $XDG_DATA_HOME/self or ~/.local/share/self ··· 20 sha256 = "966025b71542e44fc830b951f404f5721ad410ed24f7236fd0cd820ea0fc5731"; 21 }; 22 23 - # gcc 4.6 and above causes crashes on Self startup but gcc 4.4 works. 24 - buildInputs = [ gcc44 ncurses xorg.libX11 xorg.libXext makeWrapper cmake ]; 25 26 selfWrapper = ./self; 27 ··· 36 37 meta = { 38 description = "A prototype-based dynamic object-oriented programming language, environment, and virtual machine"; 39 - homepage = "http://selflanguage.org/"; 40 license = stdenv.lib.licenses.bsd3; 41 maintainers = [ stdenv.lib.maintainers.doublec ]; 42 platforms = with stdenv.lib.platforms; linux; 43 }; 44 }
··· 1 + { fetchurl, fetchgit, stdenv, xorg, makeWrapper, ncurses, cmake }: 2 3 stdenv.mkDerivation rec { 4 # The Self wrapper stores source in $XDG_DATA_HOME/self or ~/.local/share/self ··· 20 sha256 = "966025b71542e44fc830b951f404f5721ad410ed24f7236fd0cd820ea0fc5731"; 21 }; 22 23 + buildInputs = [ ncurses xorg.libX11 xorg.libXext makeWrapper cmake ]; 24 25 selfWrapper = ./self; 26 ··· 35 36 meta = { 37 description = "A prototype-based dynamic object-oriented programming language, environment, and virtual machine"; 38 + homepage = http://selflanguage.org/; 39 license = stdenv.lib.licenses.bsd3; 40 maintainers = [ stdenv.lib.maintainers.doublec ]; 41 platforms = with stdenv.lib.platforms; linux; 42 + broken = true; # segfaults on gcc > 4.4 43 }; 44 }
+1
pkgs/development/libraries/aterm/2.5.nix
··· 29 description = "Library for manipulation of term data structures in C"; 30 platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; 31 maintainers = [ stdenv.lib.maintainers.eelco ]; 32 }; 33 }
··· 29 description = "Library for manipulation of term data structures in C"; 30 platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; 31 maintainers = [ stdenv.lib.maintainers.eelco ]; 32 + broken = true; 33 }; 34 }
+1 -1
pkgs/development/libraries/gsl/default.nix
··· 13 ./disable-fma.patch # http://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html 14 ]; 15 16 - doCheck = true; 17 18 meta = { 19 description = "The GNU Scientific Library, a large numerical library";
··· 13 ./disable-fma.patch # http://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html 14 ]; 15 16 + doCheck = stdenv.system != "i686-linux"; # https://lists.gnu.org/archive/html/bug-gsl/2015-11/msg00012.html 17 18 meta = { 19 description = "The GNU Scientific Library, a large numerical library";
+8 -1
pkgs/development/libraries/libcli/default.nix
··· 1 - { stdenv, fetchFromGitHub }: 2 3 stdenv.mkDerivation rec { 4 name = "libcli-${version}"; ··· 10 repo = "libcli"; 11 owner = "dparrish"; 12 }; 13 14 enableParallelBuilding = true; 15
··· 1 + { stdenv, fetchFromGitHub, fetchurl }: 2 3 stdenv.mkDerivation rec { 4 name = "libcli-${version}"; ··· 10 repo = "libcli"; 11 owner = "dparrish"; 12 }; 13 + 14 + patches = 15 + [ (fetchurl { 16 + url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch"; 17 + sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl"; 18 + }) 19 + ]; 20 21 enableParallelBuilding = true; 22
+1
pkgs/development/libraries/openbabel/default.nix
··· 18 meta = { 19 platforms = stdenv.lib.platforms.all; 20 maintainers = [ stdenv.lib.maintainers.urkud ]; 21 }; 22 }
··· 18 meta = { 19 platforms = stdenv.lib.platforms.all; 20 maintainers = [ stdenv.lib.maintainers.urkud ]; 21 + broken = true; # doesn't build with GCC 5; fix in GitHub 22 }; 23 }
+2 -1
pkgs/development/libraries/telepathy/qt/default.nix
··· 8 url = "http://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz"; 9 sha256 = "1y51c6rxk5qvmab98c8rnmrlyk27hnl248casvbq3cd93sav8vj9"; 10 }; 11 patches = let 12 mkUrl = hash: "http://cgit.freedesktop.org/telepathy/telepathy-qt/patch/?id=" + hash; 13 in [ ··· 36 cmakeFlags = "-DDESIRED_QT_VERSION=${builtins.substring 0 1 qtbase.version}"; 37 38 # should be removable after the next update 39 - NIX_CFLAGS_COMPILE = [ "-Wno-error=cpp" "-Wno-error=unused-but-set-variable" ]; 40 41 preBuild = '' 42 NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`"
··· 8 url = "http://telepathy.freedesktop.org/releases/telepathy-qt/${name}.tar.gz"; 9 sha256 = "1y51c6rxk5qvmab98c8rnmrlyk27hnl248casvbq3cd93sav8vj9"; 10 }; 11 + 12 patches = let 13 mkUrl = hash: "http://cgit.freedesktop.org/telepathy/telepathy-qt/patch/?id=" + hash; 14 in [ ··· 37 cmakeFlags = "-DDESIRED_QT_VERSION=${builtins.substring 0 1 qtbase.version}"; 38 39 # should be removable after the next update 40 + NIX_CFLAGS_COMPILE = [ "-Wno-error" ]; 41 42 preBuild = '' 43 NIX_CFLAGS_COMPILE+=" `pkg-config --cflags dbus-glib-1`"
+1
pkgs/development/libraries/vxl/default.nix
··· 26 license = "VXL License"; 27 maintainers = with stdenv.lib.maintainers; [viric]; 28 platforms = with stdenv.lib.platforms; linux; 29 }; 30 }
··· 26 license = "VXL License"; 27 maintainers = with stdenv.lib.maintainers; [viric]; 28 platforms = with stdenv.lib.platforms; linux; 29 + broken = true; # requires fix for gcc 5: https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20150216/1511118.html 30 }; 31 }
+2 -7
pkgs/stdenv/linux/default.nix
··· 211 gmp = pkgs.gmp.override { stdenv = pkgs.makeStaticLibraries pkgs.stdenv; }; 212 mpfr = pkgs.mpfr.override { stdenv = pkgs.makeStaticLibraries pkgs.stdenv; }; 213 libmpc = pkgs.libmpc.override { stdenv = pkgs.makeStaticLibraries pkgs.stdenv; }; 214 - isl_0_11 = pkgs.isl_0_11.override { stdenv = pkgs.makeStaticLibraries pkgs.stdenv; }; 215 - cloog_0_18_0 = pkgs.cloog_0_18_0.override { 216 - stdenv = pkgs.makeStaticLibraries pkgs.stdenv; 217 - isl = isl_0_11; 218 - }; 219 gccPlain = pkgs.gcc.cc.override { 220 - isl = isl_0_11; 221 - cloog = cloog_0_18_0; 222 }; 223 }; 224 extraBuildInputs = [ stage2.pkgs.patchelf stage2.pkgs.paxctl ];
··· 211 gmp = pkgs.gmp.override { stdenv = pkgs.makeStaticLibraries pkgs.stdenv; }; 212 mpfr = pkgs.mpfr.override { stdenv = pkgs.makeStaticLibraries pkgs.stdenv; }; 213 libmpc = pkgs.libmpc.override { stdenv = pkgs.makeStaticLibraries pkgs.stdenv; }; 214 + isl_0_14 = pkgs.isl_0_14.override { stdenv = pkgs.makeStaticLibraries pkgs.stdenv; }; 215 gccPlain = pkgs.gcc.cc.override { 216 + isl = isl_0_14; 217 }; 218 }; 219 extraBuildInputs = [ stage2.pkgs.patchelf stage2.pkgs.paxctl ];
+5 -6
pkgs/tools/filesystems/mtdutils/default.nix
··· 1 - {stdenv, fetchgit, libuuid, lzo, zlib, acl}: 2 3 stdenv.mkDerivation rec { 4 name = "mtd-utils-${version}"; 5 - version = "1.5.1"; 6 7 - src = fetchgit { 8 - url = git://git.infradead.org/mtd-utils.git; 9 - rev = "refs/tags/v" + version; 10 - sha256 = "1bjx42pwl789ara63c672chvgvmqhkj4y132gajqih6naq71f8g7"; 11 }; 12 13 patchPhase = ''
··· 1 + { stdenv, fetchurl, libuuid, lzo, zlib, acl }: 2 3 stdenv.mkDerivation rec { 4 name = "mtd-utils-${version}"; 5 + version = "1.5.2"; 6 7 + src = fetchurl { 8 + url = ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.5.2.tar.bz2; 9 + sha256 = "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax"; 10 }; 11 12 patchPhase = ''
+1 -19
pkgs/top-level/all-packages.nix
··· 4086 4087 gambit = callPackage ../development/compilers/gambit { }; 4088 4089 - gcc = gcc49; 4090 4091 gcc_multi = 4092 if system == "x86_64-linux" then lowPrio ( ··· 4146 binutils = binutilsCross; 4147 cross = crossSystem; 4148 }; 4149 - 4150 - gcc44 = lowPrio (wrapCC (makeOverridable (import ../development/compilers/gcc/4.4) { 4151 - inherit fetchurl stdenv gmp mpfr /* ppl cloogppl */ 4152 - gettext which noSysDirs; 4153 - texinfo = texinfo4; 4154 - profiledCompiler = true; 4155 - })); 4156 4157 gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 { 4158 inherit noSysDirs; ··· 4307 langC = true; 4308 langGo = true; 4309 profiledCompiler = false; 4310 - }); 4311 - 4312 - ghdl = wrapCC (import ../development/compilers/gcc/4.3 { 4313 - inherit stdenv fetchurl gmp mpfr noSysDirs gnat; 4314 - texinfo = texinfo4; 4315 - name = "ghdl"; 4316 - langVhdl = true; 4317 - langCC = false; 4318 - langC = false; 4319 - profiledCompiler = false; 4320 - enableMultilib = false; 4321 }); 4322 4323 ghdl_mcode = callPackage ../development/compilers/ghdl { };
··· 4086 4087 gambit = callPackage ../development/compilers/gambit { }; 4088 4089 + gcc = gcc5; 4090 4091 gcc_multi = 4092 if system == "x86_64-linux" then lowPrio ( ··· 4146 binutils = binutilsCross; 4147 cross = crossSystem; 4148 }; 4149 4150 gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 { 4151 inherit noSysDirs; ··· 4300 langC = true; 4301 langGo = true; 4302 profiledCompiler = false; 4303 }); 4304 4305 ghdl_mcode = callPackage ../development/compilers/ghdl { };
-1
pkgs/top-level/release.nix
··· 117 gajim = linux; 118 gawk = all; 119 gcc = linux; 120 - gcc44 = linux; 121 gcj = linux; 122 ghostscript = linux; 123 ghostscriptX = linux;
··· 117 gajim = linux; 118 gawk = all; 119 gcc = linux; 120 gcj = linux; 121 ghostscript = linux; 122 ghostscriptX = linux;