Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#26545 closed defect (invalid)

I/O error on boost 1.44 installation

Reported by: nicola.degara@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: adfernandes (Andrew Fernandes)
Port: boost

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Dear all,

I was trying to install Kde4 on my wife's mac and during the installation I met this error on boost 1.44 package...

I started the batch in "sudo" mode (sudo port install boost) and this is what I got after a while:

DEBUG: installing file: /opt/local/var/macports/software/boost/1.44.0_0/opt/local/lib/libboost_graph.a
Error: Target org.macports.install returned: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/destroot/opt/local/lib/libboost_graph.a" to "/opt/local/var/macports/software/boost/1.44.0_0/opt/local/lib/libboost_graph.a": I/O error
DEBUG: Backtrace: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/destroot/opt/local/lib/libboost_graph.a" to "/opt/local/var/macports/software/boost/1.44.0_0/opt/local/lib/libboost_graph.a": I/O error
    while executing
"file copy -force $src_element $dst_element"
    (procedure "install_element" line 6)
    invoked from within
"install_element $src_element $dst_element"
    (procedure "directory_dig" line 24)
    invoked from within
"directory_dig $rootdir $name $imagedir [file join $cwd $name] $prepend"
    (procedure "directory_dig" line 35)
    invoked from within
"directory_dig $rootdir $name $imagedir [file join $cwd $name] $prepend"
    (procedure "directory_dig" line 35)
    invoked from within
"directory_dig $rootdir $name $imagedir [file join $cwd $name] $prepend"
    (procedure "directory_dig" line 35)
    invoked from within
"directory_dig ${destroot} ${destroot} ${imagedir} "" 0"
    invoked from within
"registry::write {

            set regref [registry::entry create $name $version $revision $portvariants $epoch]

            $regref requested $user_..."
    (procedure "portinstall::install_main" line 20)
    invoked from within
"$procedure $targetname"

I do not know whether is a package problem, an environment problem or a macport issue. I ran in DEBUG mode and there is no previous error listed...

Thank you

Change History (8)

comment:1 Changed 14 years ago by nicola.degara@…

Cc: nicola.degara@… added

Cc Me!

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: nicola.degara@… removed
Description: modified (diff)
Port: boost added

I/O error often means a problem with your hard disk. Can you verify the disk using Disk Utility?

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Cc: adfernandes@… added

comment:4 Changed 14 years ago by adfernandes (Andrew Fernandes)

Resolution: invalid
Status: newclosed

I agree with ryandesign. My advice to you would be to:

  • Make sure you have everything backed up!
  • Boot the mac in safe mode. This will force a filesystem check. (I've had errors like this before, very very rarely, where all the hard-linking that MacPorts does messes up the link structure of the HFS+ volume).
  • Verify the SMART status of the drive. There is a SMART report utility in MacPorts. Alternatively, there is SMARTreporter (free) and SMART Utility (payware). The latter gives you more information, I think.

If the SMART error log on the disk (you need to really look in the SMART logs on the disk to find them; they often don't show up with the simple 'red-light/green-light' utilities) then the disk definitely needs replacement.

Really, I can think of lots of things that make a port fail to install, but not with an I/O error.

comment:5 Changed 14 years ago by nicola.degara@…

Dear all,

thank you very much!!!

I have followed your suggestion but unfortunately (or fortunately!) the disk seems healthy.. this is the log generated by SMART Reporter:

2010-09-21 17:52:44.978 SMARTReporter[148:207] Drive: 'ST9120822AS (Macintosh HD | 5RM0L5PX | disk0)' Status: SMARTOK (S.M.A.R.T. condition not exceeded, drive OK) 2010-09-21 17:54:00.397 SMARTReporter[155:207] Drive: 'ST9120822AS (Macintosh HD | 5RM0L5PX | disk0)' Status: SMARTOK (S.M.A.R.T. condition not exceeded, drive OK) 2010-09-21 17:54:35.153 SMARTReporter[155:207] Drive: 'ST9120822AS (Macintosh HD | 5RM0L5PX | disk0)' Status: SMARTOK (S.M.A.R.T. condition not exceeded, drive OK) 2010-09-21 17:57:47.437 SMARTReporter[121:207] Drive: 'ST9120822AS (Macintosh HD | 5RM0L5PX | disk0)' Status: SMARTOK (S.M.A.R.T. condition not exceeded, drive OK) 2010-09-21 17:58:59.014 SMARTReporter[121:207] Drive: 'ST9120822AS (Macintosh HD | 5RM0L5PX | disk0)' Status: SMARTOK (S.M.A.R.T. condition not exceeded, drive OK) and as far as I can understand it sounds negative about errors. Right?

I forgot to say that the Mac has been newly re-installed three days ago because we upgraded to Snow leopard and we took the occasion for some "season cleaning"...

If you have any further suggestion I will be happy to try it..

Thx

Nicola

comment:6 Changed 14 years ago by adfernandes (Andrew Fernandes)

SMART is a funny thing. The SMART "conditions" are often not exceeded, even when the drive is failing.

Try installing the smartmontools port, and using the smartctl -a [disk] command. Look carefully at the disk's internal error log. Frequently, drives record media errors but then do not report SMART problems. That's happened to me twice.

Cheers, -Andrew.

comment:7 Changed 14 years ago by nicola.degara@…

Dear all,

Finally I got the smart POP up. You were right.. unfortunately my disk has I/O errors.

Tomorrow I will buy a new disk...

Thank you all for the great, quick, professional and reliable support.

... and, as a kde daily user I will try again to install kde4 on MAC.

Nicola

comment:8 in reply to:  7 Changed 14 years ago by nicola.degara@…

Now. With a new disk I can compile !!!

Thank you

Note: See TracTickets for help on using tickets.