Opened 9 years ago

Closed 9 years ago

#46629 closed defect (fixed)

On PPC Tiger, Mac OS X 10.4.11, build of llvm-3.4 failed because of recipe for target

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: larryv (Lawrence Velázquez)
Port: llvm-3.4

Description

After days:

  ARCHIVE:   clang_darwin_embedded/soft_static/armv6m: /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/libcompiler_rt.a
rm -f /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/libcompiler_rt.a
/opt/local/bin/ar cru 2> /dev/null /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/SubDir.lib/int_util.o
Makefile:267: recipe for target '/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/libcompiler_rt.a' failed
gmake[4]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/libcompiler_rt.a] Error 1
gmake[4]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/projects/compiler-rt'
Makefile:162: recipe for target 'BuildRuntimeLibraries' failed
gmake[3]: *** [BuildRuntimeLibraries] Error 2
gmake[3]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt'
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/Makefile.rules:911: recipe for target 'compiler-rt/.makeall' failed
gmake[2]: *** [compiler-rt/.makeall] Error 2
gmake[2]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime'
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/Makefile.rules:862: recipe for target 'all' failed
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang'
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/Makefile.rules:862: recipe for target 'all' failed
gmake: *** [all] Error 1
gmake: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src" && /opt/local/bin/gmake -w clang-only 
Exit code: 2
Error: org.macports.build for port clang-3.4 returned: command execution failed

Attachments (4)

main.log (5.3 MB) - added by ballapete (Peter "Pete" Dyballa) 9 years ago.
main.log
main.2.log (109.3 KB) - added by ballapete (Peter "Pete" Dyballa) 9 years ago.
main.log for 862
main.3.log (576.2 KB) - added by ballapete (Peter "Pete" Dyballa) 9 years ago.
new main.log for new 862
main.4.log (108.3 KB) - added by ballapete (Peter "Pete" Dyballa) 9 years ago.
main.log for 862 on 2015-02-12T19-38-00

Change History (38)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Cc: larryv@… added; jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…

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

Yesterday, Ryan emailed me: "llvm-3.4 just finished building on the PowerBook G4 with Tiger. Thanks!"

Not sure what is different between your two setups, but can you figure out the output of this command:

/opt/local/bin/ar cru /tmp/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/SubDir.lib/int_util.o

I should just update the Makefile to not do the 2> /dev/null as we've been bitten by that so much already.

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

Also, what version of cctools do you have installed?

comment:4 in reply to:  2 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Not sure what is different between your two setups, but can you figure out the output of this command:

/opt/local/bin/ar cru /tmp/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/SubDir.lib/int_util.o
/opt/local/bin/ar cru /tmp/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/SubDir.lib/int_util.o
/opt/local/bin/ranlib: object: /tmp/libcompiler_rt.a(int_util.o) malformed object (unknown load command 1)
/opt/local/bin/ar: internal ranlib command failed

One cause might be this:

  apple-gcc42 @5666.3_14
  apple-gcc42 @5666.3_14+gpl3 (active)

Someone suggested to update GCC 4.2 to build some other software with it. For a new try I can switch to (activate) the "original" version.

comment:5 in reply to:  3 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Also, what version of cctools do you have installed?

cctools @806_4 (active)

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

What is the output of:

/opt/local/bin/otool -l /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/SubDir.lib/int_util.o

If that produces an error, can you please just attach the file?

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

Also, please attach your full build log.

comment:8 in reply to:  6 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

What is the output of:

/opt/local/bin/otool -l /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/SubDir.lib/int_util.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/llvm-3.4.2.src/tools/clang/runtime/compiler-rt/clang_darwin_embedded/soft_static/armv6m/SubDir.lib/int_util.o:
Load command 0
      cmd LC_SEGMENT
  cmdsize 260
  segname 
   vmaddr 0x00000000
   vmsize 0x00000029
  fileoff 408
 filesize 41
  maxprot 0x00000007
 initprot 0x00000007
   nsects 3
    flags 0x0
Section
  sectname __text
   segname __TEXT
      addr 0x00000000
      size 0x00000000
    offset 408
     align 2^0 (1)
    reloff 0
    nreloc 0
     flags 0x80000000
 reserved1 0
 reserved2 0
Section
  sectname __textcoal_nt
   segname __TEXT
      addr 0x00000000
      size 0x00000014
    offset 408
     align 2^2 (4)
    reloff 452
    nreloc 2
     flags 0x8000040b
 reserved1 0
 reserved2 0
