Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#42751 closed defect (invalid)

cctools: ranlib: line 390: ./gsed: No such file or directory

Reported by: creativecommon@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign (Ryan Schmidt), jeremyhu (Jeremy Huddleston Sequoia)
Port: cctools

Description

I am unable to upgraded outdated packages due to gettext upgrade failure.

OS : Mac OSX 10.7.5 (Lion)

Macports Version : 2.2.1

Macports Install location : /macports

% sudo port clean gettext

% sudo port install gettext
--->  Computing dependencies for gettext
--->  Fetching distfiles for gettext
--->  Verifying checksums for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
Error: org.macports.build for port gettext returned: command execution failed
Please see the log file for port gettext for details:
    /macports/var/macports/logs/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gettext failed

% cat  /macports/var/macports/logs/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log 
...
......
.......

:info:build libtool: link: dsymutil .libs/libintl.8.dylib || :
:info:build warning: no debug symbols in executable (-arch x86_64)
:info:build libtool: link: (cd ".libs" && rm -f "libintl.dylib" && ln -s "libintl.8.dylib" "libintl.dylib")
:info:build libtool: link: ar cru .libs/libintl.a  bindtextdom.o dcgettext.o dgettext.o gettext.o finddomain.o hash-string.o loadmsgcat.o localealias.o textdomain.o l10nflist.o explodename.o dcigettext.o dcngettext.o dngettext.o ngettext.o plural.o plural-exp.o localcharset.o threadlib.o lock.o relocatable.o langprefs.o localename.o log.o printf.o setlocale.o version.o xsize.o osdep.o intl-compat.o
:info:build /macports/bin/ranlib: line 390: ./gsed: No such file or directory
:info:build : unrecognized option `-q'
:info:build Try ` --help' for more information.
:info:build ar: internal ranlib command failed
:info:build make[3]: *** [libintl.la] Error 1
:info:build make[3]: Leaving directory `/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.3.2/gettext-runtime/intl'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.3.2/gettext-runtime'
:info:build make[1]: *** [all] Error 2
:info:build make[1]: Leaving directory `/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.3.2/gettext-runtime'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory `/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.3.2'
:info:build Command failed:  cd "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.3.2" && /usr/bin/make -j2 -w all
:info:build Exit code: 2
:error:build org.macports.build for port gettext returned: command execution failed
:debug:build Error code: CHILDSTATUS 67410 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for gettext: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port gettext for details:
    /macports/var/macports/logs/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log 


I am attaching the full main.log (gettext) as well the the output of % sudo port -v -d install gettext

Any help will be appreciated. Thanks in advance.

Attachments (3)

main.log (198.4 KB) - added by creativecommon@… 7 years ago.
gettext_main.log
gettext_debug_output.log (154.7 KB) - added by creativecommon@… 7 years ago.
gettext_debug_output_during_install
libtool (215.6 KB) - added by creativecommon@… 7 years ago.
ranlib_symlinks_to_libtool

Download all attachments as: .zip

Change History (12)

Changed 7 years ago by creativecommon@…

Attachment: main.log added

gettext_main.log

Changed 7 years ago by creativecommon@…

Attachment: gettext_debug_output.log added

gettext_debug_output_during_install

comment:1 Changed 7 years ago by creativecommon@…

Cc: creativecommon@… added

Cc Me!

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

Cc: ryandesign@… jeremyhu@… added; creativecommon@… removed
Keywords: gettext error upgrade fails removed
Port: ranlib added; gettext removed
Summary: gettext fails to upgrade to gettext-0.18.3.2 (Mac OSX Lion 10.7.5 , Macports : 2.2.1)ranlib: line 390: ./gsed: No such file or directory

Your log says:

:info:build /macports/bin/ranlib: line 390: ./gsed: No such file or directory

Sounds like your ranlib needs gsed, and gsed wasn't there. This is not a gettext problem; you'd encounter this problem with any port you try to build that uses ranlib. You could work around this by installing the gsed port.

However, normally, ranlib is part of cctools, and is just a symlink to libtool, which is also part of cctools, and libtool is supposed to be a compiled executable, not a script with line numbers as your error message seems to indicate. Could you show the output of:

ls -l /macports/bin/ranlib
port provides /macports/bin/ranlib

Could you also attach /macports/bin/ranlib (or, if it's a symlink, what it's pointing to) for us to examine?

comment:3 in reply to:  2 Changed 7 years ago by ryandesign (Ryan Schmidt)

Replying to ryandesign@…:

You could work around this by installing the gsed port.

Actually, that's not going to work yet, since gsed requires gettext. You could deactivate cctools for the duration of your gettext build:

sudo port clean gettext gsed
sudo port -f deactivate cctools
sudo port install gsed
sudo port activate cctools

Changed 7 years ago by creativecommon@…

Attachment: libtool added

ranlib_symlinks_to_libtool

comment:4 Changed 7 years ago by creativecommon@…

% ls -l /macports/bin/ranlib
lrwxr-xr-x  1 root  admin  7 Aug 24  2013 /macports/bin/ranlib -> libtool
% port provides /macports/bin/ranlib
/macports/bin/ranlib is provided by: cctools

/macports/bin/ranlib is a symlink to /macports/bin/libtool

*Attaching* libtool file which appears to be a script in my case, to the list of attachments

comment:5 Changed 7 years ago by ryandesign (Ryan Schmidt)

Port: cctools added; ranlib removed
Resolution: invalid
Status: newclosed
Summary: ranlib: line 390: ./gsed: No such file or directorycctools: ranlib: line 390: ./gsed: No such file or directory

That's not cctools' libtool; that's GNU libtool, a totally different software.

Please rebuild cctools to put back cctools' libtool; all should be well after that.

sudo port -n upgrade --force cctools

comment:6 Changed 7 years ago by creativecommon@…

% sudo port -n upgrade --force cctools
Password:
--->  Computing dependencies for cctools
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports.
--->  Fetching distfiles for cctools
--->  Attempting to fetch cctools-845.tar.gz from http://lil.fr.distfiles.macports.org/cctools
--->  Verifying checksums for cctools
--->  Extracting cctools
--->  Applying patches to cctools
--->  Configuring cctools
--->  Building cctools
Error: org.macports.build for port cctools returned: command execution failed
Please see the log file for port cctools for details:
    /macports/var/macports/logs/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
:info:build /macports/bin/libtool: line 390: ./gsed: No such file or directory
:info:build /macports/bin/libtool: line 390: ./gsed: No such file or directory
:info:build : unrecognized option `-static'
:info:build : unrecognized option `-static'
:info:build Try ` --help' for more information.
:info:build make[2]: *** [libstuff.dylib] Error 1
:info:build Try ` --help' for more information.
:info:build make[2]: Leaving directory `/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-845/libstuff/dynamic_obj'
:info:build make[1]: *** [dynamic] Error 2
:info:build make[2]: *** [libstuff_p.a] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[2]: Leaving directory `/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-845/libstuff/profile_obj'
:info:build make[1]: *** [profile] Error 2
:info:build make[1]: Leaving directory `/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-845/libstuff'
:info:build make: *** [all] Error 1
:info:build make: Leaving directory `/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-845'
:info:build Command failed:  cd "/macports/var/macports/build/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-845" && /usr/bin/make -j2 -w all RC_OS="macos" RC_ProjectSourceVersion=845 USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC="/usr/bin/clang -Os" CXX="/usr/bin/clang++ -Os" CXXLIB="" RC_ARCHS="x86_64" SDK="-I/macports/include" LTO=-DLTO_SUPPORT RC_CFLAGS="-arch x86_64 `llvm-config-mp-3.3 --cflags`" LLVM_MC="llvm-mc-mp-3.3" TRIE=-DTRIE_SUPPORT
:info:build Exit code: 2
:error:build org.macports.build for port cctools returned: command execution failed
:debug:build Error code: CHILDSTATUS 97401 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for cctools: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port cctools for details:
    /macports/var/macports/logs/_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/main.log

comment:7 Changed 7 years ago by ryandesign (Ryan Schmidt)

Ok, you'll have to remove the bad libtool first, e.g. by first uninstalling cctools.

sudo port -f uninstall cctools
sudo port clean cctools
sudo port install cctools

comment:8 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

And don't install things to /macports which will clobber files managed by base.

comment:9 Changed 7 years ago by creativecommon@…

Sorry for the late response. I have resolved the problem by following the steps you guys provided earlier.

sudo port clean gettext gsed
sudo port -f deactivate cctools
sudo port uninstall gsed
sudo port install gsed
sudo port activate cctools

Followed by

sudo port -n upgrade --force cctools

Thanks a lot ryandesign and jeremyhu. I really appreciate it.

Note: See TracTickets for help on using tickets.