Commit graph

30 commits

Author SHA1 Message Date
maya
324450b1ac gcc5: Incorrect codegen from rdseed intrinsic use (CVE-2017-11671)
We should not expand call arguments in between flags reg setting and
flags reg using instructions, as it may expand with flags reg
clobbering insn (ADD in this case).

Attached patch moves expansion out of the link. Also, change
zero-extension to non-flags reg clobbering sequence in case we perform
zero-extension with and.

2017-03-25  Uros Bizjak
2017-07-29 00:42:35 +00:00
maya
d722e2e4d8 gcc{48,49,5,7}: on netbsd only, bump libstdc++ major to 7.
bump pkgrevision.

while here, synchronize libssp comment to a clearer one.

bump gcc*-lib revision to be one higher.
2017-07-09 05:30:41 +00:00
jperkin
073328b36f Explicitly disable mkostemp on SunOS. It was shipped as part of libc for
a while without the corresponding entry in stdlib.h, thus falling foul of
-Werror=implicit-function-declaration checks.
2017-07-07 14:52:30 +00:00
maya
5c0a1ab0b6 Restrict gcc gsed usage to NetBSD
(NetBSD/mips64 progress further with gsed)

Adding gsed as a tool creates circular dependencies if pkgsrc gcc is used
as the bootstrap compiler.

Pointed out by jperkin, sorry.
2017-06-22 21:44:49 +00:00
maya
482e3d0bc7 Use gsed when building GCC.
This is a somewhat blind commit. I've long had issues on various platforms
with libgcc getting misconfigured (on netbsd/mips,arm,powerpc), for example
build failures see:
http://mail-index.netbsd.org/port-mips/2017/06/21/msg000832.html

testing GCC 7.1 with netbsd/mips64el I got a lot further using it, but
still didn't complete the build. It took hours to reach this failure,
so I'd rather blindly commit the same change in the hopes it might help
other architectures.
2017-06-21 21:16:35 +00:00
maya
d76ec1bb61 Take maintainership of all (recent-ish) GCC packages
I have gone into the depths of GCC and came back alive, so feel free
to ask me about it.
2017-06-08 09:52:47 +00:00
maya
f65124a7fb gcc5: remove wip package leftover. fix typo in patch.
from Kai-Uwe Eckhardt

on netbsd, always link against libgcc.

bump PKGREVISION.
2017-05-28 01:36:11 +00:00
adam
1a2707f48b Fix building on macOS: disable multilib (it requires fat-binaries); now builds without Command Line Tools. 2017-01-25 15:17:41 +00:00
maya
5b8bf1415a provide a consistent description across gcc packages.
don't mention netbsd things, development snapshots, etc.
2017-01-14 10:51:09 +00:00
maya
9812853479 lang/gcc5: add patch to avoid declaring a prototype of host_detect_local_cpu
on platforms which do not include driver-arm.o in gcc/config.host, and do
not have this function. such as netbsd/arm.

an alternative would be to add driver-arm.o for the netbsd/arm case too, but
it would be diverging from netbsd base gcc, and /proc/cpuinfo which is needed
for this function to do anything useful is empty at least on my machine.