Section
  sectname __cstring
   segname __TEXT
      addr 0x00000014
      size 0x00000015
    offset 428
     align 2^0 (1)
    reloff 0
    nreloc 0
     flags 0x00000002
 reserved1 0
 reserved2 0
Load command 1
      cmd ?(0x00000029) Unknown load command
  cmdsize 16
000001d4 00000008 
Load command 2
     cmd LC_SYMTAB
 cmdsize 24
  symoff 476
   nsyms 2
  stroff 500
 strsize 40
Load command 3
            cmd LC_DYSYMTAB
        cmdsize 80
      ilocalsym 0
      nlocalsym 0
     iextdefsym 0
     nextdefsym 1
      iundefsym 1
      nundefsym 1
         tocoff 0
           ntoc 0
      modtaboff 0
        nmodtab 0
   extrefsymoff 0
    nextrefsyms 0
 indirectsymoff 0
  nindirectsyms 0
      extreloff 0
        nextrel 0
      locreloff 0
        nlocrel 0

No output file obviously.

comment:9 in reply to:  7 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Also, please attach your full build log.

Hmm, I thought I had done so…

Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

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

0x29 is LC_DATA_IN_CODE

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

Are you able to install the libmacho port successfully on Tiger/ppc?

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

And can you try updating cctools to version 862? You'll need to manually edit the Portfile to have it not fallback to the older version on Tiger. I'm not sure why Tiger is using the older version.

comment:13 in reply to:  12 Changed 9 years ago by larryv (Lawrence Velázquez)

Should it not be? The current portfile explicitly pulls in v806 for Darwin 8.

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

Yes, I am aware that the current profile explicitly pulls in v806. I'm just not sure why *that* is the case. I have no recollection of why I left Tiger on that old version.

comment:15 in reply to:  11 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Are you able to install the libmacho port successfully on Tiger/ppc?

Yes, it succeeded!

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

What about cctools-862?

comment:17 in reply to:  16 ; Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

What about cctools-862?

You just deleted my answer…

Shortly: after patching to Portfile to:

     44     checksums           ld64-236.3.tar.gz \
     45                         rmd160  6a3f44aa9ae57a60d2cff5b3d47be7972ad83029 \
     46                         sha256  8ef36729b643201081ab45ebd8586ede8f9968bc17614b679a940faa82875ca6 \
     47                         cctools-862.tar.gz \
     48                         rmd160  21ca74a5f9d04c37c2310f107e21a0f3713360dd \
     49                         sha256  1bf29f620b91c901ad3116b47738ab5076c1aed75d13869cd3bc7f067b4aaadb

and

     51     patchfiles-delete   cctools-829-lto.patch PR-37520.patch cctools-839-static-dis_info.patch cctools-806-lto.patch PR-9087924.patch PR-        9830754.patch cctools-822-no-lto.patch PR-11136237.patch PR-12475288.patch cctools-806-prunetrie.patch cctools-862-prunetrie.patch
     52     patchfiles-append

compilation started, but failed prematurely;see the attached log file!

Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.2.log added

main.log for 862

comment:18 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

I'm now off for a meeting at university. Maybe I'll be back 'round midnight.

comment:19 in reply to:  17 ; Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Replying to Peter_Dyballa@…:

Replying to jeremyhu@…:

What about cctools-862?

You just deleted my answer…

No... I have no way of deleting answers...

The error is at:

:info:build ../../include/mach/arm/_structs.h:180:2: error: #error Unknown architecture.

comment:20 in reply to:  19 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

No... I have no way of deleting answers...

This trac system is able to do so. While I was writing my response you sent another comment and so I was afterwards working on something completely useless for trac that could not be saved but sent – into /dev/null or a similiar device. No warning, except a banner after I had sent (and deleted) my answer.

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

Yeah, trac sucks like that, but you should be able to copy your comment in the text fiend, reload the page, and then paste it in.

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

I've addressed the reported build issue with cctools-862 on Tiger in r132154.

Peter, please try building cctools-862 on Tiger. If it works now, I'll remove the fallback. You can do that by just making this change:

--- Portfile	(revision 132154)
+++ Portfile	(working copy)
@@ -36,7 +36,7 @@
 
 variant universal {}
 
