I want to install cilk on my linux machine, and in their directory they tell me to write: ./configure then make then make install to install the compiler on my machine, but when i type the make it gives a lot of messages, then at the end it gives me the following error:
Compilation Failed: 1 error, 0 warnings
Error: failed running cilk2c
make[2]: *** [fib.o] Error 1
make[2]: Leaving directory `/home/khaled/Desktop/cilk-5.4.6/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/khaled/Desktop/cilk-5.4.6'
make: *** [all] Error 2
I downloaded the cilk directory from here: [http://supertech.csail.mit.edu/cilk/][1]
Is there a way to make it work? Also, is there a way to install cilk on windows too?
NOTE: I dont know if this matters or not, but I'm running Ubuntu 11.10 on VirtualBox.
EDIT:
I got the whole prints that I got after typing make, but I couldnt get the whole thing becuase i think there was not enough room, anyway here is from the top till the end of the statements I got:
mv -f .deps/libcilk_p_la-cilk.Tpo .deps/libcilk_p_la-cilk.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-sched.lo -MD -MP -MF .deps/libcilk_p_la-sched.Tpo -c -o libcilk_p_la-sched.lo `test -f 'sched.c' || echo './'`sched.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-sched.lo -MD -MP -MF .deps/libcilk_p_la-sched.Tpo -c sched.c -fPIC -DPIC -o .libs/libcilk_p_la-sched.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-sched.lo -MD -MP -MF .deps/libcilk_p_la-sched.Tpo -c sched.c -o libcilk_p_la-sched.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-sched.Tpo .deps/libcilk_p_la-sched.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-hooks.lo -MD -MP -MF .deps/libcilk_p_la-hooks.Tpo -c -o libcilk_p_la-hooks.lo `test -f 'hooks.c' || echo './'`hooks.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-hooks.lo -MD -MP -MF .deps/libcilk_p_la-hooks.Tpo -c hooks.c -fPIC -DPIC -o .libs/libcilk_p_la-hooks.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-hooks.lo -MD -MP -MF .deps/libcilk_p_la-hooks.Tpo -c hooks.c -o libcilk_p_la-hooks.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-hooks.Tpo .deps/libcilk_p_la-hooks.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-stats.lo -MD -MP -MF .deps/libcilk_p_la-stats.Tpo -c -o libcilk_p_la-stats.lo `test -f 'stats.c' || echo './'`stats.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-stats.lo -MD -MP -MF .deps/libcilk_p_la-stats.Tpo -c stats.c -fPIC -DPIC -o .libs/libcilk_p_la-stats.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-stats.lo -MD -MP -MF .deps/libcilk_p_la-stats.Tpo -c stats.c -o libcilk_p_la-stats.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-stats.Tpo .deps/libcilk_p_la-stats.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-barrier.lo -MD -MP -MF .deps/libcilk_p_la-barrier.Tpo -c -o libcilk_p_la-barrier.lo `test -f 'barrier.c' || echo './'`barrier.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-barrier.lo -MD -MP -MF .deps/libcilk_p_la-barrier.Tpo -c barrier.c -fPIC -DPIC -o .libs/libcilk_p_la-barrier.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-barrier.lo -MD -MP -MF .deps/libcilk_p_la-barrier.Tpo -c barrier.c -o libcilk_p_la-barrier.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-barrier.Tpo .deps/libcilk_p_la-barrier.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-cmdline.lo -MD -MP -MF .deps/libcilk_p_la-cmdline.Tpo -c -o libcilk_p_la-cmdline.lo `test -f 'cmdline.c' || echo './'`cmdline.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-cmdline.lo -MD -MP -MF .deps/libcilk_p_la-cmdline.Tpo -c cmdline.c -fPIC -DPIC -o .libs/libcilk_p_la-cmdline.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-cmdline.lo -MD -MP -MF .deps/libcilk_p_la-cmdline.Tpo -c cmdline.c -o libcilk_p_la-cmdline.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-cmdline.Tpo .deps/libcilk_p_la-cmdline.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-internal-malloc.lo -MD -MP -MF .deps/libcilk_p_la-internal-malloc.Tpo -c -o libcilk_p_la-internal-malloc.lo `test -f 'internal-malloc.c' || echo './'`internal-malloc.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-internal-malloc.lo -MD -MP -MF .deps/libcilk_p_la-internal-malloc.Tpo -c internal-malloc.c -fPIC -DPIC -o .libs/libcilk_p_la-internal-malloc.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-internal-malloc.lo -MD -MP -MF .deps/libcilk_p_la-internal-malloc.Tpo -c internal-malloc.c -o libcilk_p_la-internal-malloc.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-internal-malloc.Tpo .deps/libcilk_p_la-internal-malloc.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-timing.lo -MD -MP -MF .deps/libcilk_p_la-timing.Tpo -c -o libcilk_p_la-timing.lo `test -f 'timing.c' || echo './'`timing.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-timing.lo -MD -MP -MF .deps/libcilk_p_la-timing.Tpo -c timing.c -fPIC -DPIC -o .libs/libcilk_p_la-timing.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-timing.lo -MD -MP -MF .deps/libcilk_p_la-timing.Tpo -c timing.c -o libcilk_p_la-timing.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-timing.Tpo .deps/libcilk_p_la-timing.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-invoke-main.lo -MD -MP -MF .deps/libcilk_p_la-invoke-main.Tpo -c -o libcilk_p_la-invoke-main.lo `test -f 'invoke-main.c' || echo './'`invoke-main.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-invoke-main.lo -MD -MP -MF .deps/libcilk_p_la-invoke-main.Tpo -c invoke-main.c -fPIC -DPIC -o .libs/libcilk_p_la-invoke-main.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-invoke-main.lo -MD -MP -MF .deps/libcilk_p_la-invoke-main.Tpo -c invoke-main.c -o libcilk_p_la-invoke-main.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-invoke-main.Tpo .deps/libcilk_p_la-invoke-main.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-malloc.lo -MD -MP -MF .deps/libcilk_p_la-malloc.Tpo -c -o libcilk_p_la-malloc.lo `test -f 'malloc.c' || echo './'`malloc.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-malloc.lo -MD -MP -MF .deps/libcilk_p_la-malloc.Tpo -c malloc.c -fPIC -DPIC -o .libs/libcilk_p_la-malloc.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-malloc.lo -MD -MP -MF .deps/libcilk_p_la-malloc.Tpo -c malloc.c -o libcilk_p_la-malloc.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-malloc.Tpo .deps/libcilk_p_la-malloc.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-debug.lo -MD -MP -MF .deps/libcilk_p_la-debug.Tpo -c -o libcilk_p_la-debug.lo `test -f 'debug.c' || echo './'`debug.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-debug.lo -MD -MP -MF .deps/libcilk_p_la-debug.Tpo -c debug.c -fPIC -DPIC -o .libs/libcilk_p_la-debug.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-debug.lo -MD -MP -MF .deps/libcilk_p_la-debug.Tpo -c debug.c -o libcilk_p_la-debug.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-debug.Tpo .deps/libcilk_p_la-debug.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-workers.lo -MD -MP -MF .deps/libcilk_p_la-workers.Tpo -c -o libcilk_p_la-workers.lo `test -f 'workers.c' || echo './'`workers.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-workers.lo -MD -MP -MF .deps/libcilk_p_la-workers.Tpo -c workers.c -fPIC -DPIC -o .libs/libcilk_p_la-workers.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-workers.lo -MD -MP -MF .deps/libcilk_p_la-workers.Tpo -c workers.c -o libcilk_p_la-workers.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-workers.Tpo .deps/libcilk_p_la-workers.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-mutex.lo -MD -MP -MF .deps/libcilk_p_la-mutex.Tpo -c -o libcilk_p_la-mutex.lo `test -f 'mutex.c' || echo './'`mutex.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-mutex.lo -MD -MP -MF .deps/libcilk_p_la-mutex.Tpo -c mutex.c -fPIC -DPIC -o .libs/libcilk_p_la-mutex.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -pthread -g -O2 -MT libcilk_p_la-mutex.lo -MD -MP -MF .deps/libcilk_p_la-mutex.Tpo -c mutex.c -o libcilk_p_la-mutex.o >/dev/null 2>&1
mv -f .deps/libcilk_p_la-mutex.Tpo .deps/libcilk_p_la-mutex.Plo
/bin/bash ../libtool --tag=CC --mode=link gcc -pthread -g -O2 -o libcilk.p.la -rpath /usr/local/lib libcilk_p_la-sysdep.lo libcilk_p_la-cilk.lo libcilk_p_la-sched.lo libcilk_p_la-hooks.lo libcilk_p_la-stats.lo libcilk_p_la-barrier.lo libcilk_p_la-cmdline.lo libcilk_p_la-internal-malloc.lo libcilk_p_la-timing.lo libcilk_p_la-invoke-main.lo libcilk_p_la-malloc.lo libcilk_p_la-debug.lo libcilk_p_la-workers.lo libcilk_p_la-mutex.lo -lm
gcc -shared .libs/libcilk_p_la-sysdep.o .libs/libcilk_p_la-cilk.o .libs/libcilk_p_la-sched.o .libs/libcilk_p_la-hooks.o .libs/libcilk_p_la-stats.o .libs/libcilk_p_la-barrier.o .libs/libcilk_p_la-cmdline.o .libs/libcilk_p_la-internal-malloc.o .libs/libcilk_p_la-timing.o .libs/libcilk_p_la-invoke-main.o .libs/libcilk_p_la-malloc.o .libs/libcilk_p_la-debug.o .libs/libcilk_p_la-workers.o .libs/libcilk_p_la-mutex.o -lm -pthread -Wl,-soname -Wl,libcilk.p.so.0 -o .libs/libcilk.p.so.0.0.0
(cd .libs && rm -f libcilk.p.so.0 && ln -s libcilk.p.so.0.0.0 libcilk.p.so.0)
(cd .libs && rm -f libcilk.p.so && ln -s libcilk.p.so.0.0.0 libcilk.p.so)
ar cru .libs/libcilk.p.a libcilk_p_la-sysdep.o libcilk_p_la-cilk.o libcilk_p_la-sched.o libcilk_p_la-hooks.o libcilk_p_la-stats.o libcilk_p_la-barrier.o libcilk_p_la-cmdline.o libcilk_p_la-internal-malloc.o libcilk_p_la-timing.o libcilk_p_la-invoke-main.o libcilk_p_la-malloc.o libcilk_p_la-debug.o libcilk_p_la-workers.o libcilk_p_la-mutex.o
ranlib .libs/libcilk.p.a
creating libcilk.p.la
(cd .libs && rm -f libcilk.p.la && ln -s ../libcilk.p.la libcilk.p.la)
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-sysdep.lo -MD -MP -MF .deps/libcilk_g_p_la-sysdep.Tpo -c -o libcilk_g_p_la-sysdep.lo `test -f 'sysdep.c' || echo './'`sysdep.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-sysdep.lo -MD -MP -MF .deps/libcilk_g_p_la-sysdep.Tpo -c sysdep.c -fPIC -DPIC -o .libs/libcilk_g_p_la-sysdep.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-sysdep.lo -MD -MP -MF .deps/libcilk_g_p_la-sysdep.Tpo -c sysdep.c -o libcilk_g_p_la-sysdep.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-sysdep.Tpo .deps/libcilk_g_p_la-sysdep.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-cilk.lo -MD -MP -MF .deps/libcilk_g_p_la-cilk.Tpo -c -o libcilk_g_p_la-cilk.lo `test -f 'cilk.c' || echo './'`cilk.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-cilk.lo -MD -MP -MF .deps/libcilk_g_p_la-cilk.Tpo -c cilk.c -fPIC -DPIC -o .libs/libcilk_g_p_la-cilk.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-cilk.lo -MD -MP -MF .deps/libcilk_g_p_la-cilk.Tpo -c cilk.c -o libcilk_g_p_la-cilk.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-cilk.Tpo .deps/libcilk_g_p_la-cilk.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-sched.lo -MD -MP -MF .deps/libcilk_g_p_la-sched.Tpo -c -o libcilk_g_p_la-sched.lo `test -f 'sched.c' || echo './'`sched.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-sched.lo -MD -MP -MF .deps/libcilk_g_p_la-sched.Tpo -c sched.c -fPIC -DPIC -o .libs/libcilk_g_p_la-sched.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-sched.lo -MD -MP -MF .deps/libcilk_g_p_la-sched.Tpo -c sched.c -o libcilk_g_p_la-sched.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-sched.Tpo .deps/libcilk_g_p_la-sched.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-hooks.lo -MD -MP -MF .deps/libcilk_g_p_la-hooks.Tpo -c -o libcilk_g_p_la-hooks.lo `test -f 'hooks.c' || echo './'`hooks.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-hooks.lo -MD -MP -MF .deps/libcilk_g_p_la-hooks.Tpo -c hooks.c -fPIC -DPIC -o .libs/libcilk_g_p_la-hooks.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-hooks.lo -MD -MP -MF .deps/libcilk_g_p_la-hooks.Tpo -c hooks.c -o libcilk_g_p_la-hooks.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-hooks.Tpo .deps/libcilk_g_p_la-hooks.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-stats.lo -MD -MP -MF .deps/libcilk_g_p_la-stats.Tpo -c -o libcilk_g_p_la-stats.lo `test -f 'stats.c' || echo './'`stats.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-stats.lo -MD -MP -MF .deps/libcilk_g_p_la-stats.Tpo -c stats.c -fPIC -DPIC -o .libs/libcilk_g_p_la-stats.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-stats.lo -MD -MP -MF .deps/libcilk_g_p_la-stats.Tpo -c stats.c -o libcilk_g_p_la-stats.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-stats.Tpo .deps/libcilk_g_p_la-stats.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-barrier.lo -MD -MP -MF .deps/libcilk_g_p_la-barrier.Tpo -c -o libcilk_g_p_la-barrier.lo `test -f 'barrier.c' || echo './'`barrier.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-barrier.lo -MD -MP -MF .deps/libcilk_g_p_la-barrier.Tpo -c barrier.c -fPIC -DPIC -o .libs/libcilk_g_p_la-barrier.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-barrier.lo -MD -MP -MF .deps/libcilk_g_p_la-barrier.Tpo -c barrier.c -o libcilk_g_p_la-barrier.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-barrier.Tpo .deps/libcilk_g_p_la-barrier.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-cmdline.lo -MD -MP -MF .deps/libcilk_g_p_la-cmdline.Tpo -c -o libcilk_g_p_la-cmdline.lo `test -f 'cmdline.c' || echo './'`cmdline.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-cmdline.lo -MD -MP -MF .deps/libcilk_g_p_la-cmdline.Tpo -c cmdline.c -fPIC -DPIC -o .libs/libcilk_g_p_la-cmdline.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-cmdline.lo -MD -MP -MF .deps/libcilk_g_p_la-cmdline.Tpo -c cmdline.c -o libcilk_g_p_la-cmdline.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-cmdline.Tpo .deps/libcilk_g_p_la-cmdline.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-internal-malloc.lo -MD -MP -MF .deps/libcilk_g_p_la-internal-malloc.Tpo -c -o libcilk_g_p_la-internal-malloc.lo `test -f 'internal-malloc.c' || echo './'`internal-malloc.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-internal-malloc.lo -MD -MP -MF .deps/libcilk_g_p_la-internal-malloc.Tpo -c internal-malloc.c -fPIC -DPIC -o .libs/libcilk_g_p_la-internal-malloc.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-internal-malloc.lo -MD -MP -MF .deps/libcilk_g_p_la-internal-malloc.Tpo -c internal-malloc.c -o libcilk_g_p_la-internal-malloc.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-internal-malloc.Tpo .deps/libcilk_g_p_la-internal-malloc.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-timing.lo -MD -MP -MF .deps/libcilk_g_p_la-timing.Tpo -c -o libcilk_g_p_la-timing.lo `test -f 'timing.c' || echo './'`timing.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-timing.lo -MD -MP -MF .deps/libcilk_g_p_la-timing.Tpo -c timing.c -fPIC -DPIC -o .libs/libcilk_g_p_la-timing.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-timing.lo -MD -MP -MF .deps/libcilk_g_p_la-timing.Tpo -c timing.c -o libcilk_g_p_la-timing.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-timing.Tpo .deps/libcilk_g_p_la-timing.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-invoke-main.lo -MD -MP -MF .deps/libcilk_g_p_la-invoke-main.Tpo -c -o libcilk_g_p_la-invoke-main.lo `test -f 'invoke-main.c' || echo './'`invoke-main.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-invoke-main.lo -MD -MP -MF .deps/libcilk_g_p_la-invoke-main.Tpo -c invoke-main.c -fPIC -DPIC -o .libs/libcilk_g_p_la-invoke-main.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-invoke-main.lo -MD -MP -MF .deps/libcilk_g_p_la-invoke-main.Tpo -c invoke-main.c -o libcilk_g_p_la-invoke-main.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-invoke-main.Tpo .deps/libcilk_g_p_la-invoke-main.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-malloc.lo -MD -MP -MF .deps/libcilk_g_p_la-malloc.Tpo -c -o libcilk_g_p_la-malloc.lo `test -f 'malloc.c' || echo './'`malloc.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-malloc.lo -MD -MP -MF .deps/libcilk_g_p_la-malloc.Tpo -c malloc.c -fPIC -DPIC -o .libs/libcilk_g_p_la-malloc.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-malloc.lo -MD -MP -MF .deps/libcilk_g_p_la-malloc.Tpo -c malloc.c -o libcilk_g_p_la-malloc.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-malloc.Tpo .deps/libcilk_g_p_la-malloc.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-debug.lo -MD -MP -MF .deps/libcilk_g_p_la-debug.Tpo -c -o libcilk_g_p_la-debug.lo `test -f 'debug.c' || echo './'`debug.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-debug.lo -MD -MP -MF .deps/libcilk_g_p_la-debug.Tpo -c debug.c -fPIC -DPIC -o .libs/libcilk_g_p_la-debug.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-debug.lo -MD -MP -MF .deps/libcilk_g_p_la-debug.Tpo -c debug.c -o libcilk_g_p_la-debug.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-debug.Tpo .deps/libcilk_g_p_la-debug.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-workers.lo -MD -MP -MF .deps/libcilk_g_p_la-workers.Tpo -c -o libcilk_g_p_la-workers.lo `test -f 'workers.c' || echo './'`workers.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-workers.lo -MD -MP -MF .deps/libcilk_g_p_la-workers.Tpo -c workers.c -fPIC -DPIC -o .libs/libcilk_g_p_la-workers.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-workers.lo -MD -MP -MF .deps/libcilk_g_p_la-workers.Tpo -c workers.c -o libcilk_g_p_la-workers.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-workers.Tpo .deps/libcilk_g_p_la-workers.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-mutex.lo -MD -MP -MF .deps/libcilk_g_p_la-mutex.Tpo -c -o libcilk_g_p_la-mutex.lo `test -f 'mutex.c' || echo './'`mutex.c
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-mutex.lo -MD -MP -MF .deps/libcilk_g_p_la-mutex.Tpo -c mutex.c -fPIC -DPIC -o .libs/libcilk_g_p_la-mutex.o
gcc -DHAVE_CONFIG_H -I. -I.. -DCILK_TIMING=1 -DCILK_STATS=1 -DCILK_CRITICAL_PATH=1 -DCILK_DEBUG=1 -pthread -g -O2 -MT libcilk_g_p_la-mutex.lo -MD -MP -MF .deps/libcilk_g_p_la-mutex.Tpo -c mutex.c -o libcilk_g_p_la-mutex.o >/dev/null 2>&1
mv -f .deps/libcilk_g_p_la-mutex.Tpo .deps/libcilk_g_p_la-mutex.Plo
/bin/bash ../libtool --tag=CC --mode=link gcc -pthread -g -O2 -o libcilk.g.p.la -rpath /usr/local/lib libcilk_g_p_la-sysdep.lo libcilk_g_p_la-cilk.lo libcilk_g_p_la-sched.lo libcilk_g_p_la-hooks.lo libcilk_g_p_la-stats.lo libcilk_g_p_la-barrier.lo libcilk_g_p_la-cmdline.lo libcilk_g_p_la-internal-malloc.lo libcilk_g_p_la-timing.lo libcilk_g_p_la-invoke-main.lo libcilk_g_p_la-malloc.lo libcilk_g_p_la-debug.lo libcilk_g_p_la-workers.lo libcilk_g_p_la-mutex.lo -lm
gcc -shared .libs/libcilk_g_p_la-sysdep.o .libs/libcilk_g_p_la-cilk.o .libs/libcilk_g_p_la-sched.o .libs/libcilk_g_p_la-hooks.o .libs/libcilk_g_p_la-stats.o .libs/libcilk_g_p_la-barrier.o .libs/libcilk_g_p_la-cmdline.o .libs/libcilk_g_p_la-internal-malloc.o .libs/libcilk_g_p_la-timing.o .libs/libcilk_g_p_la-invoke-main.o .libs/libcilk_g_p_la-malloc.o .libs/libcilk_g_p_la-debug.o .libs/libcilk_g_p_la-workers.o .libs/libcilk_g_p_la-mutex.o -lm -pthread -Wl,-soname -Wl,libcilk.g.p.so.0 -o .libs/libcilk.g.p.so.0.0.0
(cd .libs && rm -f libcilk.g.p.so.0 && ln -s libcilk.g.p.so.0.0.0 libcilk.g.p.so.0)
(cd .libs && rm -f libcilk.g.p.so && ln -s libcilk.g.p.so.0.0.0 libcilk.g.p.so)
ar cru .libs/libcilk.g.p.a libcilk_g_p_la-sysdep.o libcilk_g_p_la-cilk.o libcilk_g_p_la-sched.o libcilk_g_p_la-hooks.o libcilk_g_p_la-stats.o libcilk_g_p_la-barrier.o libcilk_g_p_la-cmdline.o libcilk_g_p_la-internal-malloc.o libcilk_g_p_la-timing.o libcilk_g_p_la-invoke-main.o libcilk_g_p_la-malloc.o libcilk_g_p_la-debug.o libcilk_g_p_la-workers.o libcilk_g_p_la-mutex.o
ranlib .libs/libcilk.g.p.a
creating libcilk.g.p.la
(cd .libs && rm -f libcilk.g.p.la && ln -s ../libcilk.g.p.la libcilk.g.p.la)
make[3]: Leaving directory `/home/khaled/Desktop/cilk-5.4.6/runtime'
make[2]: Leaving directory `/home/khaled/Desktop/cilk-5.4.6/runtime'
Making all in support
make[2]: Entering directory `/home/khaled/Desktop/cilk-5.4.6/support'
gcc -DHAVE_CONFIG_H -I. -I.. -I../runtime -DCILKHEADER_DIR="\"/usr/local/include/cilk\"" -DCILK2C_DIR="\"/usr/local/lib/cilk\"" -DLIBS_DIR="\"/usr/local/lib\"" -DLIBS2_DIR="\"/usr/local/lib/cilk\"" -g -O2 -MT cilkc-cilkc.o -MD -MP -MF .deps/cilkc-cilkc.Tpo -c -o cilkc-cilkc.o `test -f 'cilkc.c' || echo './'`cilkc.c
mv -f .deps/cilkc-cilkc.Tpo .deps/cilkc-cilkc.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../runtime -DCILKHEADER_DIR="\"/usr/local/include/cilk\"" -DCILK2C_DIR="\"/usr/local/lib/cilk\"" -DLIBS_DIR="\"/usr/local/lib\"" -DLIBS2_DIR="\"/usr/local/lib/cilk\"" -g -O2 -MT cilkc-make-temp-file.o -MD -MP -MF .deps/cilkc-make-temp-file.Tpo -c -o cilkc-make-temp-file.o `test -f 'make-temp-file.c' || echo './'`make-temp-file.c
mv -f .deps/cilkc-make-temp-file.Tpo .deps/cilkc-make-temp-file.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o cilkc cilkc-cilkc.o cilkc-make-temp-file.o -lm
mkdir .libs
gcc -g -O2 -o cilkc cilkc-cilkc.o cilkc-make-temp-file.o -lm
gcc -DHAVE_CONFIG_H -I. -I.. -I../runtime -DCILKHEADER_DIR="\"`(cd ..; pwd)`/runtime\"" -DCILK_RTSBUILD_DIR="\"`(cd ..; pwd)`/runtime\"" -DCILK2C_DIR="\"`(cd ..; pwd)`/cilk2c\"" -DLIBS_DIR="\"`(cd ..; pwd)`/runtime/.libs\"" -DLIBS2_DIR="\"`(cd ..; pwd)`/runtime\"" -g -O2 -MT cilkclocal-cilkc.o -MD -MP -MF .deps/cilkclocal-cilkc.Tpo -c -o cilkclocal-cilkc.o `test -f 'cilkc.c' || echo './'`cilkc.c
mv -f .deps/cilkclocal-cilkc.Tpo .deps/cilkclocal-cilkc.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../runtime -DCILKHEADER_DIR="\"`(cd ..; pwd)`/runtime\"" -DCILK_RTSBUILD_DIR="\"`(cd ..; pwd)`/runtime\"" -DCILK2C_DIR="\"`(cd ..; pwd)`/cilk2c\"" -DLIBS_DIR="\"`(cd ..; pwd)`/runtime/.libs\"" -DLIBS2_DIR="\"`(cd ..; pwd)`/runtime\"" -g -O2 -MT cilkclocal-make-temp-file.o -MD -MP -MF .deps/cilkclocal-make-temp-file.Tpo -c -o cilkclocal-make-temp-file.o `test -f 'make-temp-file.c' || echo './'`make-temp-file.c
mv -f .deps/cilkclocal-make-temp-file.Tpo .deps/cilkclocal-make-temp-file.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o cilkclocal cilkclocal-cilkc.o cilkclocal-make-temp-file.o -lm
gcc -g -O2 -o cilkclocal cilkclocal-cilkc.o cilkclocal-make-temp-file.o -lm
make[2]: Leaving directory `/home/khaled/Desktop/cilk-5.4.6/support'
Making all in examples
make[2]: Entering directory `/home/khaled/Desktop/cilk-5.4.6/examples'
../support/cilkclocal -DHAVE_CONFIG_H -I. -I.. -I../runtime -g -O2 -c -o hello.o hello.cilk
../support/cilkclocal -g -O2 -o hello hello.o -lm
../support/cilkclocal -DHAVE_CONFIG_H -I. -I.. -I../runtime -g -O2 -c -o fib.o fib.cilk
/usr/include/i386-li
I was having the same problem on Ubuntu 12.04 x86_64. Solved it by adding some values to the CFLAGS variable in the configure step,
./configure CFLAGS="-D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L"
Hopefully it will work for you too. Originally got the answer from here https://groups.google.com/forum/?fromgroups#!topic/comp.os.linux.development.apps/UiqFsaH69Aw
--xkcdcode
Related
I'm trying to install Git on a CentOS-7 server that I don't have root access to. I managed to get the source code for git, and did the following:
[som#jsClone git-1.8.3-rc1]make configure
<output omitted>
[som#jsClone git-1.8.3-rc1]./configure --prefix=$HOME/.local
<output omitted>
[som#jsClone git-1.8.3-rc1]$ make install
CC credential-store.o
In file included from credential-store.c:1:0:
cache.h:19:18: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^
compilation terminated.
make: *** [credential-store.o] Error 1
[som#jsClone git-1.8.3-rc1]$
So, to solve the error, I downloaded the source code for zlib, and extracted it to a folder $HOME/make_source/zlib. So currently it has the structure:
[som#jsClone ~]$ ls make_source/ -l
total 4820
drwxrwxr-x. 21 som som 12288 Jun 22 02:44 git-1.8.3-rc1
-rwxr-xr-x. 1 root root 4440451 Jun 22 02:13 git-1.8.3-rc1.tar.gz
lrwxrwxrwx. 1 som som 16 Jun 22 02:19 Shared -> /mnt/hgfs/Shared
drwxr-xr-x. 14 som som 4096 Jun 22 02:26 zlib-1.2.11
-rwxrwxr-x. 1 som som 467960 Jun 22 02:19 zlib-1.2.11.tar.xz
I installed zlib successfully with:
[som#jsClone zlib-1.2.11]make configure
<output omitted>
[som#jsClone zlib-1.2.11]$ ./configure --prefix=$HOME/.local
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.11 with gcc.
Checking for size_t... Yes.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
[som#jsClone zlib-1.2.11]$ make install
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o adler32.o adler32.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o crc32.o crc32.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o deflate.o deflate.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o infback.o infback.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inffast.o inffast.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inflate.o inflate.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inftrees.o inftrees.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o trees.o trees.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o zutil.o zutil.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o compress.o compress.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o uncompr.o uncompr.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzclose.o gzclose.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzlib.o gzlib.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzread.o gzread.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzwrite.o gzwrite.c
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/adler32.o adler32.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/crc32.o crc32.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/deflate.o deflate.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/infback.o infback.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inffast.o inffast.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inflate.o inflate.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inftrees.o inftrees.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/trees.o trees.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/zutil.o zutil.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/compress.o compress.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/uncompr.o uncompr.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzclose.o gzclose.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzlib.o gzlib.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzread.o gzread.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzwrite.o gzwrite.c
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o libz.so.1.2.11 adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo -lc
rm -f libz.so libz.so.1
ln -s libz.so.1.2.11 libz.so
ln -s libz.so.1.2.11 libz.so.1
rm -f /home/som/.local/lib/libz.a
cp libz.a /home/som/.local/lib
chmod 644 /home/som/.local/lib/libz.a
cp libz.so.1.2.11 /home/som/.local/lib
chmod 755 /home/som/.local/lib/libz.so.1.2.11
rm -f /home/som/.local/share/man/man3/zlib.3
cp zlib.3 /home/som/.local/share/man/man3
chmod 644 /home/som/.local/share/man/man3/zlib.3
rm -f /home/som/.local/lib/pkgconfig/zlib.pc
cp zlib.pc /home/som/.local/lib/pkgconfig
chmod 644 /home/som/.local/lib/pkgconfig/zlib.pc
rm -f /home/som/.local/include/zlib.h /home/som/.local/include/zconf.h
cp zlib.h zconf.h /home/som/.local/include
chmod 644 /home/som/.local/include/zlib.h /home/som/.local/include/zconf.h
[som#jsClone zlib-1.2.11]$
The $HOME/.local has the structure:
[som#jsClone ~]$ tree $HOME/.local
/home/som/.local
├── bin
├── include
│ ├── zconf.h
│ └── zlib.h
├── lib
│ ├── libz.a
│ ├── libz.so -> libz.so.1.2.11
│ ├── libz.so.1 -> libz.so.1.2.11
│ ├── libz.so.1.2.11
│ └── pkgconfig
│ └── zlib.pc
└── share
└── man
└── man3
└── zlib.3
7 directories, 8 files
So now that zlib is installed, I tried to build git again, specifying the location of the zlib.h file, but it doesn't work.
[som#jsClone git-1.8.3-rc1]$ make
CC credential-store.o
In file included from credential-store.c:1:0:
cache.h:19:18: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^
compilation terminated.
make: *** [credential-store.o] Error 1
How can I fix this?
I am trying to install yolo library in my windows 10 environment, After cloning the repository from This link and after installing the cygwin, I did try to make the source but got following error.
Error:
make: g++: Command not found
make: *** [Makefile:86: obj/image_opencv.o] Error 127
Complete log error
dell#DESKTOP-95PQT6E /cygdrive/d
$ git clone https://github.com/pjreddie/darknet
Cloning into 'darknet'...
remote: Enumerating objects: 5901, done.
remote: Total 5901 (delta 0), reused 0 (delta 0), pack-reused 5901
Receiving objects: 100% (5901/5901), 6.16 MiB | 78.00 KiB/s, done.
Resolving deltas: 100% (3916/3916), done.
dell#DESKTOP-95PQT6E /cygdrive/d
$ pwd
/cygdrive/d
dell#DESKTOP-95PQT6E /cygdrive/d
$ cd darknet/
dell#DESKTOP-95PQT6E /cygdrive/d/darknet
$ make
mkdir -p obj
mkdir -p backup
mkdir -p results
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/utils.c -o obj/utils.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/cuda.c -o obj/cuda.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/deconvolutional_layer.c -o obj/deconvolutional_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/convolutional_layer.c -o obj/convolutional_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/list.c -o obj/list.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/image.c -o obj/image.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/activations.c -o obj/activations.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/im2col.c -o obj/im2col.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/col2im.c -o obj/col2im.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/blas.c -o obj/blas.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/crop_layer.c -o obj/crop_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/dropout_layer.c -o obj/dropout_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/maxpool_layer.c -o obj/maxpool_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/softmax_layer.c -o obj/softmax_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/data.c -o obj/data.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/matrix.c -o obj/matrix.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/network.c -o obj/network.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/connected_layer.c -o obj/connected_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/cost_layer.c -o obj/cost_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/parser.c -o obj/parser.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/option_list.c -o obj/option_list.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/detection_layer.c -o obj/detection_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/route_layer.c -o obj/route_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/upsample_layer.c -o obj/upsample_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/box.c -o obj/box.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/normalization_layer.c -o obj/normalization_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/avgpool_layer.c -o obj/avgpool_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/layer.c -o obj/layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/local_layer.c -o obj/local_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/shortcut_layer.c -o obj/shortcut_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/logistic_layer.c -o obj/logistic_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/activation_layer.c -o obj/activation_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/rnn_layer.c -o obj/rnn_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gru_layer.c -o obj/gru_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/crnn_layer.c -o obj/crnn_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/demo.c -o obj/demo.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/batchnorm_layer.c -o obj/batchnorm_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/region_layer.c -o obj/region_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/reorg_layer.c -o obj/reorg_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/tree.c -o obj/tree.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/lstm_layer.c -o obj/lstm_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/l2norm_layer.c -o obj/l2norm_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/yolo_layer.c -o obj/yolo_layer.o
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/iseg_layer.c -o obj/iseg_layer.o
g++ -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/image_opencv.cpp -o obj/image_opencv.o
make: g++: Command not found
make: *** [Makefile:86: obj/image_opencv.o] Error 127
Makefile contents
GPU=1
CUDNN=0
OPENCV=0
OPENMP=0
DEBUG=0
ARCH= -gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_50,code=[sm_50,compute_50] \
-gencode arch=compute_52,code=[sm_52,compute_52]
# -gencode arch=compute_20,code=[sm_20,sm_21] \ This one is deprecated?
# This is what I use, uncomment if you know your arch and want to specify
# ARCH= -gencode arch=compute_52,code=compute_52
VPATH=./src/:./examples
SLIB=libdarknet.so
ALIB=libdarknet.a
EXEC=darknet
OBJDIR=./obj/
CC=gcc
CPP=g++
NVCC=nvcc
AR=ar
ARFLAGS=rcs
OPTS=-Ofast
LDFLAGS= -lm -pthread
COMMON= -Iinclude/ -Isrc/
CFLAGS=-Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC
ifeq ($(OPENMP), 1)
CFLAGS+= -fopenmp
endif
ifeq ($(DEBUG), 1)
OPTS=-O0 -g
endif
CFLAGS+=$(OPTS)
ifeq ($(OPENCV), 1)
COMMON+= -DOPENCV
CFLAGS+= -DOPENCV
LDFLAGS+= `pkg-config --libs opencv` -lstdc++
COMMON+= `pkg-config --cflags opencv`
endif
ifeq ($(GPU), 1)
COMMON+= -DGPU -I/usr/local/cuda/include/
CFLAGS+= -DGPU
LDFLAGS+= -L/usr/local/cuda/lib64 -lcuda -lcudart -lcublas -lcurand
endif
ifeq ($(CUDNN), 1)
COMMON+= -DCUDNN
CFLAGS+= -DCUDNN
Can somebody guide me how can I fix this error?
Since this error:
make: g++: Command not found
You need to install via cygwin a package named "g++". To do that you simply download the setup tool from cygwin official site then when it needs to install packages it will ask which packages do you want to install. In that list you find gcc-g++ and double click on skip button. Then continue the setup and try again.
We've decided to switch to using Node.js, and I'm trying to build out the GridDB Node.js client, but I'm getting a make error. I followed closely with the blog and the GitHub instructions. How can I fix this?
Here's the error code:
$ make
g++ -fPIC -std=c++0x -g -O2 -c -o src/TimeSeriesProperties.o -Iinclude -Isrc src/TimeSeriesProperties.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/ContainerInfo.o -Iinclude -Isrc src/ContainerInfo.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/AggregationResult.o -Iinclude -Isrc src/AggregationResult.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/Container.o -Iinclude -Isrc src/Container.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/Store.o -Iinclude -Isrc src/Store.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/StoreFactory.o -Iinclude -Isrc src/StoreFactory.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/PartitionController.o -Iinclude -Isrc src/PartitionController.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/Query.o -Iinclude -Isrc src/Query.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/QueryAnalysisEntry.o -Iinclude -Isrc src/QueryAnalysisEntry.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/RowKeyPredicate.o -Iinclude -Isrc src/RowKeyPredicate.cpp
g++ -fPIC -std=c++0x -g -O2 -c -o src/RowSet.o -Iinclude -Isrc src/RowSet.cpp
swig -DSWIGWORDSIZE64 -Ilibs/js/v8 -outdir . -o src/griddb_js.cxx -c++ -javascript -node src/griddb.i
g++ -fPIC -std=c++0x -g -O2 -Iinclude -Isrc -I/usr/include/node -DNODE_GYP_MODULE_NAME=griddb -DV8_DEPRECATION_WARNINGS=1 -DBUILDING_NODE_EXTENSION -c -o src/griddb_js.o src/griddb_js.cxx
src/griddb_js.cxx:171:18: fatal error: node.h: No such file or directory
#include <node.h>
^
compilation terminated.
make: *** [src/griddb_js.o] Error 1
src/griddb_js.cxx:171:18: fatal error: node.h: No such file or directory
#include <node.h>
The compiler can't find the "node.h" header file in any of the include paths ("/usr/include/node").
You need to install a "nodejs-devel" package that includes this header then re-run make.
After upgrading to Linux Kernel version 3.8.8, I noticed the FUSE module was not installed correctly. So I downloaded this fuse package(fuse-2.9.3), extracted it in the Downloads directory, configured it at the command line, then used the make install command and got the following error message:
DALEK fuse-2.9.3 # make V=1 install
Making install in include
make[1]: Entering directory `/home/zermacr0yd/Downloads/fuse-2.9.3/include'
make[2]: Entering directory `/home/zermacr0yd/Downloads/fuse-2.9.3/include'
make[2]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/usr/include/fuse'
/usr/bin/install -c -m 644 fuse.h fuse_compat.h fuse_common.h fuse_common_compat.h fuse_lowlevel.h fuse_lowlevel_compat.h fuse_opt.h cuse_lowlevel.h '/usr/include/fuse'
/bin/mkdir -p '/usr/include'
/usr/bin/install -c -m 644 old/fuse.h ulockmgr.h '/usr/include'
make[2]: Leaving directory `/home/zermacr0yd/Downloads/fuse-2.9.3/include'
make[1]: Leaving directory `/home/zermacr0yd/Downloads/fuse-2.9.3/include'
Making install in lib
make[1]: Entering directory `/home/zermacr0yd/Downloads/fuse-2.9.3/lib'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse.lo -MD -MP -MF .deps/fuse.Tpo -c -o fuse.lo fuse.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse.lo -MD -MP -MF .deps/fuse.Tpo -c fuse.c -fPIC -DPIC -o .libs/fuse.o
fuse.c:219:1: warning: missing braces around initializer [-Wmissing-braces]
fuse.c:219:1: warning: (near initialization for 'fuse_context_lock.__data') [-Wmissing-braces]
mv -f .deps/fuse.Tpo .deps/fuse.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_kern_chan.lo -MD -MP -MF .deps/fuse_kern_chan.Tpo -c -o fuse_kern_chan.lo fuse_kern_chan.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_kern_chan.lo -MD -MP -MF .deps/fuse_kern_chan.Tpo -c fuse_kern_chan.c -fPIC -DPIC -o .libs/fuse_kern_chan.o
mv -f .deps/fuse_kern_chan.Tpo .deps/fuse_kern_chan.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_loop.lo -MD -MP -MF .deps/fuse_loop.Tpo -c -o fuse_loop.lo fuse_loop.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_loop.lo -MD -MP -MF .deps/fuse_loop.Tpo -c fuse_loop.c -fPIC -DPIC -o .libs/fuse_loop.o
mv -f .deps/fuse_loop.Tpo .deps/fuse_loop.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_loop_mt.lo -MD -MP -MF .deps/fuse_loop_mt.Tpo -c -o fuse_loop_mt.lo fuse_loop_mt.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_loop_mt.lo -MD -MP -MF .deps/fuse_loop_mt.Tpo -c fuse_loop_mt.c -fPIC -DPIC -o .libs/fuse_loop_mt.o
mv -f .deps/fuse_loop_mt.Tpo .deps/fuse_loop_mt.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_lowlevel.lo -MD -MP -MF .deps/fuse_lowlevel.Tpo -c -o fuse_lowlevel.lo fuse_lowlevel.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_lowlevel.lo -MD -MP -MF .deps/fuse_lowlevel.Tpo -c fuse_lowlevel.c -fPIC -DPIC -o .libs/fuse_lowlevel.o
mv -f .deps/fuse_lowlevel.Tpo .deps/fuse_lowlevel.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_mt.lo -MD -MP -MF .deps/fuse_mt.Tpo -c -o fuse_mt.lo fuse_mt.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_mt.lo -MD -MP -MF .deps/fuse_mt.Tpo -c fuse_mt.c -fPIC -DPIC -o .libs/fuse_mt.o
mv -f .deps/fuse_mt.Tpo .deps/fuse_mt.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_opt.lo -MD -MP -MF .deps/fuse_opt.Tpo -c -o fuse_opt.lo fuse_opt.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_opt.lo -MD -MP -MF .deps/fuse_opt.Tpo -c fuse_opt.c -fPIC -DPIC -o .libs/fuse_opt.o
mv -f .deps/fuse_opt.Tpo .deps/fuse_opt.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_session.lo -MD -MP -MF .deps/fuse_session.Tpo -c -o fuse_session.lo fuse_session.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_session.lo -MD -MP -MF .deps/fuse_session.Tpo -c fuse_session.c -fPIC -DPIC -o .libs/fuse_session.o
mv -f .deps/fuse_session.Tpo .deps/fuse_session.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_signals.lo -MD -MP -MF .deps/fuse_signals.Tpo -c -o fuse_signals.lo fuse_signals.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fuse_signals.lo -MD -MP -MF .deps/fuse_signals.Tpo -c fuse_signals.c -fPIC -DPIC -o .libs/fuse_signals.o
mv -f .deps/fuse_signals.Tpo .deps/fuse_signals.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c -o buffer.lo buffer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT buffer.lo -MD -MP -MF .deps/buffer.Tpo -c buffer.c -fPIC -DPIC -o .libs/buffer.o
mv -f .deps/buffer.Tpo .deps/buffer.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT cuse_lowlevel.lo -MD -MP -MF .deps/cuse_lowlevel.Tpo -c -o cuse_lowlevel.lo cuse_lowlevel.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT cuse_lowlevel.lo -MD -MP -MF .deps/cuse_lowlevel.Tpo -c cuse_lowlevel.c -fPIC -DPIC -o .libs/cuse_lowlevel.o
mv -f .deps/cuse_lowlevel.Tpo .deps/cuse_lowlevel.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT helper.lo -MD -MP -MF .deps/helper.Tpo -c -o helper.lo helper.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT helper.lo -MD -MP -MF .deps/helper.Tpo -c helper.c -fPIC -DPIC -o .libs/helper.o
helper.c: In function 'fuse_daemonize':
helper.c:204:3: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/helper.Tpo .deps/helper.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT subdir.lo -MD -MP -MF .deps/subdir.Tpo -c -o subdir.lo `test -f 'modules/subdir.c' || echo './'`modules/subdir.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT subdir.lo -MD -MP -MF .deps/subdir.Tpo -c modules/subdir.c -fPIC -DPIC -o .libs/subdir.o
mv -f .deps/subdir.Tpo .deps/subdir.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT iconv.lo -MD -MP -MF .deps/iconv.Tpo -c -o iconv.lo `test -f 'modules/iconv.c' || echo './'`modules/iconv.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT iconv.lo -MD -MP -MF .deps/iconv.Tpo -c modules/iconv.c -fPIC -DPIC -o .libs/iconv.o
mv -f .deps/iconv.Tpo .deps/iconv.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT mount.lo -MD -MP -MF .deps/mount.Tpo -c -o mount.lo mount.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT mount.lo -MD -MP -MF .deps/mount.Tpo -c mount.c -fPIC -DPIC -o .libs/mount.o
mv -f .deps/mount.Tpo .deps/mount.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT mount_util.lo -MD -MP -MF .deps/mount_util.Tpo -c -o mount_util.lo mount_util.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -DFUSERMOUNT_DIR=\"/usr/bin\" -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT mount_util.lo -MD -MP -MF .deps/mount_util.Tpo -c mount_util.c -fPIC -DPIC -o .libs/mount_util.o
mv -f .deps/mount_util.Tpo .deps/mount_util.Plo
/bin/bash ../libtool --tag=CC --mode=link gcc -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -pthread -ldl -version-number 2:9:3 -Wl,--version-script,./fuse_versionscript -o libfuse.la -rpath /usr/lib fuse.lo fuse_kern_chan.lo fuse_loop.lo fuse_loop_mt.lo fuse_lowlevel.lo fuse_mt.lo fuse_opt.lo fuse_session.lo fuse_signals.lo buffer.lo cuse_lowlevel.lo helper.lo subdir.lo iconv.lo mount.lo mount_util.lo
libtool: link: gcc -shared -fPIC -DPIC .libs/fuse.o .libs/fuse_kern_chan.o .libs/fuse_loop.o .libs/fuse_loop_mt.o .libs/fuse_lowlevel.o .libs/fuse_mt.o .libs/fuse_opt.o .libs/fuse_session.o .libs/fuse_signals.o .libs/buffer.o .libs/cuse_lowlevel.o .libs/helper.o .libs/subdir.o .libs/iconv.o .libs/mount.o .libs/mount_util.o -ldl -O2 -pthread -Wl,--version-script -Wl,./fuse_versionscript -pthread -Wl,-soname -Wl,libfuse.so.2 -o .libs/libfuse.so.2.9.3
/usr/bin/ld: .libs/mount.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
.libs/mount.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [libfuse.la] Error 1
make[1]: Leaving directory `/home/zermacr0yd/Downloads/fuse-2.9.3/lib'
make: *** [install-recursive] Error
Now I recompiled and reconfigured using the command CFLAGS=-fPIC ./configure, then used the make install command again. This did not solve the problem. What I wonder is if the mount.o object that is created by the makefile is incompatible with my architecture. That is, this package is for 32bit architecture and my machine uses the x86_64 architecture. Anyone ever encountered this error before? Particularly with this package.
I think your problem is the same nature as the following (though not the FUSE part):
ffmpeg install on CentOS 64-bit 'install with -fPIC' error
and the answer as discussed in above, is also listed below:
http://ubuntuforums.org/showthread.php?t=786095&page=53&p=8080679#post8080679
and as shown in the CFLAGS below:
https://groups.google.com/forum/#!topic/harbour-devel/D4FqsmACKAU
it is not necessary "CFLAGS" itself too.
So as it turns out, this was actually not an architecture error whatsoever. Nor was it even a config error for that matter. The problem was in the Makefile which was doing a dynamic link against statically defined archives(case 4).
So the way I solved it was to add the "-static" flags to the LDFLAGS in the makefile and FINALLY IT WORKED. w00t!w00t!
=))
I struggled with this for almost 2 weeks. Finally I can get some rest.
My application can be compiled & linked successfully via GCC/G++ 4.4.7, which is shipped with CentOS 6.5.
I wanna static link libstdc++.a via -static-libstdc++ , but it is not supported by 4.4.7.
Hence I installed redhat-devtools-1.1 via the following command, upgraded GCC/G++ to 4.7.2
cd /etc/yum.repos.d
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++
Then compile my application with the new toolset, it fails
/opt/centos/devtoolset-1.1/root/usr/bin/c++ -m64 -c -O2 -Iinc -fPIC -MMD -MP -MF "AutoInit.o.d" -o AutoInit.o AutoInit.cpp
/opt/centos/devtoolset-1.1/root/usr/bin/gcc -m64 -c -O2 -D_LARGEFILE64_SOURCE=1 -Iinc -std=c99 -fPIC -MMD -MP -MF "common.o.d" -o common.o common.c
/opt/centos/devtoolset-1.1/root/usr/bin/gcc -m64 -c -O2 -D_LARGEFILE64_SOURCE=1 -Iinc -std=c99 -fPIC -MMD -MP -MF "rpc.o.d" -o rpc.o rpc.c
/opt/centos/devtoolset-1.1/root/usr/bin/gcc -m64 -c -O2 -D_LARGEFILE64_SOURCE=1 -Iinc -std=c99 -fPIC -MMD -MP -MF "transport_service.o.d" -o transport_service.o transport_service.c
/opt/centos/devtoolset-1.1/root/usr/bin/gcc -m64 -c -O2 -D_LARGEFILE64_SOURCE=1 -Iinc -std=c99 -fPIC -MMD -MP -MF "interop.o.d" -o interop.o interop.c
/opt/centos/devtoolset-1.1/root/usr/bin/gcc -m64 -c -O2 -D_LARGEFILE64_SOURCE=1 -Iinc -std=c99 -fPIC -MMD -MP -MF "utility.o.d" -o utility.o utility.c
/opt/centos/devtoolset-1.1/root/usr/bin/g++ -o libmq.so AutoInit.o common.o rpc.o transport_service.o interop.o utility.o -L./lib -l:libapr-1.a -l:libcurl.a -l:libjansson.a -static-libgcc -static-libstdc++ -Wl,--start-group -l:libzmq.a -l:libczmq.a -Wl,--end-group -shared -fPIC
/usr/bin/ld: /opt/centos/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/libstdc++.a(compatibility.o): relocation R_X86_64_32 against `_ZTIN10__cxxabiv115__forced_unwindE' can not be used when making a shared object; recompile with -fPIC
/opt/centos/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/libstdc++.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
Please do you know how to resolve this problem?
Likely libstdc++.a is compiled without -fPIC so ld prohibites building a shared object with it. http://eli.thegreenplace.net/2011/11/03/position-independent-code-pic-in-shared-libraries/ . Probably you need to recompile libstdc++.a yourself.