Opened 9 years ago

Last modified 7 years ago

#49227 closed defect

gcc5 @5.2.0: fix gcj — at Version 3

Reported by: howarth.at.macports@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc: jeremyhu@…, ryandesign@…
Port: gcc5

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The attached Portfile.diff, gcj-libiconv-linkage.patch and boehm-gc-darwin15-hack.patch corrects the build of gcj so that it is functional. The changes include...

  1. Pass -with-libiconv-prefix=${prefix} to configure so that the proper libiconv is used (as the Portfile has depends_lib port:libiconv.
  2. Reduce alignment in boehm-gc to 2 with boehm-gc-darwin15-hack.patch in order to suppress breakage from the recompilation of the system libunwind.dylib against Apple Clang 7.0 in darwin15.
  3. Apply gcj-libiconv-linkage.patch to provide the appropriate linkage on libiconv automatically for executables created with gcj.
  4. In order to create ecj1 during the build, ecj-4.9.jar is added to distfiles and copied into the source directory as ecj.jar per upstream's build instructions for gcj.

The functionality of the resulting gcj-mp-5 can be seen by compiling the testme.java source code....

public class testme { 
  public static void main(String args[]){ 
    System.out.println("Hello"); 
  } 
} 

using the command "gcj-mp-5 --main=testme -O testme.java" which will produce a functional a.out executable.

Change History (5)

Changed 9 years ago by howarth.at.macports@…

patch to eliminate boehm-gc testsuite regressions against darwin15's system unwinder

Changed 9 years ago by howarth.at.macports@…

Attachment: gcj-libiconv-linkage.patch added

patch to provide missing linkage for libiconv on the gcj spec file

comment:1 Changed 9 years ago by howarth.at.macports@…

Note that I have also updated #48528 to show that the proposed gcc5 update can be used to fix the build of the pdftk package.

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

We should also blacklist gcc49 and earlier on El Cap while we're at it.

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Keywords: haspatch added
Owner: changed from macports-tickets@… to mww@…
Summary: fix gcj in gcc5gcc5 @5.2.0: fix gcj
Note: See TracTickets for help on using tickets.