[MacPorts] #53140: cctools @895_3 do not build on PPC Tiger, Mac OS X 10.4.11, because OFILE_LLVM_BITCODE macro is used in misc/strings.c

MacPorts noreply at macports.org
Fri Dec 23 09:57:02 CET 2016


#53140: cctools @895_3 do not build on PPC Tiger, Mac OS X 10.4.11, because
OFILE_LLVM_BITCODE macro is used in misc/strings.c
------------------------+-----------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  cctools    |
------------------------+-----------------

Comment (by ballapete):

 The following patch fixes the problem:

 {{{
 +++ misc/strings.c      2016-12-23 10:35:34.000000000 +0100
 @@ -335,8 +335,13 @@
          * If the ofile is not an object file then process it without
 reguard
          * to sections.
          */
 -       if(ofile->object_addr == NULL || ofile->member_type ==
 OFILE_LLVM_BITCODE){
 -           if(ofile->file_type == OFILE_FAT && ofile->arch_flag.cputype
 != 0){
 +       if(ofile->object_addr == NULL
 +#ifdef LTO_SUPPORT
 +          || ofile->member_type == OFILE_LLVM_BITCODE){
 +#else
 +         ){
 +#endif /* LTO_SUPPORT */
 +         if(ofile->file_type == OFILE_FAT && ofile->arch_flag.cputype !=
 0){
                 if(ofile->fat_header->magic == FAT_MAGIC_64){
                     addr = ofile->file_addr +
                            ofile->fat_archs64[ofile->narch].offset;
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53140#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list