-if {${os.major} < 9} {
+if {0} {
     # XCode 4.1
     version             806
     revision            4

comment:23 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

A new failure happens:

/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-862/../ld64-236.3/src/other -I/opt/local/include -arch ppc  -c -o ./libtool.o libtool.c
In file included from ./../include/stuff/bytesex.h:53,
                 from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/mach/arm/thread_status.h:29:1: warning: "THREAD_STATE_NONE" redefined
In file included from ./../include/stuff/bytesex.h:50,
                 from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/mach/i386/thread_status.h:112:1: warning: this is the location of the previous definition
In file included from ./../include/stuff/bytesex.h:53,
                 from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/mach/arm/thread_status.h:50:1: warning: "VALID_THREAD_STATE_FLAVOR" redefined
In file included from ./../include/stuff/bytesex.h:50,
                 from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/mach/i386/thread_status.h:130:1: warning: this is the location of the previous definition
In file included from ./../include/stuff/bytesex.h:53,
                 from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/mach/arm/thread_status.h:105:1: warning: "MACHINE_THREAD_STATE" redefined
In file included from ./../include/stuff/bytesex.h:50,
                 from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/mach/i386/thread_status.h:286:1: warning: this is the location of the previous definition
In file included from ./../include/stuff/bytesex.h:53,
                 from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/mach/arm/thread_status.h:106:1: warning: "MACHINE_THREAD_STATE_COUNT" redefined
In file included from ./../include/stuff/bytesex.h:50,
                 from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/mach/i386/thread_status.h:287:1: warning: this is the location of the previous definition
In file included from ./../include/stuff/ofile.h:39,
                 from libtool.c:44:
./../include/stuff/bytesex.h:238: warning: 'struct __darwin_i386_float_state' declared inside parameter list
./../include/stuff/bytesex.h:238: warning: its scope is only this definition or declaration, which is probably not what you want
libtool.c: In function 'process':
libtool.c:1378: error: 'OFILE_LLVM_BITCODE' undeclared (first use in this function)
libtool.c:1378: error: (Each undeclared identifier is reported only once
libtool.c:1378: error: for each function it appears in.)
make[1]: *** [libtool.o] Error 1
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-862/misc'

Quite a lot "MACRO" redefined warnings are issued.

Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.3.log added

new main.log for new 862

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

r132862 should address that issue with cctools. Peter, please try building cctools-862 again with that change.

comment:25 in reply to:  24 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

r132862 should address that issue with cctools. Peter, please try building cctools-862 again with that change.

There is something about port: it think it knows better what to do! Whenever I want to install llvm-3.4 it first performs other things and then finishes in failing to build kerberos5, see https://trac.macports.org/ticket/46701.

comment:26 in reply to:  24 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

r132862 should address that issue with cctools. Peter, please try building cctools-862 again with that change.

After, possibly, solving the issue with kerberos5 now netpbm stops port from doing its job: https://trac.macports.org/ticket/46603.

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

Well, neither of those are dependencies of cctools. Were you able to build cctools-862 on Tiger?

comment:28 in reply to:  27 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Well, neither of those are dependencies of cctools. Were you able to build cctools-862 on Tiger?

Not yet…

I have these manually edited lines in Portfile:

     33 depends_build           port:libunwind-headers
     34 
     35 patchfiles              cctools-862-no-lto.patch
     36 
     37 variant universal {}
     38 
     39 if {${os.major} < 9} {
     40     # XCode 4.1
     41     version             862
     42     revision            4
     43     distfiles           ld64-${ld64_version}.tar.gz ${name}-${version}.tar.gz
     44     checksums           ld64-236.3.tar.gz \
     45                         rmd160  6a3f44aa9ae57a60d2cff5b3d47be7972ad83029 \
     46                         sha256  8ef36729b643201081ab45ebd8586ede8f9968bc17614b679a940faa82875ca6 \
     47                         cctools-862.tar.gz \
     48                         rmd160  21ca74a5f9d04c37c2310f107e21a0f3713360dd \
     49                         sha256  1bf29f620b91c901ad3116b47738ab5076c1aed75d13869cd3bc7f067b4aaadb
     50 
     51     patchfiles-delete   cctools-829-lto.patch PR-37520.patch cctools-839-static-dis_info.patch cctools-862-prunetri        e.patch cctools-862-unifdef__DARWIN_UNIX03-arm.patch cctools-862-no-lto.patch
     52     patchfiles-append
     53 } else {
     54     if {${os.major} < 11} {
     55         patchfiles-append snowleopard-strnlen.patch
     56     }
     57 }

which lead to an early build failure:

=========== /usr/bin/make all for libstuff =============
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/libstuff'
/bin/mkdir -p static_obj
/bin/mkdir -p dynamic_obj
/bin/mkdir -p profile_obj
/bin/mkdir -p shlib_obj
/bin/mkdir -p static_kld_obj
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/libstuff/dynamic_obj'
/opt/local/bin/gcc-apple-4.2 -Os -std=gnu99 -Os  -g -I../../include -Wall -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -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-862/../ld64-236.3/src/other -arch ppc   -c -o ./allocate.o ../allocate.c
/opt/local/bin/gcc-apple-4.2 -Os -std=gnu99 -Os  -g -I../../include -Wall -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -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-862/../ld64-236.3/src/other -arch ppc   -c -o ./errors.o ../errors.c
/opt/local/bin/gcc-apple-4.2 -Os -std=gnu99 -Os  -g -I../../include -Wall -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -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-862/../ld64-236.3/src/other -arch ppc   -c -o ./arch.o ../arch.c
In file included from ../../include/mach/arm/thread_status.h:12,
                 from ../../include/stuff/bytesex.h:53,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/arm/_structs.h:180:2: error: #error Unknown architecture.
In file included from ../../include/stuff/bytesex.h:53,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/arm/thread_status.h:29:1: warning: "THREAD_STATE_NONE" redefined
In file included from ../../include/stuff/bytesex.h:50,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/i386/thread_status.h:112:1: warning: this is the location of the previous definition
In file included from ../../include/stuff/bytesex.h:53,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/arm/thread_status.h:50:1: warning: "VALID_THREAD_STATE_FLAVOR" redefined
In file included from ../../include/stuff/bytesex.h:50,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/i386/thread_status.h:130:1: warning: this is the location of the previous definition
In file included from ../../include/stuff/bytesex.h:53,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/arm/thread_status.h:105:1: warning: "MACHINE_THREAD_STATE" redefined
In file included from ../../include/stuff/bytesex.h:50,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/i386/thread_status.h:286:1: warning: this is the location of the previous definition
In file included from ../../include/stuff/bytesex.h:53,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/arm/thread_status.h:106:1: warning: "MACHINE_THREAD_STATE_COUNT" redefined
In file included from ../../include/stuff/bytesex.h:50,
                 from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/mach/i386/thread_status.h:287:1: warning: this is the location of the previous definition
In file included from ../../include/stuff/arch.h:34,
                 from ../arch.c:30:
../../include/stuff/bytesex.h:238: warning: 'struct __darwin_i386_float_state' declared inside parameter list
../../include/stuff/bytesex.h:238: warning: its scope is only this definition or declaration, which is probably not what you want
make[2]: *** [arch.o] Error 1
make[2]: 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-862/libstuff/dynamic_obj'
make[1]: *** [dynamic] Error 2
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-862/libstuff'
make: *** [all] Error 1
make: 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-862'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862" && /usr/bin/make -w all RC_OS="macos" RC_ProjectSourceVersion=862 USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC="/opt/local/bin/gcc-apple-4.2 -Os -std=gnu99" CXX="/opt/local/bin/g++-apple-4.2 -Os -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/abstraction" CXXLIB="" TRIE=-DTRIE_SUPPORT RC_ARCHS="ppc" SDK="-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-862/../ld64-236.3/src/other" LTO= RC_CFLAGS="-arch ppc" 
Exit code: 2

Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.4.log added

main.log for 862 on 2015-02-12T19-38-00

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

Yeah, that is the same failure you mentioned much earlier in this thread. It should be addressed by cctools-862-unifdef__DARWIN_UNIX03-arm.patch

Your line 51 seems wrong. You've added whitespace in the middle of a filename.

If you want to show me your manual edits, do it as a diff rather than copy/pasting.

As I said already, the only manual change you need to make is:

--- Portfile	(revision 132154)
+++ Portfile	(working copy)
@@ -36,7 +36,7 @@
 
 variant universal {}
 
-if {${os.major} < 9} {
+if {0} {
     # XCode 4.1
     version             806
     revision            4

comment:30 in reply to:  29 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

As I said already, the only manual change you need to make is:

With this patch cctools 862 finally built!

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

Then can you use that cctools to build llvm-3.4 now?

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

BTW, r132915 will bring the newer cctools to the Tiger masses.

comment:33 in reply to:  31 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Then can you use that cctools to build llvm-3.4 now?

llvm[0]: ***** Completed Release+Debug+Asserts Build
gmake: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/llvm-3.4.2.src'
11976.502u 1309.891s 4:38:52.75 79.4%	0+0k 133+15495io 0pf+0w

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

Resolution: fixed
Status: newclosed

Great, so it sounds like you've got llvm-3.4 now. Closing.

Note: See TracTickets for help on using tickets.