(I still can't complete a build on ARM)
2016-09-30 04:06:07 +00:00
maya
867aa790b8 lang/gcc{5,6}: avoid overwriting previous extra_objs in gcc/config.gcc
No change for i386/amd64, but arm needs additional extra_objs to build.
Mistake was in a netbsd-specific part of configure as well.

Thanks to Richard Earnshaw and ktkachov at GCC for finding the problem.
2016-09-28 14:39:00 +00:00
jperkin
d8496a14f4 Fix path to elfdump on SmartOS. 2016-09-08 09:55:32 +00:00
maya
3a5706610e gcc5: netbsd-only: unconditionally disable libssp, use a saner specfile.
because we unconditionally disable libssp, we don't need the workaround
for ssp.h not found, so we can remove that part of that makefile.

bump gcc5 PKGREVISION
bump gcc5-libs PKGREVISION further than gcc5.
2016-09-06 05:08:48 +00:00
wiz
2b0a009d0e Bump PKGREVISION for perl-5.24.0 for everything mentioning perl. 2016-07-09 06:37:46 +00:00
wiz
f610340a43 Restore PKGSRC_USE_SSP test to the version before the update to 5.4.0,
so it works again (at least for me; if it doesn't for you, please
let me know).
2016-07-06 07:21:41 +00:00
ryoon
83343b8334 Update gcc5 to 5.4.0 and gcc5-libs to 5.4.0nb1
Changelog:
* Many bugs are fixed
2016-07-05 18:55:08 +00:00
jperkin
db1332a441 Use OPSYSVARS. 2016-02-25 14:42:55 +00:00
ryoon
2ef472abaa Do not generate fixed include files under NetBSD. Bump PKGREVISION
Fix graphics/cairo build failure (ssp.h not found error) as outer compiler.
2016-02-06 22:19:55 +00:00
ryoon
00ce3eb3bf Update gcc5 to 5.3.0 and gcc-libs to 5.3.0nb1
Changelog:
Target Specific Changes
IA-32/x86-64

    GCC now supports the Intel CPU named Skylake with AVX-512 extensions
    through -march=skylake-avx512. The switch enables the following ISA
    extensions: AVX-512F, AVX512VL, AVX-512CD, AVX-512BW, AVX-512DQ.
2015-12-11 12:31:03 +00:00
jperkin
842c8f3479 Remove mk/find-prefix.mk usage from the lang category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:51:16 +00:00
wiz
5f26f8d912 Add upstream bug report URL. 2015-11-17 11:21:15 +00:00
wiz
5acd61730f Fix build on NetBSD with PKGSRC_USE_SSP.
Thanks to mrg for hints.

Some pkglint cleanup while here.
2015-11-17 10:19:40 +00:00
agc
54622f28e2 Add SHA512 digests for distfiles for lang category
Problems found with existing digests:
	Package nhc98 distfile nhc98src-1.22.tar.gz
	a8adc8f22371998ee0657bc0e01058a57d876abc [recorded]
	81975fcb5f1dda5efeaabc30ce8c6dceae55e591 [calculated]

Problems found locating distfiles:
	Package gcc-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package ghc7: missing distfile ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz
	Package icc11: missing distfile l_cproc_p_11.1.080.tgz
	Package jini: missing distfile jini-1_2_1_001-src.zip
	Package oo2c: missing distfile oo2c_32-2.0.11.tar.bz2
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package oracle-jdk8: missing distfile jdk-8u60-linux-i586.tar.gz
	Package oracle-jdk8: missing distfile jdk-8u60-solaris-x64.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-linux-i586.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-solaris-x64.tar.gz
	Package sun-jdk6: missing distfile jdk-6u45-linux-i586.bin
	Package sun-jdk6: missing distfile jdk-6u45-solaris-i586.sh
	Package sun-jdk7: missing distfile jdk-7u72-linux-i586.tar.gz
	Package sun-jdk7: missing distfile jdk-7u72-solaris-i586.tar.gz
	Package sun-jre6: missing distfile jce_policy-6.zip
	Package sun-jre6: missing distfile jre-6u45-linux-x64.bin
	Package sun-jre6: missing distfile jre-6u45-solaris-x64.sh
	Package sun-jre7: missing distfile jre-7u72-linux-i586.tar.gz
	Package sun-jre7: missing distfile jre-7u72-solaris-i586.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 22:50:31 +00:00
ryoon
86e264467c Fix stall during build under NetBSD/i386. Bump PKGREVISION. 2015-10-14 20:17:39 +00:00
ryoon
5b120615a1 Add upstream bug report URL. 2015-09-28 16:37:55 +00:00
sevan
a29050fb45 Unbreak on OS X Tiger
- remove the space between flags and path passed to linker as it's not supported
- force the use of Dwarf2
2015-08-25 12:23:13 +00:00
bsiegert
fae3b812fd Add "tar:build" to TOOLS. From Matthias Ferdinand via mail to pkgsrc-users. 2015-08-22 16:38:10 +00:00
martin
f20f1f2678 Make precompiled headers work on NetBSD hosts 2015-08-06 07:21:29 +00:00
ryoon
86c698e98b Update to 5.2.0
Changelog:
GCC 5.2

   This is the [42]list of problem reports (PRs) from GCC's bug tracking
   system that are known to be fixed in the 5.2 release. This list might
   not be complete (that is, it is possible that some PRs that have been
   fixed are not listed here).

Target Specific Changes

  IA-32/x86-64

     * Support for new AMD instructions monitorx and mwaitx has been
       added. This includes new intrinsic and built-in support. It is
       enabled through option -mmwaitx. The instructions monitorx and
       mwaitx implement the same functionality as the old monitor and
       mwait instructions. In addition mwaitx adds a configurable timer.
       The timer value is received as third argument and stored in
       register %ebx.


    For questions related to the use of GCC, please consult these web
    pages and the [43]GCC manuals. If that fails, the
    [44]gcc-help@gcc.gnu.org mailing list might help. Comments on these
    web pages and the development of GCC are welcome on our developer
    list at [45]gcc@gcc.gnu.org. All of [46]our lists have public
    archives.

   Copyright (C) [47]Free Software Foundation, Inc. Verbatim copying and
   distribution of this entire article is permitted in any medium,
   provided this notice is preserved.

   These pages are [48]maintained by the GCC team. Last modified
   2015-07-16[49].

References

  42. https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=5.2.0
  43. https://gcc.gnu.org/onlinedocs/
  44. mailto:gcc-help@gcc.gnu.org
  45. mailto:gcc@gcc.gnu.org
  46. https://gcc.gnu.org/lists.html
  47. http://www.fsf.org/
  48. https://gcc.gnu.org/about.html
  49. http://validator.w3.org/check/referer
2015-07-25 03:46:02 +00:00
ryoon
520d354235 Import gcc5-5.1.0 as lang/gcc5.
The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C,
Fortran, Java, and Go, as well as libraries for these languages (libstdc++,
libgcj,...). This package provides the snapshot release of version 5.

On NetBSD a working cabsl function must be present in libm to build gfortran.
This has been added to -current on 2014/10/10 and to NetBSD7 on 2014/10/13.
2015-07-16 12:03:36 +00:00