520 Commits

Author SHA1 Message Date
landry
d1a16a728e New adastrap for powerpc to go over the realpath bump, unbreaks 5k+
ports requiring gcc8 for c++.
2019-08-01 08:49:04 +00:00
sthen
2efb30d240 regen i386 ada bootstrap, I think I had messed up patching previously because
it was still not working on a new-realpath system.
2019-07-30 22:17:59 +00:00
naddy
106ab15aa0 Fix the Ada build now that realpath(3) conforms to POSIX and returns
an error if the last component of the path does not exist.

This is a bug in libgnat.  The System.File_IO.Open function calls
full_name -> __gnat_full_name -> realpath on files that have not
yet been created.  The Linux realpath was considered lacking, so a
different approach is used there.  We now remove OpenBSD from the
#ifdef of operating systems supporting realpath and follow the Linux
code path.

New Ada bootstraps are required.

ok sthen@ pascal@
2019-07-23 21:17:47 +00:00
sthen
485792605b replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 21:02:12 +00:00
sthen
a1e533281d sync WANTLIB 2019-06-13 17:00:47 +00:00
pascal
2b209d94f9 Adjust gcc specs to not pass -dynamic-linker to ld if -shared is given on
the command line.  This resulted in shared libraries with an .interp section,
confusing plist generation tools.

Discussed with espie@, guenther@ and kettenis@; initial patch from espie@.

ok espie@
2019-05-20 14:59:05 +00:00
sthen
42dc443195 Use ld.bfd to link math/py-scipy and telephony/asterisk on i386, like gcc/8
itself they fail with "has non-ABS relocation R_386_GOTOFF against symbol XXX"
with LLD.

Mention these ports in the comment in lang/gcc/8/Makefile.
2019-05-01 12:12:24 +00:00
sthen
2c27dd61de remove the znotext suggestion from the i386 comment, same issue with
"ld: error: XX: has non-ABS relocation R_386_GOTOFF against symbol 'XX'"
is seen on other ports (telephony/asterisk, math/py-scipy) when built
with gcc 8 and znotext does not help there, so is unlikely to help here
either.
2019-05-01 11:53:03 +00:00
sthen
a2d7c33b2a use ld.bfd to link gcc/8 on i386 to unbreak; I haven't figured out how to
pass notext across yet and having this broken knocks out getting on for
a quarter of the ports tree on i386 (mostly via fortran).
2019-04-30 13:15:33 +00:00
naddy
fd7bddaad3 stop special handling of MODGCC4_LANGS=java; it's gone from the tree 2019-04-29 15:27:01 +00:00
naddy
b7e8ac93a7 Switch ports-gcc to GCC 8.3.0:
* switch gcc4 module to gcc/8
* register the gcc/8 subpackages as updates for their gcc/4.9 counterparts
* sync the gcc version in devel/llvm
* add a quirk entry that gcj is obsolete
* unhook 4.9 from the build

Preparatory work by many.
ok sthen@
2019-04-27 21:26:34 +00:00
naddy
e26af033ba Remove GCC 6. Never connected to the build, now obsoleted by GCC 8.
ok pascal@
2019-04-25 15:25:15 +00:00
naddy
c7ccad6525 take ownership of a directory that had accidentally been omitted; ok sthen@ 2019-04-22 20:50:34 +00:00
naddy
305d688b62 fix warning and future error about unescaped left brace in perl regex 2019-04-16 15:35:30 +00:00
pascal
d5c575b948 Update to GCC 8.3.0, and regenerate bootstrap on amd64, hppa and powerpc.
Also tested on armv7, arm64 and sparc64.

Earlier diff from Brad.
2019-03-25 20:17:46 +00:00
jca
c5859b7f0c Our stddef.h provides max_align_t, let cstddef provide std::max_align_t
This unbreaks www/webkitgtk4 on sparc64.  ok pascal@ (maintainer)
2019-03-24 16:47:48 +00:00
naddy
b1eb1d48fd bump for plist changes 6.4 -> 6.5 2019-02-28 01:52:37 +00:00
otto
74e6bb8161 Apply stackghost stack unwinding fix for sparc64 here as well; ok jca@ 2019-02-12 18:37:17 +00:00
phessler
30ba489a94 instead of erroring out, mark BROKEN for languages that are known to
a different gcc4 module version but not this one.

OK sthen@
2019-02-08 11:16:25 +00:00
sthen
afeaf12d3b mark BROKEN-i386: non-ABS relocation R_386_GOTOFF against symbol .LC60 2019-02-06 23:09:53 +00:00
otto
750fe2e79e Fix stack unwinding for sparc64; makes C++ exceptions work; ok kettenis@ sthen@ 2019-02-06 06:48:02 +00:00
pascal
823d8d28c3 Hook up gcc 8.
ok sthen@ phessler@
2019-02-02 18:44:03 +00:00
pascal
3181717f80 Fix TEST_DEPENDS on arm and arm64. From Brad. 2019-01-13 11:59:18 +00:00
pascal
7df1e069cd Properly set RUN_DEPENDS{,-main} for the case where devel/gas is needed.
found by phessler@
2019-01-06 14:36:47 +00:00
pascal
fa22bb31f4 Update powerpc bootstrap and plist. 2019-01-05 22:08:11 +00:00
pascal
a2a036b0ec Provide MODGCC4_FORTRAN* variables.
ok jca@
2019-01-04 17:29:53 +00:00
pascal
8564459c11 Import GCC 8.2.0. ok espie@ 2019-01-04 15:50:38 +00:00
pascal
10d3d0b9d1 Update mips64 bootstrap. 2018-12-29 10:11:20 +00:00
pascal
93a8385d3f * merge kprintf format update from gcc 4.9
* fix ABI break in libestdc++ introduced in GCC 6.5.0

