Changes between Initial Version and Version 1 of Ticket #37526


Ignore:
Timestamp:
Jan 4, 2013, 9:10:28 PM (9 years ago)
Author:
ryandesign (Ryan Schmidt)
Comment:

Replying to 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 "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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37526

    • Property Cc cal@… ryandesign@… added
    • Property Keywords rev-upgrade added; gcc g++ removed
    • Property Port apple-gcc40 added; gcc48 removed
    • Property Summary changed from gcc48 @ 4.8-20121230_0 build failure to apple-gcc40: rev-upgrade says: crt3.o: Premature end of data, possibly corrupt file
  • Ticket #37526 – Description

    initial v1  
    88Memory: 8 GB 1067 MHz DDR3[[BR]]
    99
    10 [aroop@woof lib]$  sudo port clean gcc48[[BR]]
    11 --->  Cleaning gcc48[[BR]]
    12 [aroop@woof lib]$ sudo port install gcc48[[BR]]
    13 --->  Computing dependencies for gcc48[[BR]]
    14 --->  Cleaning gcc48[[BR]]
    15 --->  Scanning binaries for linking errors: 98.0%[[BR]]
    16 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]]
    17 --->  Scanning binaries for linking errors: 98.2%[[BR]]
    18 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]]
    19 --->  Scanning binaries for linking errors: 100.0%[[BR]]
    20 --->  No broken files found.[[BR]]
     10{{{
     11[aroop@woof lib]$  sudo port clean gcc48
     12--->  Cleaning gcc48
     13[aroop@woof lib]$ sudo port install gcc48
     14--->  Computing dependencies for gcc48
     15--->  Cleaning gcc48
     16--->  Scanning binaries for linking errors: 98.0%
     17Warning: 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
     18--->  Scanning binaries for linking errors: 98.2%
     19Warning: 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
     20--->  Scanning binaries for linking errors: 100.0%
     21--->  No broken files found.
     22}}}
    2123
    2224Also if it does build successfully, where will I find (location) the gcc executable?