Bug 229662 - devel/mingw32-gcc doesn't build with clang-6.
Summary: devel/mingw32-gcc doesn't build with clang-6.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Stephen Montgomery-Smith
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-10 05:07 UTC by Stephen Montgomery-Smith
Modified: 2018-07-10 21:14 UTC (History)
1 user (show)

See Also:
cyberbotx: maintainer-feedback+


Attachments
Patch to fix build errors (63.50 KB, patch)
2018-07-10 05:07 UTC, Stephen Montgomery-Smith
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Montgomery-Smith freebsd_committer freebsd_triage 2018-07-10 05:07:58 UTC
Created attachment 195020 [details]
Patch to fix build errors

Trying to compile devel/mingw32-gcc with clang-6 produces many errors of the form

.././..//gcc-4.8.1/gcc/config/i386/mingw32.h:140:5: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
   "SHARED_LIBGCC_SPEC" \

The attached patch fixes all these errors.
Comment 1 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2018-07-10 07:25:29 UTC
Actually, the patches:
files/patch-gcc_config_alpha_alpha.c files/patch-gcc_hwint.h
shouldn't be included, as they have spurious spaces in them.  Although it doesn't matter if they are included, because they are merely reporting of compile time errors.
Comment 2 Naram Qashat 2018-07-10 12:33:33 UTC
Patches are acceptable to me.
Comment 3 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2018-07-10 20:58:10 UTC
I'll take it.
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-07-10 21:14:08 UTC
A commit references this bug:

Author: stephen
Date: Tue Jul 10 21:13:55 UTC 2018
New revision: 474414
URL: https://svnweb.freebsd.org/changeset/ports/474414

Log:
  - Patches so that it builds with clang-6.

  PR:		ports/229662
  Submitted by:	stephen@FreeBSD.org

Changes:
  head/devel/mingw32-gcc/files/patch-gcc_bitmap.c
  head/devel/mingw32-gcc/files/patch-gcc_cgraph.c
  head/devel/mingw32-gcc/files/patch-gcc_combine.c
  head/devel/mingw32-gcc/files/patch-gcc_config_alpha_vms.h
  head/devel/mingw32-gcc/files/patch-gcc_config_darwin.c
  head/devel/mingw32-gcc/files/patch-gcc_config_darwin.h
  head/devel/mingw32-gcc/files/patch-gcc_config_darwin9.h
  head/devel/mingw32-gcc/files/patch-gcc_config_elfos.h
  head/devel/mingw32-gcc/files/patch-gcc_config_i386_bsd.h
  head/devel/mingw32-gcc/files/patch-gcc_config_i386_mingw32.h
  head/devel/mingw32-gcc/files/patch-gcc_config_ia64_ia64.c
  head/devel/mingw32-gcc/files/patch-gcc_config_lm32_lm32.h
  head/devel/mingw32-gcc/files/patch-gcc_config_microblaze_microblaze.h
  head/devel/mingw32-gcc/files/patch-gcc_config_mips_mips.h
  head/devel/mingw32-gcc/files/patch-gcc_config_pa_pa.c
  head/devel/mingw32-gcc/files/patch-gcc_config_pa_pa.h
  head/devel/mingw32-gcc/files/patch-gcc_config_picochip_picochip.c
  head/devel/mingw32-gcc/files/patch-gcc_config_picochip_picochip.h
  head/devel/mingw32-gcc/files/patch-gcc_config_rs6000_rs6000.c
  head/devel/mingw32-gcc/files/patch-gcc_config_rs6000_sysv4.h
  head/devel/mingw32-gcc/files/patch-gcc_config_rs6000_xcoff.h
  head/devel/mingw32-gcc/files/patch-gcc_config_rx_rx.h
  head/devel/mingw32-gcc/files/patch-gcc_config_s390_s390.h
  head/devel/mingw32-gcc/files/patch-gcc_config_score_score.h
  head/devel/mingw32-gcc/files/patch-gcc_config_sol2.h
  head/devel/mingw32-gcc/files/patch-gcc_config_sparc_sparc.h
  head/devel/mingw32-gcc/files/patch-gcc_cppbuiltin.c
  head/devel/mingw32-gcc/files/patch-gcc_defaults.h
  head/devel/mingw32-gcc/files/patch-gcc_dwarf2cfi.c
  head/devel/mingw32-gcc/files/patch-gcc_dwarf2out.c
  head/devel/mingw32-gcc/files/patch-gcc_gcc.c
  head/devel/mingw32-gcc/files/patch-gcc_gengenrtl.c
  head/devel/mingw32-gcc/files/patch-gcc_genmodes.c
  head/devel/mingw32-gcc/files/patch-gcc_ipa-inline.c
  head/devel/mingw32-gcc/files/patch-gcc_ipa-prop.c
  head/devel/mingw32-gcc/files/patch-gcc_loop-iv.c
  head/devel/mingw32-gcc/files/patch-gcc_profile.c
  head/devel/mingw32-gcc/files/patch-gcc_stor-layout.c
  head/devel/mingw32-gcc/files/patch-gcc_toplev.c
  head/devel/mingw32-gcc/files/patch-gcc_tree-ssa-alias.c
  head/devel/mingw32-gcc/files/patch-gcc_tree-ssa-reassoc.c
  head/devel/mingw32-gcc/files/patch-gcc_tree-ssa-structalias.c
  head/devel/mingw32-gcc/files/patch-gcc_value-prof.c
Comment 5 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2018-07-10 21:14:40 UTC
Committed.