Problem linking 64 Bit library when 32 bit one is available PyPy 1.9

I am trying to build PyPy 1.9 from source, but getting an error message: [platform:Error] /usr/bin/ld: warning: i386 architecture of input file `/usr/lib/libcrypto.a(cversion.o)' is incompatible with i386:x86-64 output I have this: -L/usr/lib64/ in LDFLAGS and the gcc line is: [platform:execute] gcc /tmp/usession-release-1.9-11/platcheck_8.o -pthread -L/usr/lib64/ -L/contrib/libffi-3.0.11/lib/ /usr/lib/libssl.a /usr/lib/libcrypto.a -lz -lrt -o /tmp/usession-release-1.9-11/platcheck_8 In fact the correct libcrypto.a library would be /usr/lib64/libcrypto.a and it is installed on the system. I have seen this IRC log: http://tismerysoft.de/pypy/irc-logs/pypy/pypy.2010-10-30.log.html but I there is no makefile in /tmp/usession-release-1.9-xx/ and I don't have root access so I can't use a chroot environment. thanks! Cameron -- Cameron Sparr SIParCS Intern NCAR \ CISL \ User Services Section (USS) phone: 303-497-2443 mobile: 503-327-5964 email: csparr@ucar.edu

Hi Cameron, hi Amaury, On Thu, Jun 14, 2012 at 11:19 PM, Amaury Forgeot d'Arc <amauryfa@gmail.com> wrote:
2012/6/14 Cameron Sparr <csparr@ucsd.edu>
but I there is no makefile in /tmp/usession-release-1.9-xx/
Actually the Makefile is in the testing_1 subdirectory.
Not yet: I would guess that this crash occurs at the start of translation. The hard-coded paths /usr/lib/lib{ssl,crypto}.a come from pypy/rlib/ropenssl.py; see and fix them here. It's a hack, but a needed one to avoid the infinite amount of troubles distributing Linux binaries on systems which can have either openssl0.9.8 or openssl1.0.0. A bientôt, Armin.
participants (3)
-
Amaury Forgeot d'Arc
-
Armin Rigo
-
Cameron Sparr