[MacPorts] #37526: apple-gcc40: rev-upgrade says: crt3.o: Premature end of data, possibly corrupt file (was: gcc48 @ 4.8-20121230_0 build failure)

MacPorts noreply at macports.org
Fri Jan 4 13:10:29 PST 2013


#37526: apple-gcc40: rev-upgrade says: crt3.o: Premature end of data, possibly
corrupt file
----------------------------+--------------------------------
  Reporter:  aroopsircar@…  |      Owner:  macports-tickets@…
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.1.2
Resolution:                 |   Keywords:  rev-upgrade
      Port:  apple-gcc40    |
----------------------------+--------------------------------
Changes (by ryandesign@…):

 * cc: cal@…, ryandesign@… (added)
 * keywords:  gcc, g++ => rev-upgrade
 * port:  gcc48 => apple-gcc40


Old description:

> Hello,
>
> I am trying to install the gcc48 port but it keeps returning an error.
> To that end I have tried to remove both gcc48 and apple-gcc40 and
> followed it with clean and have reinstalled both, but keep getting the
> same error:
>
> Mac OSX: Version 10.6.8[[BR]]
> Xcode: 3.2.6 (1761)[[BR]]
> Processor: 2.66 GHz Intel Core i7[[BR]]
> Memory: 8 GB 1067 MHz DDR3[[BR]]
>
> [aroop at woof lib]$  sudo port clean gcc48[[BR]]
> --->  Cleaning gcc48[[BR]]
> [aroop at woof lib]$ sudo port install gcc48[[BR]]
> --->  Computing dependencies for gcc48[[BR]]
> --->  Cleaning gcc48[[BR]]
> --->  Scanning binaries for linking errors: 98.0%[[BR]]
> Warning: Error parsing file /opt/local/lib/apple-gcc40/lib/gcc/i686
> -apple-darwin10.8.0/4.0.1/kext/crt3.o: Premature end of data, possibly
> corrupt file[[BR]]
> --->  Scanning binaries for linking errors: 98.2%[[BR]]
> Warning: Error parsing file /opt/local/lib/apple-gcc40/lib/gcc/i686
> -apple-darwin10.8.0/4.0.1/static/crt3.o: Premature end of data, possibly
> corrupt file[[BR]]
> --->  Scanning binaries for linking errors: 100.0%[[BR]]
> --->  No broken files found.[[BR]]
>
> Also if it does build successfully, where will I find (location) the gcc
> executable?
>
> Thank you for your help,[[BR]]
> Aroop

New description:

 Hello,

 I am trying to install the gcc48 port but it keeps returning an error.  To
 that end I have tried to remove both gcc48 and apple-gcc40 and followed it
 with clean and have reinstalled both, but keep getting the same error:

 Mac OSX: Version 10.6.8[[BR]]
 Xcode: 3.2.6 (1761)[[BR]]
 Processor: 2.66 GHz Intel Core i7[[BR]]
 Memory: 8 GB 1067 MHz DDR3[[BR]]

 {{{
 [aroop at woof lib]$  sudo port clean gcc48
 --->  Cleaning gcc48
 [aroop at woof lib]$ sudo port install gcc48
 --->  Computing dependencies for gcc48
 --->  Cleaning gcc48
 --->  Scanning binaries for linking errors: 98.0%
 Warning: Error parsing file /opt/local/lib/apple-gcc40/lib/gcc/i686-apple-
 darwin10.8.0/4.0.1/kext/crt3.o: Premature end of data, possibly corrupt
 file
 --->  Scanning binaries for linking errors: 98.2%
 Warning: Error parsing file /opt/local/lib/apple-gcc40/lib/gcc/i686-apple-
 darwin10.8.0/4.0.1/static/crt3.o: Premature end of data, possibly corrupt
 file
 --->  Scanning binaries for linking errors: 100.0%
 --->  No broken files found.
 }}}

 Also if it does build successfully, where will I find (location) the gcc
 executable?

 Thank you for your help,[[BR]]
 Aroop

--

Comment:

 Replying to [ticket:37526 aroopsircar@…]:
 > I am trying to install the gcc48 port but it keeps returning an error.

 > {{{
 > Warning: Error parsing file /opt/local/lib/apple-gcc40/lib/gcc/i686
 -apple-darwin10.8.0/4.0.1/kext/crt3.o: Premature end of data, possibly
 corrupt file
 > }}}

 It's just a warning actually, not an error. This output is part of the
 "[wiki:SummerOfCode2011#rev-upgrade rev-upgrade]" feature of MacPorts,
 which, after you install or upgrade any port, checks every installed port
 to see if there are any linking errors. It's trying to locate and check OS
 X Mach-O binaries and libraries. In this case, rev-upgrade has identified
 this particular file crt3.o as a Mach-O file, but I'm guessing that in
 fact it isn't, and so it prints a warning saying it might be corrupt.
 That's probably fine and normal for this file. It might be nice to enhance
 the rev-upgrade feature so that it recognizes this type of file and skips
 over it instead of reporting it as corrupt, but I don't know what criteria
 would be used to differentiate this file from the Mach-O files that it
 does need to check. I'm Cc'ing Clemens who designed the rev-upgrade
 feature.

 > {{{
 > --->  No broken files found.
 > }}}

 This confirms there's no real problem. The gcc48 port is successfully
 installed.

 > Also if it does build successfully, where will I find (location) the gcc
 executable?

 `port contents gcc48` will show you what files were installed.

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


More information about the macports-tickets mailing list