Thursday, March 24, 2011

Alchemy + libjpeg (2)

Attacking the same monster again.

after probing a bit further with $ALCHEMY_HOME, i see that the gcc is ignoring my local lib and include directories.

Here is an output of the gcc -v ...


alc-on; gcc -v -swc -I/usr/local/include -L/usr/local/lib -ljpeg jpeg_sample_linker.c ; alc-off;
Using built-in specs.
Target: i686-apple-darwin8
Configured with: ../src/configure --prefix=/Users/lattner/2.1/llvm-gcc4.0-2.1.source/obj/../install --program-prefix=llvm- --enable-llvm=/Users/lattner/2.1/llvm-2.1 --enable-languages=c,c++,objc,obj-c++ --with-arch=nocona --with-tune=generic --build=i686-apple-darwin8 --host=i686-apple-darwin8 --target=i686-apple-darwin8 --with-gxx-include-dir=/usr/include/c++/4.0.0
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5449)(LLVM build 2.1)
 /Library/alchemy-darwin-v0.5a/bin/llvm-gcc4-darwin-install/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/cc1 -quiet -nostdinc -v -I/Library/alchemy-darwin-v0.5a/avm2-libc/include -I/Library/alchemy-darwin-v0.5a/usr/local/include -I/Library/alchemy-darwin-v0.5a/usr/local/include -iprefix /Library/alchemy-darwin-v0.5a/bin/llvm-gcc4-darwin-install/bin/../lib/gcc/i686-apple-darwin8/4.0.1/ -D__DYNAMIC__ -include /Library/alchemy-darwin-v0.5a/avm2-libc/avm2/AVM2Env.h jpeg_sample_linker.c -emit-llvm-bc -o /var/folders/Gc/GcsfwfKvHz4ln8pYZNe0RU+++TM/-Tmp-//cc2JJZbX.o -fPIC -quiet -dumpbase jpeg_sample_linker.c -mmacosx-version-min=10.6.6 -mtune=generic -march=nocona -auxbase jpeg_sample_linker -version
ignoring nonexistent directory "/Library/alchemy-darwin-v0.5a/usr/local/include"
ignoring nonexistent directory "/Library/alchemy-darwin-v0.5a/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
 /Library/alchemy-darwin-v0.5a/avm2-libc/include
End of search list.
GNU C version 4.0.1 (Apple Computer, Inc. build 5449)(LLVM build 2.1) (i686-apple-darwin8)
compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5449)(LLVM build ).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 94b5292347af0582283c78d591f83b23
jpeg_sample_linker.c:4:21: error: jpeglib.h: No such file or directory


alc's gcc clearly ignored my local lib and include directories.. :/

No comments:

Post a Comment