From Brad.
2018-12-27 15:49:44 +00:00
pascal
bb1e666987 Update to GCC 6.5.0. Earlier diffs from Brad.
mips64 bootstrap update still pending.
2018-12-26 17:09:59 +00:00
pascal
9dbe16a422 Update sparc64 adastrap. 2018-12-24 09:17:36 +00:00
pascal
00880ed6f9 Update hppa bootstrap. 2018-12-21 11:44:09 +00:00
pascal
3177854e5e Update powerpc bootstrap. 2018-12-19 21:10:52 +00:00
pascal
802dba2d2d Update i386 adastrap. 2018-12-19 10:59:41 +00:00
pascal
866fb156a7 Update mips64 bootstrap, from visa@. 2018-12-17 14:09:30 +00:00
pascal
1043d57b0e Update mips64 bootstrap, from visa@. 2018-12-17 14:05:21 +00:00
pascal
30947b05d9 Update amd64 bootstrap, remove USE_LLD=No. 2018-12-14 19:23:53 +00:00
bcallah
52c60e8079 Include header files that are tightly coupled to the compiler: stdatomic.h,
stdfix.h, stdalign.h, and stdnoreturn.h
Ensure these headers are usable on all archs by ensuring that
openbsd-stdint.h is used on all archs.
While here, explicitly add the --disable-libssp flag to configure,
otherwise it will get built and installed.
Sync the PLISTs for these changes.

Prompted and much help and diagnosis on macppc by George Koehler.
Feedback from sthen@ and pascal@

ok pascal@
2018-12-14 17:58:03 +00:00
naddy
ef895ef2da align with the base compilers: don't search /usr/local/include by default
from Brad
2018-12-07 18:27:35 +00:00
sthen
0e09f9a6fc gcc tweaks from Brad:
"- Merge in fix from base for the Alpha backend to fix and enable the stack
  protector support (which is also required to allow the later stages of
  the build to build)
- Merge in fix from base for the Alpha backend to fix an optimization issue
- Remove -O1 workaround which does not seem to be necessary
- Small Makefile tweaks; use GCC49_ARCHS for ONLY_FOR_ARCHS and remove sparc

Alpha tested by Miod"

"OK if you want to commit this, Stuart" pascal@
2018-11-26 22:21:31 +00:00
daniel
04ff52ed1a Sync kprintf implementation with base gcc; ok pascal@ (MAINTAINER). 2018-11-25 18:44:20 +00:00
landry
9001bf8401 Add a patch replacing __builtin_sprintf calls by __builtin_snprintf in
debug code.

Fixes the dreaded 'sprintf() is often misused, please use snprintf()'
warning from ld.bfd on libestdc++.so.18.0 when linking any c++ code.

As a side effect, this fixes cmake configure which errored out on this
warning. cmake now plans to ignore the warning per
https://gitlab.kitware.com/cmake/cmake/issues/18602 but fixing the
warning might help other things.

Note that gcc 6 is still not linked to the build, but progress is made
towards this goal. patch successfully tested on macppc & sparc64, where
cmake built & packaged.

original patch from George Koehler (thanks!) replacing the calls by
snprintf, changes to __builtin suggested by espie@.
2018-11-22 18:05:22 +00:00
sthen
9d9b1724c8 Regenerate i386 adastrap, requested by naddy:
"The current one fails with lld:

configure:4293: /usr/obj/gcc-4.9.4/bin/egcc -O2 -g   conftest.c  >&5 /usr/bin/ld: error: unable to find library -lc

This was fixed in rev 1.3 of patch-gcc_config_i386_openbsdelf_h by
adding -L/usr/lib to LINK_SPEC, but the existing adastrap predates
that change."
2018-11-20 15:43:37 +00:00
sthen
b71aaadaa7 Fix building the Alpha backend, from brad, tested by miod, ok pascal 2018-11-13 11:49:33 +00:00
sthen
a4053da061 sync changes from gcc/4.9; from Brad, ok pascal@ 2018-11-05 11:52:55 +00:00
naddy
53302a19c9 Re-add the gmpxx C++ library. productivity/libalkimia requires the
C++ templates, though not libgmpxx.

Split off the C++ support into a separate cxx subpackage.  Add a
no_cxx bootstrap flavor and use it for the dependency chain up to
lang/gcc/4.9 in order to allow bootstrapping a C++ compiler from
ports.

Based on work by sthen@, tweaks by espie@.
2018-11-02 18:43:56 +00:00
sthen
c9cf3bdddd Sync up the various commits that went into 4.9 into 6
- ARM PIE default setting
- ARM/X86 linker path fix for lld
- Copy over Alpha bits

From Brad, maintainer timeout
2018-11-01 22:09:30 +00:00
sthen
9f6ba2f04c remove gcc/4.6, it was ONLY_FOR_ARCHS=alpha but that has now moved to 4.9.
from Brad, ok ajacoutot@ pascal@
2018-10-19 09:19:40 +00:00
espie
83d6481021 unbreak the tree
daniel@ is relatively new, but phessler@ and pascal@ are not.
you guys should know better
2018-09-26 17:46:51 +00:00
daniel
8a3ed0995d On alpha, build with -O1 instead of -O2 to avoid segfaults at build-time.
Tested on an AlphaServer DS10 617 MHz.

ok phessler@, pascal@ (MAINTAINER).
2018-09-25 20:59:14 +00:00