#37526 closed defect (duplicate)
apple-gcc40: rev-upgrade says: crt3.o: Premature end of data, possibly corrupt file
Reported by: | aroopsircar@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | rev-upgrade | Cc: | neverpanic (Clemens Lang), ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager) |
Port: | apple-gcc40 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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
Xcode: 3.2.6 (1761)
Processor: 2.66 GHz Intel Core i7
Memory: 8 GB 1067 MHz DDR3
[aroop@woof lib]$ sudo port clean gcc48 ---> Cleaning gcc48 [aroop@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,
Aroop
Change History (3)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | cal@… ryandesign@… added |
---|---|
Description: | modified (diff) |
Keywords: | rev-upgrade added; gcc g++ removed |
Port: | apple-gcc40 added; gcc48 removed |
Summary: | gcc48 @ 4.8-20121230_0 build failure → apple-gcc40: rev-upgrade says: crt3.o: Premature end of data, possibly corrupt file |
comment:2 Changed 12 years ago by neverpanic (Clemens Lang)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #36996.
Note: See
TracTickets for help on using
tickets.
Replying to aroopsircar@…:
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.
This confirms there's no real problem. The gcc48 port is successfully installed.
port contents gcc48
will show you what files were installed.