Opened 8 years ago

Closed 4 years ago

#40136 closed defect (fixed)

mythtv-core.26 @0.26-Fixes-20130720_0: install_name_tool failure during destroot

Reported by: sbturner@… Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: douglas.brockett@…
Port: mythtv-core.26

Description (last modified by larryv (Lawrence Velázquez))

I recently installed MacPorts and have only attempted to install MythTV-Core.26. The build failed when Install_Name_Tool exited with error code 1. After the initial failure I cleaned MythTV, ran MacPorts selfupdate, and retried but received the same error message. Pertinent info is below and the log file is attached. Any suggestions will be greatly appreciated.

OS: 10.8.4
MacPorts: 2.2.0 with current updates
Myth install attempted: sudo port install mythtv-core.26

It appears the following parts of the log capture the error (see attached log for detail):

:debug:destroot       Change libmythpostproc.dylib to /opt/local/lib/libmythpostproc.dylib
:info:destroot install_name_tool: changing install names or rpaths can't be redone for: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv-core.26/mythtv-core.26/work/destroot/opt/local/bin/mythffmpeg (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
:info:destroot Command failed: install_name_tool -change  libmythpostproc.dylib  /opt/local/lib/libmythpostproc.dylib  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv-core.26/mythtv-core.26/work/destroot/opt/local/bin/mythffmpeg
:info:destroot Exit code: 1
:error:destroot org.macports.destroot for port mythtv-core.26 returned: command execution failed
:debug:destroot Error code: NONE
:debug:destroot Backtrace: command execution failed

Attachments (1)

main.log (3.6 MB) - added by sbturner@… 8 years ago.
MythTV.26.Log

Change History (17)

Changed 8 years ago by sbturner@…

Attachment: main.log added

MythTV.26.Log

comment:1 Changed 8 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to ctreleaven@…
Port: mythtv-core.26 added
Summary: MythTV.26 Build Failure (Install_Name_Tool Exit Code 1)mythtv-core.26 @0.26-Fixes-20130720_0: install_name_tool failure during destroot

Thanks for the ticket. In the future, please Cc relevant port maintainers (port info --maintainers).

comment:2 Changed 8 years ago by ctreleaven (Craig Treleaven)

Strange, don't know why that would be a problem. What version of XCode are you using? I'll check my 10.8 environment.

comment:3 Changed 8 years ago by douglas.brockett@…

Cc: douglas.brockett@… added

Cc Me!

comment:4 Changed 8 years ago by douglas.brockett@…

+1 for me on this issue

XCode Version 4.6.3 (4H1503) Mac OSX 10.8.4 Fresh install of MacPorts as of last night

Last few lines of output from :

sudo port -v install mythtv-core.26

are:

install_name_tool: changing install names or rpaths can't be redone for: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mythtv-core.26/mythtv-core.26/work/destroot/opt/local/bin/mythffmpeg (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
Command failed: install_name_tool -change libmythpostproc.dylib /opt/local/lib/libmythpostproc.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mythtv-core.26/mythtv-core.26/work/destroot/opt/local/bin/mythffmpeg
Exit code: 1
Error: org.macports.destroot for port mythtv-core.26 returned: command execution failed

I'd note that I just recently upgraded XCode version on this machine from old 3.2.6 - perhaps part of the old command line tool chain is lingering?

Strange, don't know why that would be a problem. What version of XCode are you using? I'll check my 10.8 environment.

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:5 Changed 8 years ago by ctreleaven (Craig Treleaven)

I've built successfully with XCode 4.6 (Feb 2013). Any chance one of you could downgrade and try again? That would at least confirm or eliminate this as the source of the issue. I will try with 4.6.3 but it may take me a couple of days.

comment:6 Changed 8 years ago by mf2k (Frank Schima)

Xcode 3.2.6 has never been supported on Mac OS X 10.8. It should be uninstalled.

comment:7 Changed 8 years ago by sbturner@…

I have XCode 4.6.3 installed. I'll try to downgrade to 4.6.0 but it may take a few days.

comment:8 Changed 8 years ago by ctreleaven (Craig Treleaven)

Sorry for the delay--hardware problems with my 10.8 environment. However, I upgraded my 10.7.5 environment to XCode 4.6.3 and was able to build successfully. It will take me longer to get 10.8 up again...have to get a drive replaced.

comment:9 in reply to:  5 Changed 8 years ago by douglas.brockett@…

Replying to ctreleaven@…:

