[PyPy-issue] [issue537] pypy-c doesn't build under MacOS X - libintl.h missing

Gabriel Lavoie pypy-dev-issue at codespeak.net
Mon May 17 21:04:30 CEST 2010


New submission from Gabriel Lavoie <glavoie at mutehq.net>:

I included a patch that adds MacPorts include directory. gettext can be easily
installed with MacPorts.

Build log:

[platform:ERROR]
/var/folders/8d/8dvcI67DFeSGEsoJ6d6n9E+++TI/-Tmp-/usession-trunk-0/platcheck_26.c:22:21:
error: libintl.h: No such file or directory
[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "translate.py", line 264, in main
[translation:ERROR]     default_goal='compile')
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/translator/driver.py",
line 813, in from_targetspec
[translation:ERROR]     spec = target(driver, args)
[translation:ERROR]    File "targetpypystandalone.py", line 222, in target
[translation:ERROR]     return self.get_entry_point(config)
[translation:ERROR]    File "targetpypystandalone.py", line 232, in get_entry_point
[translation:ERROR]     space = make_objspace(config)
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/tool/option.py", line
48, in make_objspace
[translation:ERROR]     space = Space(config)
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/interpreter/baseobjspace.py",
line 267, in __init__
[translation:ERROR]     self.initialize()
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/objspace/std/objspace.py",
line 82, in initialize
[translation:ERROR]     self.setup_builtin_modules()
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/interpreter/baseobjspace.py",
line 528, in setup_builtin_modules
[translation:ERROR]     self.getbuiltinmodule('sys')
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/interpreter/baseobjspace.py",
line 382, in getbuiltinmodule
[translation:ERROR]     mod.init(self)
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/interpreter/mixedmodule.py",
line 30, in init
[translation:ERROR]     Module.init(self, space)
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/interpreter/module.py", line
30, in init
[translation:ERROR]     self.startup(space)
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/module/sys/__init__.py",
line 90, in startup
[translation:ERROR]     from pypy.module.sys.interp_encoding import
_getfilesystemencoding
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/module/sys/interp_encoding.py",
line 2, in <module>
[translation:ERROR]     from pypy.rlib import rlocale
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/rlib/rlocale.py", line
127, in <module>
[translation:ERROR]     for k, v in platform.configure(CConfig).items():
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/rpython/tool/rffi_platform.py",
line 191, in configure
[translation:ERROR]     infolist = list(run_example_code(writer.path, eci))
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/rpython/tool/rffi_platform.py",
line 636, in run_example_code
[translation:ERROR]     output = build_executable_cache(files, eci)
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/tool/gcc_cache.py",
line 22, in build_executable_cache
[translation:ERROR]     result = platform.execute(platform.compile(c_files, eci))
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/translator/platform/__init__.py",
line 50, in compile
[translation:ERROR]     ofiles = self._compile_o_files(cfiles, eci, standalone)
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/translator/platform/__init__.py",
line 59, in _compile_o_files
[translation:ERROR]     ofiles.append(self._compile_c_file(self.cc, cfile,
compile_args))
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/translator/platform/posix.py",
line 36, in _compile_c_file
[translation:ERROR]     cwd=str(cfile.dirpath()))
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/translator/platform/__init__.py",
line 101, in _execute_c_compiler
[translation:ERROR]     self._handle_error(returncode, stderr, stdout, outname)
[translation:ERROR]    File
"/Users/wildchild/Documents/Programmation/pypy-trunk/pypy/translator/platform/__init__.py",
line 110, in _handle_error
[translation:ERROR]     raise CompilationError(stdout, stderr)
[translation:ERROR]  CompilationError: <CompilationError
err='/var/folders/8d/8dvcI67DFeSGEsoJ6d6n9E+++TI/-Tmp-/usession-trunk-0/platcheck_26.c:22:21:
error: libintl.h: No such file or directory\n'>

----------
effort: ???
files: rlocale.py.patch
messages: 1738
nosy: pypy-issue, wildchild
priority: bug
release: ???
status: unread
title: pypy-c doesn't build under MacOS X - libintl.h missing

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue537>
_______________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rlocale.py.patch
Type: application/octet-stream
Size: 762 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-issue/attachments/20100517/5b6a7ef6/attachment.obj>


More information about the Pypy-issue mailing list