Ticket #34131 (closed defect: fixed)
pypy doesn't build
| Reported by: | darius@… | Owned by: | jmr@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | lion | Cc: | |
| Port: | pypy |
Description
pypy fails to build on my MBP running Lion.
Attachments
Change History
comment:1 Changed 13 months ago by ryandesign@…
- Owner changed from macports-tickets@… to jmr@…
- Port set to pypy
comment:2 Changed 13 months ago by macsforever2000@…
In the future, please fill in the Port field and Cc the port maintainer(s).
The error appears to be the following:
:info:build [translation:ERROR] Undefined symbols for architecture x86_64: :info:build [translation:ERROR] "_libintl_textdomain", referenced from: :info:build [translation:ERROR] _pypy_g_textdomain in module__locale_interp_locale.o :info:build [translation:ERROR] _pypy_g_textdomain__arrayPtr_star_1 in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] "_libintl_dgettext", referenced from: :info:build [translation:ERROR] _pypy_g_dgettext__arrayPtr_arrayPtr_star_2 in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] _pypy_g_dgettext__NoneConst_arrayPtr_star_2 in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] "_libintl_bindtextdomain", referenced from: :info:build [translation:ERROR] _pypy_g_bindtextdomain__arrayPtr_arrayPtr_star_2 in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] _pypy_g_bindtextdomain__arrayPtr_NoneConst_star_2 in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] "_libintl_gettext", referenced from: :info:build [translation:ERROR] _pypy_g_gettext__arrayPtr_star_1 in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] "_libintl_bind_textdomain_codeset", referenced from: :info:build [translation:ERROR] _pypy_g_bind_textdomain_codeset__arrayPtr_arrayPtr_star_ in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] _pypy_g_bind_textdomain_codeset__arrayPtr_NoneConst_star in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] "_libintl_dcgettext", referenced from: :info:build [translation:ERROR] _pypy_g_dcgettext__arrayPtr_arrayPtr_INT_star_3 in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] _pypy_g_dcgettext__NoneConst_arrayPtr_INT_star_3 in rpython_lltypesystem_rffi.o :info:build [translation:ERROR] "_libintl_setlocale", referenced from: :info:build [translation:ERROR] _pypy_g_setlocale_1 in rlib_rlocale.o :info:build [translation:ERROR] ld: symbol(s) not found for architecture x86_64 :info:build [translation:ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build [translation:ERROR] make: *** [pypy-c] Error 1
But it was not a complete log. Please clean the port and attach the complete log if it fails again.
comment:3 Changed 13 months ago by jmr@…
The buildbot reproduced this, but there's nothing obvious in the log to suggest why it happens. It's fine on 10.6. I don't have a Lion machine with enough RAM to build pypy.
comment:5 Changed 12 months ago by sean.michael.farley@…
The issue is that libintl (port:gettext) is not found / linked. Running the linking commands by hand while adding the -lintl flag fixes the undefined symbols. Some googling suggests that this is the issue:
and, indeed, changing the following:
-build.env PYPY_USESSION_DIR=${workpath}
+build.env PYPY_USESSION_DIR=${workpath} PYPY_LOCALBASE=${prefix}
fixes the build for me.