I've built successfully with XCode 4.6 (Feb 2013). Any chance one of you could downgrade and try again? That would at least confirm or eliminate this as the source of the issue. I will try with 4.6.3 but it may take me a couple of days.

I downgraded to Xocde Version 4.6 (4H127) on MacOS 10.8.4 (12e55) - didn't work - same error

Correcting library entries in executables... install_name_tool: changing install names or rpaths can't be redone for: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mythtv-core.26/mythtv-core.26/work/destroot/opt/local/bin/mythffmpeg (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names) Command failed: install_name_tool -change libmythpostproc.dylib /opt/local/lib/libmythpostproc.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mythtv-core.26/mythtv-core.26/work/destroot/opt/local/bin/mythffmpeg Exit code: 1

Version 0, edited 8 years ago by douglas.brockett@… (next)

comment:10 Changed 8 years ago by ctreleaven (Craig Treleaven)

Well, this is not good. Under 10.8.4, I can get past the install_name_tool problem by either adding --ld=${configure.cc} or --disable-ffmpeg to the configure args. However, in either case, mythfrontend now crashes during launch. Appears to be similar to the issue reported in:

#40137

Not that it helps, but this is quite similar to #35934--which I had believed to be fixed in r107034

Need to test with 10.6 and 10.7. I DO NOT understand why we have this problem with MacPorts when the osx-packager-sdk.pl version does not.

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:11 Changed 8 years ago by douglas.brockett@…

FYI... I did build with 4.6.3 on a 10.7.5 machine. The build seemed to complete without any obvious errors, but I haven't checked the resulting executables with any level of diligence...

comment:12 Changed 8 years ago by ctreleaven (Craig Treleaven)

Douglas: it is a run time problem. Myth seems to build OK with different compilers but (so far), under 10.8, only runs OK if built with clang-3.0.

All: please see #40137 for a potential solution/workaround.

All followups will be in that ticket.

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:13 Changed 8 years ago by douglas.brockett@…

Thanks for the help!

I did install clang-3.0, and issued:

sudo port -d install mythtv-core.26 configure.compiler=macports-clang-3.0

as suggest in #40137
Unfortunately, I got the same result on my 10.8.4 machine and xcode 4.6:

DEBUG:       Change libmythpostproc.dylib to /opt/local/lib/libmythpostproc.dylib
install_name_tool: changing install names or rpaths can't be redone for: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mythtv-core.26/mythtv-core.26/work/destroot/opt/local/bin/mythffmpeg (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
Command failed: install_name_tool -change  libmythpostproc.dylib  /opt/local/lib/libmythpostproc.dylib  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mythtv-core.26/mythtv-core.26/work/destroot/opt/local/bin/mythffmpeg
Exit code: 1
Error: org.macports.destroot for port mythtv-core.26 returned: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: command execution failed
    while executing
"$post $targetname"
Warning: targets not executed for mythtv-core.26: org.macports.activate org.macports.destroot org.macports.install
Please see the log file for port mythtv-core.26 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_mythtv-core.26/mythtv-core.26/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mythtv-core.26 failed

I'll need a little more time than I have tonight to dig further - could well be that I've messed something else up along the way. I've posted this to #40136 since the workaround from #40137 didn't seem to take - I hope that's the right protocol.

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:14 Changed 8 years ago by ctreleaven (Craig Treleaven)

Douglas, could you please do a clean build and post your main.log?

sudo port clean mythtv-core.26 && sudo port install mythtv-core.26

If you are comfortable editing a portfile, you can try adding "--ld=${configure.cc}" to the configure args and re-run. Seemed to fix it for me.

comment:15 in reply to:  14 Changed 8 years ago by douglas.brockett@…

And indeed, that does seemed to have to have fixed the build problem (clang-3.0 and remembering to clean) enough to get me to:

Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2)

from mythbackend, which is likely to be a completely different issue.

I suggest closing this - with many thanks from me for your help/patience!

Now on to other yummy myth issues, like fixing mylogserver crash/restart, and getting the backend to like working with myth_stop_start in my environment...

Replying to ctreleaven@…:

Douglas, could you please do a clean build and post your main.log?

sudo port clean mythtv-core.26 && sudo port install mythtv-core.26

If you are comfortable editing a portfile, you can try adding "--ld=${configure.cc}" to the configure args and re-run. Seemed to fix it for me.

Last edited 8 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:16 Changed 4 years ago by ctreleaven (Craig Treleaven)

Resolution: fixed
Status: newclosed

Port now obsolete

Note: See TracTickets for help on using tickets.