Opened 13 years ago

Last modified 10 years ago

#30799 new defect

gettext failing to build tests

Reported by: marcus@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: sean-macports@…, macports@…, nonstop.server@…, cooljeanius (Eric Gallager)
Port: gettext

Description

Trying to install gettext in order to get libintl. Configure goes OK, most of the build succeeds, but then it fails while building gnulib-tests. I'm installing on 10.7 using MacPorts 2.0.1.

:info:build Making all in gnulib-tests
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/work/gettext-0.18.1.1/gettext-tools/gnulib-tests'
:info:build Makefile:2777: .deps/getpagesize.Po: No such file or directory
:info:build Makefile:2778: .deps/putenv.Po: No such file or directory
:info:build Makefile:2779: .deps/read-file.Po: No such file or directory
:info:build Makefile:2780: .deps/symlink.Po: No such file or directory
:info:build Makefile:2781: .deps/test-alignof.Po: No such file or directory
:info:build Makefile:2782: .deps/test-alloca-opt.Po: No such file or directory
:info:build Makefile:2783: .deps/test-areadlink.Po: No such file or directory
:info:build Makefile:2784: .deps/test-argmatch.Po: No such file or directory
:info:build Makefile:2785: .deps/test-array_list.Po: No such file or directory
:info:build Makefile:2786: .deps/test-atexit.Po: No such file or directory
:info:build Makefile:2787: .deps/test-binary-io.Po: No such file or directory
:info:build Makefile:2788: .deps/test-byteswap.Po: No such file or directory
:info:build Makefile:2789: .deps/test-c-ctype.Po: No such file or directory
:info:build Makefile:2790: .deps/test-c-strcasecmp.Po: No such file or directory
:info:build Makefile:2791: .deps/test-c-strcasestr.Po: No such file or directory
:info:build Makefile:2792: .deps/test-c-strncasecmp.Po: No such file or directory
:info:build Makefile:2793: .deps/test-c-strstr.Po: No such file or directory
:info:build Makefile:2794: .deps/test-canonicalize-lgpl.Po: No such file or directory
:info:build Makefile:2795: .deps/test-cloexec.Po: No such file or directory
:info:build Makefile:2796: .deps/test-copy-acl.Po: No such file or directory
:info:build Makefile:2797: .deps/test-copy-file.Po: No such file or directory
:info:build Makefile:2798: .deps/test-dup-safer.Po: No such file or directory
:info:build Makefile:2799: .deps/test-dup2.Po: No such file or directory
:info:build Makefile:2800: .deps/test-environ.Po: No such file or directory
:info:build Makefile:2801: .deps/test-errno.Po: No such file or directory
:info:build Makefile:2802: .deps/test-fcntl-h.Po: No such file or directory
:info:build Makefile:2803: .deps/test-fcntl.Po: No such file or directory
:info:build Makefile:2804: .deps/test-file-has-acl.Po: No such file or directory
:info:build Makefile:2805: .deps/test-fnmatch.Po: No such file or directory
:info:build Makefile:2806: .deps/test-fopen.Po: No such file or directory
:info:build Makefile:2807: .deps/test-fstrcmp.Po: No such file or directory
:info:build Makefile:2808: .deps/test-getdelim.Po: No such file or directory
:info:build Makefile:2809: .deps/test-getdtablesize.Po: No such file or directory
:info:build Makefile:2810: .deps/test-getline.Po: No such file or directory
:info:build Makefile:2811: .deps/test-getopt.Po: No such file or directory
:info:build Makefile:2812: .deps/test-gettimeofday.Po: No such file or directory
:info:build Makefile:2813: .deps/test-iconv-h.Po: No such file or directory
:info:build Makefile:2814: .deps/test-iconv.Po: No such file or directory
:info:build Makefile:2815: .deps/test-linkedhash_list.Po: No such file or directory
:info:build Makefile:2816: .deps/test-locale.Po: No such file or directory
:info:build Makefile:2817: .deps/test-localename.Po: No such file or directory
:info:build Makefile:2818: .deps/test-lock.Po: No such file or directory
:info:build Makefile:2819: .deps/test-lstat.Po: No such file or directory
:info:build Makefile:2820: .deps/test-malloca.Po: No such file or directory
:info:build Makefile:2821: .deps/test-mbrtowc.Po: No such file or directory
:info:build Makefile:2822: .deps/test-mbsinit.Po: No such file or directory
:info:build Makefile:2823: .deps/test-mbsrtowcs.Po: No such file or directory
:info:build Makefile:2824: .deps/test-mbsstr1.Po: No such file or directory
:info:build Makefile:2825: .deps/test-mbsstr2.Po: No such file or directory
:info:build Makefile:2826: .deps/test-mbsstr3.Po: No such file or directory
:info:build Makefile:2827: .deps/test-memchr.Po: No such file or directory
:info:build Makefile:2828: .deps/test-open.Po: No such file or directory
:info:build Makefile:2829: .deps/test-pipe-filter-ii1.Po: No such file or directory
:info:build Makefile:2830: .deps/test-pipe-filter-ii2-child.Po: No such file or directory
:info:build Makefile:2831: .deps/test-pipe-filter-ii2-main.Po: No such file or directory
:info:build Makefile:2832: .deps/test-pipe.Po: No such file or directory
:info:build Makefile:2833: .deps/test-pipe2.Po: No such file or directory
:info:build Makefile:2834: .deps/test-posix_spawn1.Po: No such file or directory
:info:build Makefile:2835: .deps/test-posix_spawn2.Po: No such file or directory
:info:build Makefile:2836: .deps/test-quotearg-simple.Po: No such file or directory
:info:build Makefile:2837: .deps/test-rawmemchr.Po: No such file or directory
:info:build Makefile:2838: .deps/test-read-file.Po: No such file or directory
:info:build Makefile:2839: .deps/test-readlink.Po: No such file or directory
:info:build Makefile:2840: .deps/test-rmdir.Po: No such file or directory
:info:build Makefile:2841: .deps/test-sameacls.Po: No such file or directory
:info:build Makefile:2842: .deps/test-sched.Po: No such file or directory
:info:build Makefile:2843: .deps/test-set-mode-acl.Po: No such file or directory
:info:build Makefile:2844: .deps/test-setenv.Po: No such file or directory
:info:build Makefile:2845: .deps/test-sigaction.Po: No such file or directory
:info:build Makefile:2846: .deps/test-signal.Po: No such file or directory
:info:build Makefile:2847: .deps/test-sigpipe.Po: No such file or directory
:info:build Makefile:2848: .deps/test-snprintf.Po: No such file or directory
:info:build Makefile:2849: .deps/test-spawn.Po: No such file or directory
:info:build Makefile:2850: .deps/test-stat.Po: No such file or directory
:info:build Makefile:2851: .deps/test-stdbool.Po: No such file or directory
:info:build Makefile:2852: .deps/test-stddef.Po: No such file or directory
:info:build Makefile:2853: .deps/test-stdint.Po: No such file or directory
:info:build Makefile:2854: .deps/test-stdio.Po: No such file or directory
:info:build Makefile:2855: .deps/test-stdlib.Po: No such file or directory
:info:build Makefile:2856: .deps/test-strchrnul.Po: No such file or directory
:info:build Makefile:2857: .deps/test-strerror.Po: No such file or directory
:info:build Makefile:2858: .deps/test-striconv.Po: No such file or directory
:info:build Makefile:2859: .deps/test-striconveh.Po: No such file or directory
:info:build Makefile:2860: .deps/test-striconveha.Po: No such file or directory
:info:build Makefile:2861: .deps/test-string.Po: No such file or directory
:info:build Makefile:2862: .deps/test-strstr.Po: No such file or directory
:info:build Makefile:2863: .deps/test-symlink.Po: No such file or directory
:info:build Makefile:2864: .deps/test-sys_select.Po: No such file or directory
:info:build Makefile:2865: .deps/test-sys_socket.Po: No such file or directory
:info:build Makefile:2866: .deps/test-sys_stat.Po: No such file or directory
:info:build Makefile:2867: .deps/test-sys_time.Po: No such file or directory
:info:build Makefile:2868: .deps/test-sys_wait.Po: No such file or directory
:info:build Makefile:2869: .deps/test-term-ostream.Po: No such file or directory
:info:build Makefile:2870: .deps/test-time.Po: No such file or directory
:info:build Makefile:2871: .deps/test-tls.Po: No such file or directory
:info:build Makefile:2872: .deps/test-unistd.Po: No such file or directory
:info:build Makefile:2873: .deps/test-unsetenv.Po: No such file or directory
:info:build Makefile:2874: .deps/test-vasnprintf.Po: No such file or directory
:info:build Makefile:2875: .deps/test-vasprintf.Po: No such file or directory
:info:build Makefile:2876: .deps/test-verify.Po: No such file or directory
:info:build Makefile:2877: .deps/test-vsnprintf.Po: No such file or directory
:info:build Makefile:2878: .deps/test-wchar.Po: No such file or directory
:info:build Makefile:2879: .deps/test-wctype.Po: No such file or directory
:info:build Makefile:2880: .deps/test-wcwidth.Po: No such file or directory
:info:build Makefile:2881: .deps/test-xalloc-die.Po: No such file or directory
:info:build Makefile:2882: .deps/test-xvasprintf.Po: No such file or directory
:info:build Makefile:2883: .deps/wctob.Po: No such file or directory
:info:build Makefile:2884: glthread/.deps/thread.Po: No such file or directory
:info:build Makefile:2885: uniconv/.deps/test-u8-conv-from-enc.Po: No such file or directory
:info:build Makefile:2886: unilbrk/.deps/test-u8-possible-linebreaks.Po: No such file or directory
:info:build Makefile:2887: unilbrk/.deps/test-u8-width-linebreaks.Po: No such file or directory
:info:build Makefile:2888: unilbrk/.deps/test-ulc-width-linebreaks.Po: No such file or directory
:info:build Makefile:2889: uniname/.deps/test-uninames.Po: No such file or directory
:info:build Makefile:2890: unistr/.deps/test-u16-mbtouc.Po: No such file or directory
:info:build Makefile:2891: unistr/.deps/test-u8-check.Po: No such file or directory
:info:build Makefile:2892: unistr/.deps/test-u8-cmp.Po: No such file or directory
:info:build Makefile:2893: unistr/.deps/test-u8-mblen.Po: No such file or directory
:info:build Makefile:2894: unistr/.deps/test-u8-mbtouc-unsafe.Po: No such file or directory
:info:build Makefile:2895: unistr/.deps/test-u8-mbtouc.Po: No such file or directory
:info:build Makefile:2896: unistr/.deps/test-u8-mbtoucr.Po: No such file or directory
:info:build Makefile:2897: unistr/.deps/test-u8-prev.Po: No such file or directory
:info:build Makefile:2898: unistr/.deps/test-u8-strlen.Po: No such file or directory
:info:build Makefile:2899: unistr/.deps/test-u8-uctomb.Po: No such file or directory
:info:build Makefile:2900: unistr/.deps/u8-cmp.Po: No such file or directory
:info:build Makefile:2901: unistr/.deps/u8-strlen.Po: No such file or directory
:info:build Makefile:2902: uniwidth/.deps/test-uc_width.Po: No such file or directory
:info:build Makefile:2903: uniwidth/.deps/test-uc_width2.Po: No such file or directory
:info:build make[3]: *** No rule to make target `uniwidth/.deps/test-uc_width2.Po'.  Stop.
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/work/gettext-0.18.1.1/gettext-tools/gnulib-tests'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/work/gettext-0.18.1.1/gettext-tools'
:info:build make[1]: *** [all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/work/gettext-0.18.1.1/gettext-tools'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/work/gettext-0.18.1.1'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/work/gettext-0.18.1.1" && /usr/bin/make -j8 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gettext): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for gettext is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/main.log

Attachments (1)

main.log (1.1 MB) - added by sean-macports@… 13 years ago.
failure log

Download all attachments as: .zip

Change History (17)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…

Clean and try again.

sudo port clean gettext
sudo port install gettext

If it fails again attach the complete main.log.

Changed 13 years ago by sean-macports@…

Attachment: main.log added

failure log

comment:2 Changed 13 years ago by sean-macports@…

I have the exact same failure. I attached my main.log after the sudo port clean gettext ; sudo port install gettext combo. This is on a Mac Pro running 10.7.1, MacPorts 2.0.1, gettext @0.18.1.1. For some reason my laptop succeeds, but my desktop fails. Thanks for any help, I'm kind of stuck.

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Sean, in your log I see:

dyld: Library not loaded: /opt/local/lib/libintl.8.dylib

Can you find out why the library did not load? Is it a valid Mach-O library? Is it built for the correct architecture? Try using "otool -L" and "lipo -info" on it.

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: sean-macports@… added

Sean, please see my question in the ticket.

comment:5 Changed 13 years ago by sean-macports@…

Hm, thanks for that catch. That file doesn't exist on my system:

whopper:~% ls -l /opt/local/lib/libintl.8.dylib
ls: /opt/local/lib/libintl.8.dylib: No such file or directory

Thinking about it... It seems logical it wouldn't exist since gettext is the *precursor* to libintl, no?

I'm going to poke around more.

I also realized the difference between my two systems. This computer with the failing install was on Leopard, then Snow Leopard, then Lion. The laptop was a *clean* install of Lion. Maybe there is something vestigial on the desktop system.

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

libintl is gettext, actually. The full message was:

dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
  Referenced from: /opt/local/bin/grep
  Reason: image not found

So you have an existing /opt/local/bin/grep utility, which of course requires gettext. So uninstall the grep port first.

When you migrated from Leopard to Snow Leopard to Lion, did you each time follow the Migration instructions and uninstall and reinstall all ports?

comment:7 Changed 13 years ago by sean-macports@…

Thanks for that pointer to the Migration instructions - that solved it. (Although I had to uninstall my existing ports more one by one because somehow it got into an infinite loop of dependencies upon the bulk uninstall that got solved by individual uninstalls, that seems a little odd.)

comment:8 Changed 13 years ago by marcus@…

Forcibly removing and rebuilding grep, then gettext did solve it for me - I had a bit of a chicken and egg situation since this breakage had broken gcc and the toolchain (something like libtool was depending on grep).

comment:9 Changed 13 years ago by macports@…

I had to clean gettext (sudo port clean gettext), and after that it wanted to build again.

comment:10 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: macports@… added

Is everyone on this ticket sure their ports were up to date? Had you run selfupdate lately? I thought I had already fixed this problem in r81158 last month; gettext should not have attempted to use a MacPorts-provided grep even if it existed.

comment:11 Changed 13 years ago by macports@…

I also have on old installation. I did a selfupdate, but also did not follow migration instructions at first (did not remove everything first). I do not remember exactly in what order i did everything after that. But since I would have appreciated to find out a bit sooner that a clean would suffice to fix it I decided to added it to this thread :-)

comment:12 Changed 13 years ago by me@…

Generally there is a problem when copied older installation.

To install grep u need gettext. ./configure uses grep, that's why, when gettext deleted it cant be recompiled. fix:

sudo port uninstall grep sudo port clean gettext sudo port install gettext

comment:13 in reply to:  12 Changed 13 years ago by me@…

sudo port uninstall grep

sudo port clean gettext

sudo port install gettext

comment:14 Changed 13 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:15 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:16 Changed 10 years ago by ja_macports@…

I had exactly the same problem while rebuilding after migrating to Yosemite.

Fix works!

Note: See TracTickets for help on using tickets.