
Hi all,
Because I've had to build zlib away from its normal home, I need to pass -I to gcc (LD_LIBRARY_PATH doesn't work).
Setting this -I fixes my build issue:
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o /tmp/usession-release-2.3.1-3/platcheck_57.c:33:19: fatal error: bzlib.h: No such file or director
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/scratch/root/include /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o
Thanks, Joseph David Borġ josephb.org

NOTE: I am not a PyPy developer.
Looking at RPython's translator(rpython/translator/c/genc.py), can't you set the CFLAGSEXTRA environment variable with the extra flags?
On Thu, Jun 19, 2014 at 3:28 AM, Joe Borġ mail@jdborg.com wrote:
Hi all,
Because I've had to build zlib away from its normal home, I need to pass -I to gcc (LD_LIBRARY_PATH doesn't work).
Setting this -I fixes my build issue:
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o /tmp/usession-release-2.3.1-3/platcheck_57.c:33:19: fatal error: bzlib.h: No such file or director
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/scratch/root/include /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o
Thanks, Joseph David Borġ josephb.org
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Hi Joe
Isn't LIBRARY_PATH the proper variable for finding libraries at compile time ?
Cheers Romain
On 06/19, Joe Borġ wrote:
Hi all,
Because I've had to build zlib away from its normal home, I need to pass -I to gcc (LD_LIBRARY_PATH doesn't work).
Setting this -I fixes my build issue:
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o /tmp/usession-release-2.3.1-3/platcheck_57.c:33:19: fatal error: bzlib.h: No such file or director
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/scratch/root/include /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o
Thanks, Joseph David Borġ josephb.org
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

On Fri, Jun 20, 2014 at 1:48 AM, Romain Guillebert romain.py@gmail.com wrote:
Hi Joe
Isn't LIBRARY_PATH the proper variable for finding libraries at compile time ?
But isn't your problem finding the header files? (Thus -I.) ?
Cheers Romain
On 06/19, Joe Borġ wrote:
Hi all,
Because I've had to build zlib away from its normal home, I need to pass -I to gcc (LD_LIBRARY_PATH doesn't work).
Setting this -I fixes my build issue:
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o /tmp/usession-release-2.3.1-3/platcheck_57.c:33:19: fatal error: bzlib.h: No such file or director
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/scratch/root/include /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o
Thanks, Joseph David Borġ josephb.org
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Yes, sorry then the variable is CPATH (https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html)
On 06/20, Yichao Yu wrote:
On Fri, Jun 20, 2014 at 1:48 AM, Romain Guillebert romain.py@gmail.com wrote:
Hi Joe
Isn't LIBRARY_PATH the proper variable for finding libraries at compile time ?
But isn't your problem finding the header files? (Thus -I.) ?
Cheers Romain
On 06/19, Joe Borġ wrote:
Hi all,
Because I've had to build zlib away from its normal home, I need to pass -I to gcc (LD_LIBRARY_PATH doesn't work).
Setting this -I fixes my build issue:
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o /tmp/usession-release-2.3.1-3/platcheck_57.c:33:19: fatal error: bzlib.h: No such file or director
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/scratch/root/include /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o
Thanks, Joseph David Borġ josephb.org
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

bzlib is library for bzip2 archives. it's not zlib which You mentioned in first sentence.
2014-06-19 10:28 GMT+02:00 Joe Borġ mail@jdborg.com:
Hi all,
Because I've had to build zlib away from its normal home, I need to pass -I to gcc (LD_LIBRARY_PATH doesn't work).
Setting this -I fixes my build issue:
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o /tmp/usession-release-2.3.1-3/platcheck_57.c:33:19: fatal error: bzlib.h: No such file or director
gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/scratch/root/include /tmp/usession-release-2.3.1-3/platcheck_57.c -o /tmp/usession-release-2.3.1-3/platcheck_57.o
Thanks, Joseph David Borġ josephb.org
pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
participants (5)
-
Joe Borġ
-
Piotr Skamruk
-
Romain Guillebert
-
Ryan Gonzalez
-
Yichao Yu