[MacPorts] #34385: gcc47 and gcc48 fail to build on ppc

MacPorts noreply at macports.org
Wed Jun 20 14:16:45 PDT 2012


#34385: gcc47 and gcc48 fail to build on ppc
-------------------------------------+--------------------------------------
  Reporter:  boby.foulcan@…          |       Owner:  jeremyhu@…           
      Type:  defect                  |      Status:  closed               
  Priority:  Normal                  |   Milestone:                       
 Component:  ports                   |     Version:  2.0.4                
Resolution:  fixed                   |    Keywords:  Leopard ppc          
      Port:  gcc42 gcc47 gcc48       |  
-------------------------------------+--------------------------------------

Comment(by darylew@…):

 Replying to [comment:17 jeremyhu@…]:
 > Oh, I see you did that already.

 I did not run the `rev-upgrade`; MacPorts did it on its own when it tried
 redoing `gcc47` after processing `ppl`.

 > In any event, the ppc_fde_encoding.diff patch is applied
 unconditionally, so I don't know what you mean by changing it... also it's
 the gcc port that is at issue, not the libffi port.  If you have further
 issues, please open a new bug report.  Try adding the
 ppc_fde_encoding.diff patch (from gcc45) to gcc47.

 We're looking at different patches.  You're talking about the FDE patches
 from [93031] for `gcc44` and `gcc45`.  I was talking about the patch in
 [74107] for `libffi`.  The patch for the later changeset was conditional,
 but that whole section in the Portfile has been redone, most likely from
 either the original developers fixing the source or the patch's effects
 were moved to different files.

 I added:

 {{{

 patchfiles          ppc_fde_encoding.diff
 patch.dir           ${workpath}/gcc-${version}

 }}}

 after line 50 in `gcc47`'s Portfile, then copied the
 "ppc_fde_encoding.diff" file from `gcc45' to `gcc47`:

 {{{
 [daryle]$ pushd
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/gcc47/
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/gcc47
 ~
 [daryle]$ ls
 Portfile        files           work
 [daryle]$ cd files
 [daryle]$ ls -l
 total 8
 -rw-r--r--   1 root  admin  111 Nov 30  2011 mp-gcc47
 [daryle]$ cd ..
 [daryle]$ cd ../gcc45
 [daryle]$ ls
 Portfile        files
 [daryle]$ ls files
 mp-gcc45                ppc_fde_encoding.diff
 [daryle]$ cd files
 [daryle]$ cp ppc_fde_encoding.diff ../../gcc47/files
 cp: ../../gcc47/files/ppc_fde_encoding.diff: Permission denied
 [daryle]$ cp ppc_fde_encoding.diff ~
 [daryle]$ cd ..
 [daryle]$ cd ..
 [daryle]$ cd gcc47
 [daryle]$ cd files
 [daryle at daryle-walkers-emac:files]$ cp ~/ppc_fde_encoding.diff .
 cp: ./ppc_fde_encoding.diff: Permission denied
 [daryle]$ ls -l ~/ppc_fde_encoding.diff
 -rw-r--r--   1 daryle  daryle  1406 Jun 20 12:16
 /Users/daryle/ppc_fde_encoding.diff
 [daryle]$ sudo cp ~/ppc_fde_encoding.diff .
 Password:
 [daryle]$ ls -l
 total 16
 -rw-r--r--   1 root  admin   111 Nov 30  2011 mp-gcc47
 -rw-r--r--   1 root  admin  1406 Jun 20 12:18 ppc_fde_encoding.diff
 }}}

 But I messed up somewhere:

 {{{
 [daryle]$ popd
 ~
 [daryle]$ sudo port upgrade outdated
 Portfile changed since last build; discarding previous state.
 --->  Computing dependencies for gcc47
 --->  Fetching archive for gcc47
 --->  Attempting to fetch gcc47-4.7.1_0.darwin_8.ppc.tbz2 from
 http://packages.macports.org/gcc47
 --->  Fetching distfiles for gcc47
 --->  Verifying checksum(s) for gcc47
 --->  Extracting gcc47
 --->  Applying patches to gcc47
 Error: org.macports.patch for port gcc47 returned: command execution
 failed
 Please see the log file for port gcc47 for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/main.log
 Error: Unable to upgrade port: 1
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 [daryle]$
 }}}

 The process ended really early; the log is short:

 {{{
 version:1
 :msg:main --->  Computing dependencies for gcc47:info:main .:debug:main
 gcc47 has no conflicts
 :debug:main Searching for dependency: gmp
 :debug:main Found Dependency: receipt exists for gmp
 :debug:main Searching for dependency: mpfr
 :debug:main Found Dependency: receipt exists for mpfr
 :debug:main Searching for dependency: libiconv
 :debug:main Found Dependency: receipt exists for libiconv
 :debug:main Searching for dependency: libmpc
 :debug:main Found Dependency: receipt exists for libmpc
 :debug:main Searching for dependency: ppl
 :debug:main Found Dependency: receipt exists for ppl
 :debug:main Searching for dependency: cloog
 :debug:main Found Dependency: receipt exists for cloog
 :debug:main Searching for dependency: gcc_select
 :debug:main Found Dependency: receipt exists for gcc_select
 :debug:main Searching for dependency: ld64
 :debug:main Found Dependency: receipt exists for ld64
 :debug:main Searching for dependency: cctools
 :debug:main Found Dependency: receipt exists for cctools
 :msg:main
 :debug:main Executing org.macports.main (gcc47)
 :debug:main changing euid/egid - current euid: 0 - current egid: 0
 :debug:main egid changed to: 500
 :debug:main euid changed to: 506
 :debug:archivefetch archivefetch phase started at Wed Jun 20 12:40:45 EDT
 2012
 :msg:archivefetch --->  Fetching archive for gcc47
 :debug:archivefetch Executing org.macports.archivefetch (gcc47)
 :debug:archivefetch euid/egid changed to: 0/0
 :debug:archivefetch chowned /opt/local/var/macports/incoming to macports
 :debug:archivefetch euid/egid changed to: 506/500
 :info:archivefetch --->  gcc47-4.7.1_0.darwin_8.ppc.tbz2 doesn't seem to
 exist in /opt/local/var/macports/incoming/verified
 :msg:archivefetch --->  Attempting to fetch
 gcc47-4.7.1_0.darwin_8.ppc.tbz2 from http://packages.macports.org/gcc47
 :debug:archivefetch Fetching archive failed:: The requested URL returned
 error: 404
 :debug:archivefetch Privilege de-escalation not attempted as not running
 as root.
 :debug:fetch fetch phase started at Wed Jun 20 12:40:46 EDT 2012
 :notice:fetch --->  Fetching distfiles for gcc47
 :debug:fetch Executing org.macports.fetch (gcc47)
 :debug:fetch Privilege de-escalation not attempted as not running as root.
 :debug:checksum checksum phase started at Wed Jun 20 12:40:46 EDT 2012
 :notice:checksum --->  Verifying checksum(s) for gcc47
 :debug:checksum Executing org.macports.checksum (gcc47)
 :info:checksum --->  Checksumming gcc-4.7.1.tar.bz2
 :debug:checksum Correct (rmd160) checksum for gcc-4.7.1.tar.bz2
 :debug:checksum Correct (sha256) checksum for gcc-4.7.1.tar.bz2
 :info:checksum --->  Checksumming ecj-4.5.jar
 :debug:checksum Correct (rmd160) checksum for ecj-4.5.jar
 :debug:checksum Correct (sha256) checksum for ecj-4.5.jar
 :debug:checksum Privilege de-escalation not attempted as not running as
 root.
 :debug:extract extract phase started at Wed Jun 20 12:41:14 EDT 2012
 :notice:extract --->  Extracting gcc47
 :debug:extract setting option extract.cmd to /usr/bin/bzip2
 :debug:extract Executing org.macports.extract (gcc47)
 :info:extract --->  Extracting gcc-4.7.1.tar.bz2
 :debug:extract setting option extract.args to
 '/opt/local/var/macports/distfiles/gcc47/gcc-4.7.1.tar.bz2'
 :debug:extract Environment: CPATH='/opt/local/include'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/work/.CC_PRINT_OPTIONS'
 LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
 MACOSX_DEPLOYMENT_TARGET='10.4'
 :debug:extract Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/work"
 && /usr/bin/bzip2 -dc
 '/opt/local/var/macports/distfiles/gcc47/gcc-4.7.1.tar.bz2' |
 /usr/bin/gnutar --no-same-owner -xf -'
 :debug:extract Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/work"
 && /usr/bin/bzip2 -dc
 '/opt/local/var/macports/distfiles/gcc47/gcc-4.7.1.tar.bz2' |
 /usr/bin/gnutar --no-same-owner -xf -
 :debug:extract euid/egid changed to: 0/0
 :debug:extract chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/work
 to macports
 :debug:extract euid/egid changed to: 506/500
 :debug:extract Executing proc-post-org.macports.extract-extract-0
 :debug:extract Privilege de-escalation not attempted as not running as
 root.
 :debug:patch patch phase started at Wed Jun 20 13:10:30 EDT 2012
 :debug:patch Executing org.macports.patch (gcc47)
 :notice:patch --->  Applying patches to gcc47
 :info:patch --->  Applying ppc_fde_encoding.diff
 :debug:patch Environment: CPATH='/opt/local/include'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/work/.CC_PRINT_OPTIONS'
 LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
 MACOSX_DEPLOYMENT_TARGET='10.4'
 :debug:patch Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/work/gcc-4.7.1"
 && /usr/bin/patch -p0'
 :debug:patch Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/work/gcc-4.7.1"
 && /usr/bin/patch -p0 <
 '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/gcc47/files/ppc_fde_encoding.diff'
 :info:patch patching file libffi/src/powerpc/darwin.S
 :info:patch Hunk #1 FAILED at 191.
 :info:patch 1 out of 1 hunk FAILED -- saving rejects to file
 libffi/src/powerpc/darwin.S.rej
 :info:patch patching file libffi/src/powerpc/darwin_closure.S
 :info:patch Hunk #1 FAILED at 253.
 :info:patch 1 out of 1 hunk FAILED -- saving rejects to file
 libffi/src/powerpc/darwin_closure.S.rej
 :info:patch Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/work/gcc-4.7.1"
 && /usr/bin/patch -p0 <
 '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/gcc47/files/ppc_fde_encoding.diff'
 :info:patch Exit code: 1
 :error:patch org.macports.patch for port gcc47 returned: command execution
 failed
 :debug:patch Error code: CHILDSTATUS 27389 1
 :debug:patch Backtrace: command execution failed
     while executing
 "system $fullcmdstring"
     ("eval" body line 1)
     invoked from within
 "eval system $notty $nice \$fullcmdstring"
     invoked from within
 "command_exec patch "" "< '$patch'""
     ("default" arm line 1)
     invoked from within
 "switch -- [file extension $patch] {
             .Z -
             .gz {command_exec patch "$gzcat \"$patch\" | (" ")"}
             .bz2 {command_exec p..."
     (procedure "portpatch::patch_main" line 31)
     invoked from within
 "$procedure $targetname"
 :info:patch Warning: targets not executed for gcc47: org.macports.install
 org.macports.patch org.macports.configure org.macports.build
 org.macports.destroot
 :notice:patch Please see the log file for port gcc47 for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc47/gcc47/main.log
 }}}

 I guess I messed up copying the patch over from `gcc45` to `gcc47`?

-- 
Ticket URL: <https://trac.macports.org/ticket/34385#comment:18>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list