[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:54:14 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:
 Keywords:             |       Port:  cctools
-----------------------+---------------------
 misc/strings.c contains:

 {{{
         if(ofile->object_addr == NULL || ofile->member_type ==
 OFILE_LLVM_BITCODE){
 }}}

 In include/stuff/ofile.c stands:

 {{{
 enum ofile_type {
     OFILE_UNKNOWN,
     OFILE_FAT,
     OFILE_ARCHIVE,
     OFILE_Mach_O
 #ifdef LTO_SUPPORT
     ,
     OFILE_LLVM_BITCODE
 #endif /* LTO_SUPPORT */
 };
 }}}

 which is pre-processed to:

 {{{
 enum ofile_type {
     OFILE_UNKNOWN,
     OFILE_FAT,
     OFILE_ARCHIVE,
     OFILE_Mach_O




 };
 }}}

 so that GCC has to state:

 {{{
 :info:build /opt/local/bin/gcc-apple-4.2 -Os -std=gnu99 -Os
 -DTRIE_SUPPORT -g -Wall -I. -I./../include -I. -I/opt/local/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-895/../ld64-274.1/src/abstraction
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-895/../ld64-274.1/src/other
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-895/include
 -I/opt/local/include -arch ppc  -c -o ./strings.o strings.c
 :info:build In file included from ./../include/stuff/bytesex.h:53,
 :info:build                  from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/mach/arm/thread_status.h:29:1: warning:
 "THREAD_STATE_NONE" redefined
 :info:build In file included from ./../include/stuff/bytesex.h:50,
 :info:build                  from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/mach/i386/thread_status.h:112:1: warning: this is
 the location of the previous definition
 :info:build In file included from ./../include/stuff/bytesex.h:53,
 :info:build                  from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/mach/arm/thread_status.h:50:1: warning:
 "VALID_THREAD_STATE_FLAVOR" redefined
 :info:build In file included from ./../include/stuff/bytesex.h:50,
 :info:build                  from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/mach/i386/thread_status.h:130:1: warning: this is
 the location of the previous definition
 :info:build In file included from ./../include/stuff/bytesex.h:53,
 :info:build                  from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/mach/arm/thread_status.h:105:1: warning:
 "MACHINE_THREAD_STATE" redefined
 :info:build In file included from ./../include/stuff/bytesex.h:50,
 :info:build                  from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/mach/i386/thread_status.h:286:1: warning: this is
 the location of the previous definition
 :info:build In file included from ./../include/stuff/bytesex.h:53,
 :info:build                  from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/mach/arm/thread_status.h:106:1: warning:
 "MACHINE_THREAD_STATE_COUNT" redefined
 :info:build In file included from ./../include/stuff/bytesex.h:50,
 :info:build                  from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/mach/i386/thread_status.h:287:1: warning: this is
 the location of the previous definition
 :info:build In file included from ./../include/stuff/ofile.h:39,
 :info:build                  from strings.c:80:
 :info:build ./../include/stuff/bytesex.h:244: warning: 'struct
 __darwin_i386_float_state' declared inside parameter list
 :info:build ./../include/stuff/bytesex.h:244: warning: its scope is only
 this definition or declaration, which is probably not what you want
 :info:build strings.c: In function 'ofile_processor':
 :info:build strings.c:338: error: 'OFILE_LLVM_BITCODE' undeclared (first
 use in this function)
 :info:build strings.c:338: error: (Each undeclared identifier is reported
 only once
 :info:build strings.c:338: error: for each function it appears in.)
 :info:build make[1]: *** [strings.o] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-895/misc'
 }}}

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


More information about the macports-tickets mailing list