I've encountered a problem building the 2.6.1 distribution from source: [translation:ERROR] /tmp/usession-release-2.6.1-0/platcheck_54.c:79:19: error: expat.h: No such file or directory I don't remember encountering this before, but most of my earlier builds were probably on Mac OS X. My guess is the error results from a non-standard expat location: % find /opt/TWWfsw/ -name 'expat.h' /opt/TWWfsw/libexpat20/include/expat.h I saw nothing about how to deal with this in the instructions. Searching the source, I saw no instances of things like LDFLAGS or CPPFLAGS which I'm used to using in other build environments. How do I specify these oddball locations to PyPy? I'm using OpenSuSE 12.2, which I doubt will work with any of the PyPy binaries. Would love to be proved incorrect though. Thx, Skip Montanaro
pypy should respect LDFLAGS and CFLAGS (but indeed not CPPFLAGS) On Mon, Aug 31, 2015 at 10:09 PM, Skip Montanaro <skip.montanaro@gmail.com> wrote:
I've encountered a problem building the 2.6.1 distribution from source:
[translation:ERROR] /tmp/usession-release-2.6.1-0/platcheck_54.c:79:19: error: expat.h: No such file or directory
I don't remember encountering this before, but most of my earlier builds were probably on Mac OS X.
My guess is the error results from a non-standard expat location:
% find /opt/TWWfsw/ -name 'expat.h' /opt/TWWfsw/libexpat20/include/expat.h
I saw nothing about how to deal with this in the instructions. Searching the source, I saw no instances of things like LDFLAGS or CPPFLAGS which I'm used to using in other build environments. How do I specify these oddball locations to PyPy?
I'm using OpenSuSE 12.2, which I doubt will work with any of the PyPy binaries. Would love to be proved incorrect though.
Thx,
Skip Montanaro
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
On Mon, Aug 31, 2015 at 3:16 PM, Maciej Fijalkowski <fijall@gmail.com> wrote:
pypy should respect LDFLAGS and CFLAGS (but indeed not CPPFLAGS)
Thanks. I gave that a try, but got the same error: blade% pwd /home/skipm/3rdParty/pypy-2.6.1-src/pypy/goal blade% LDFLAGS='-L /opt/TWWfsw/libexpat20/lib' CFLAGS='-I /opt/TWWfsw/libexpat20/Include' python ../../rpython/bin/rpython -Ojit targetpypystandalone ... lots of output elided ... [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I /opt/TWWfsw/libexpat20/Include /tmp/usession-release-2.6.1-2/platcheck_54.c -o /tmp/usession-release-2.6.1-2/platcheck_54.o ... [translation:ERROR] CompilationError: CompilationError(err=""" [translation:ERROR] /tmp/usession-release-2.6.1-2/platcheck_54.c:79:19: error: expat.h: No such file or directory [translation:ERROR] """) Skip
welll...... as you can see the C flag got passed through, so either you have a typo or something is off. You can see what sort of gcc invocation was there, so execute it and figure out why it's not working On Mon, Aug 31, 2015 at 10:47 PM, Skip Montanaro <skip.montanaro@gmail.com> wrote:
On Mon, Aug 31, 2015 at 3:16 PM, Maciej Fijalkowski <fijall@gmail.com> wrote:
pypy should respect LDFLAGS and CFLAGS (but indeed not CPPFLAGS)
Thanks. I gave that a try, but got the same error:
blade% pwd /home/skipm/3rdParty/pypy-2.6.1-src/pypy/goal blade% LDFLAGS='-L /opt/TWWfsw/libexpat20/lib' CFLAGS='-I /opt/TWWfsw/libexpat20/Include' python ../../rpython/bin/rpython -Ojit targetpypystandalone ... lots of output elided ... [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I /opt/TWWfsw/libexpat20/Include /tmp/usession-release-2.6.1-2/platcheck_54.c -o /tmp/usession-release-2.6.1-2/platcheck_54.o ... [translation:ERROR] CompilationError: CompilationError(err=""" [translation:ERROR] /tmp/usession-release-2.6.1-2/platcheck_54.c:79:19: error: expat.h: No such file or directory [translation:ERROR] """)
Skip
*sigh* I'm an idiot. That's what I get for trying to rush before headed out the office door. My apologies... Skip On Mon, Aug 31, 2015 at 4:04 PM, Maciej Fijalkowski <fijall@gmail.com> wrote:
welll...... as you can see the C flag got passed through, so either you have a typo or something is off. You can see what sort of gcc invocation was there, so execute it and figure out why it's not working
On Mon, Aug 31, 2015 at 10:47 PM, Skip Montanaro <skip.montanaro@gmail.com> wrote:
On Mon, Aug 31, 2015 at 3:16 PM, Maciej Fijalkowski <fijall@gmail.com> wrote:
pypy should respect LDFLAGS and CFLAGS (but indeed not CPPFLAGS)
Thanks. I gave that a try, but got the same error:
blade% pwd /home/skipm/3rdParty/pypy-2.6.1-src/pypy/goal blade% LDFLAGS='-L /opt/TWWfsw/libexpat20/lib' CFLAGS='-I /opt/TWWfsw/libexpat20/Include' python ../../rpython/bin/rpython -Ojit targetpypystandalone ... lots of output elided ... [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I /opt/TWWfsw/libexpat20/Include /tmp/usession-release-2.6.1-2/platcheck_54.c -o /tmp/usession-release-2.6.1-2/platcheck_54.o ... [translation:ERROR] CompilationError: CompilationError(err=""" [translation:ERROR] /tmp/usession-release-2.6.1-2/platcheck_54.c:79:19: error: expat.h: No such file or directory [translation:ERROR] """)
Skip
Hi Skip, On Mon, Aug 31, 2015 at 10:09 PM, Skip Montanaro <skip.montanaro@gmail.com> wrote:
I'm using OpenSuSE 12.2, which I doubt will work with any of the PyPy binaries. Would love to be proved incorrect though.
Additionally, you can use the portable Linux binaries provided by Squeaky. See "Linux binaries and common distributions" on http://pypy.org/download.html. A bientôt, Armin
participants (3)
-
Armin Rigo
-
Maciej Fijalkowski
-
Skip Montanaro