Paste: vm build fails on linux amd64

Author: vcgomes
Mode: text
Date: Thu, 26 Mar 2009 17:39:09
Plain Text |
make `./build-support/factor.sh make-target`
factor-word-size.c: In function ‘main’:
factor-word-size.c:2: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
make[1]: Entering directory `/home/vinicius/code/factor'
make factor factor-ffi-test CONFIG=vm/Config.linux.x86.64
make[2]: Entering directory `/home/vinicius/code/factor'
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/os-unix.o vm/os-unix.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/os-genunix.o vm/os-genunix.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/os-linux.o vm/os-linux.c
gcc -x assembler-with-cpp -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/cpu-x86.64.o vm/cpu-x86.64.S
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/alien.o vm/alien.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/bignum.o vm/bignum.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/callstack.o vm/callstack.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/code_block.o vm/code_block.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/code_gc.o vm/code_gc.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/code_heap.o vm/code_heap.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/data_gc.o vm/data_gc.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/data_heap.o vm/data_heap.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/debug.o vm/debug.c
vm/debug.c: In function ‘factorbug’:
vm/debug.c:414: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/errors.o vm/errors.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/factor.o vm/factor.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/image.o vm/image.c
vm/image.c: In function ‘load_image’:
vm/image.c:89: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
vm/image.c: In function ‘save_image’:
vm/image.c:148: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/io.o vm/io.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/math.o vm/math.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/primitives.o vm/primitives.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/profiler.o vm/profiler.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/quotations.o vm/quotations.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/run.o vm/run.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/types.o vm/types.c
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/utilities.o vm/utilities.c
vm/utilities.c: In function ‘read_cell_hex’:
vm/utilities.c:53: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/main-unix.o vm/main-unix.c
ar rcs libfactor.a vm/os-unix.o vm/os-genunix.o vm/os-linux.o vm/cpu-x86.64.o vm/alien.o vm/bignum.o vm/callstack.o vm/code_block.o vm/code_gc.o vm/code_heap.o vm/data_gc.o vm/data_heap.o vm/debug.o vm/errors.o vm/factor.o vm/image.o vm/io.o vm/math.o vm/primitives.o vm/profiler.o vm/quotations.o vm/run.o vm/types.o vm/utilities.o
gcc -ldl -lm -lpthread -lpango-1.0 -lpangocairo-1.0 -lcairo -lglib-2.0 -lgobject-2.0 -lGL -lGLU -lX11 -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L. -Wl,--whole-archive -lfactor -Wl,-no-whole-archive \
                -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o factor vm/main-unix.o
gcc -c -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -o vm/ffi_test.o vm/ffi_test.c
gcc -L/usr/X11R6/lib64 -L/usr/X11R6/lib -Wall -O3  -fomit-frame-pointer -export-dynamic -DFACTOR_64 -fPIC -shared -o libfactor-ffi-test.a vm/ffi_test.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: vm/ffi_test.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
vm/ffi_test.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [factor-ffi-test] Error 1
make[2]: Leaving directory `/home/vinicius/code/factor'
make[1]: *** [linux-x86-64] Error 2
make[1]: Leaving directory `/home/vinicius/code/factor'
make: *** [default] Error 2

New Annotation

Summary:
Author:
Mode:
Body: