Trouble compiling Taucs under Ubuntu 12.04

617 views
Skip to first unread message

Andrew Somorjai

unread,
Oct 24, 2012, 4:48:16 AM10/24/12
to matrixpr...@googlegroups.com
I tried compiling taucs_full under ubuntu and I'm getting the following errors. I first ran ./configure and I did this
several times so now it just says its up to date but running make stops around the part where the include files aren't
adequate even though I have stl, gcc, etc... installed. Any suggestions would be nice.

x@x:~/taucs_full$ ./configure

make: `configurator/configurator' is up to date.


x@x:~/taucs_full$ make

cc -c -O3 -Wall -Werror -std=c99 -DMACHTYPE_ -I src/ -I build/linux/ -I external/src/ \

progs/taucs_blas_underscore_test.c \

-oobj/linux/taucs_blas_underscore_test.o

cc \

-oobj/linux/taucs_blas_underscore_test \

obj/linux/taucs_blas_underscore_test.o -L external/lib/linux -llapack -L external/lib/linux -lf77blas -lcblas -latlas -L external/lib/linux -lmetis -lg2c -lm

/usr/bin/ld: cannot find -lg2c

collect2: ld returned 1 exit status

make: [build/linux/taucs_config_tests.h] Error 1 (ignored)

obj/linux/taucs_blas_underscore_test build/linux/taucs_config_tests.h

make: obj/linux/taucs_blas_underscore_test: Command not found

make: [build/linux/taucs_config_tests.h] Error 127 (ignored)

cc -c -O3 -Wall -Werror -std=c99 -DMACHTYPE_ -I src/ -I build/linux/ -I external/src/ \

progs/taucs_blas_nounderscore_test.c \

-oobj/linux/taucs_blas_nounderscore_test.o

cc \

-oobj/linux/taucs_blas_nounderscore_test \

obj/linux/taucs_blas_nounderscore_test.o -L external/lib/linux -llapack -L external/lib/linux -lf77blas -lcblas -latlas -L external/lib/linux -lmetis -lg2c -lm

/usr/bin/ld: cannot find -lg2c

collect2: ld returned 1 exit status

make: [build/linux/taucs_config_tests.h] Error 1 (ignored)

obj/linux/taucs_blas_nounderscore_test build/linux/taucs_config_tests.h

make: obj/linux/taucs_blas_nounderscore_test: Command not found

make: [build/linux/taucs_config_tests.h] Error 127 (ignored)

cc -c -O3 -Wall -Werror -std=c99 -DMACHTYPE_ -I src/ -I build/linux/ -I external/src/ \

progs/taucs_c99_complex_test.c \

-oobj/linux/taucs_c99_complex_test.o

In file included from progs/taucs_c99_complex_test.c:9:0:

/usr/local/include/complex.h:10:1: error: unknown type name ‘using’

/usr/local/include/complex.h:10:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘std’

/usr/local/include/complex.h:13:17: fatal error: cmath: No such file or directory

compilation terminated.

make: [build/linux/taucs_config_tests.h] Error 1 (ignored)

cc \

-oobj/linux/taucs_c99_complex_test \

obj/linux/taucs_c99_complex_test.o -L external/lib/linux -llapack -L external/lib/linux -lf77blas -lcblas -latlas -L external/lib/linux -lmetis -lg2c -lm

cc: error: obj/linux/taucs_c99_complex_test.o: No such file or directory

make: [build/linux/taucs_config_tests.h] Error 1 (ignored)

obj/linux/taucs_c99_complex_test build/linux/taucs_config_tests.h

make: obj/linux/taucs_c99_complex_test: Command not found

make: [build/linux/taucs_config_tests.h] Error 127 (ignored)

cc -c -O3 -Wall -Werror -std=c99 -DMACHTYPE_ -I src/ -I build/linux/ -I external/src/ \

progs/taucs_cilk_test.c \

-oobj/linux/taucs_cilk_test.o

progs/taucs_cilk_test.c:8:19: fatal error: cilk.h: No such file or directory

compilation terminated.

make: [build/linux/taucs_config_tests.h] Error 1 (ignored)

cc \

-oobj/linux/taucs_cilk_test \

obj/linux/taucs_cilk_test.o -L external/lib/linux -llapack -L external/lib/linux -lf77blas -lcblas -latlas -L external/lib/linux -lmetis -lg2c -lm

cc: error: obj/linux/taucs_cilk_test.o: No such file or directory

make: [build/linux/taucs_config_tests.h] Error 1 (ignored)

obj/linux/taucs_cilk_test build/linux/taucs_config_tests.h

make: obj/linux/taucs_cilk_test: Command not found

make: [build/linux/taucs_config_tests.h] Error 127 (ignored)

cc -c -O3 -Wall -Werror -std=c99 -DMACHTYPE_ -I src/ -I build/linux/ -I external/src/ \

-DTAUCS_CORE_GENERAL \

src/taucs_sn_llt.c \

-oobj/linux/taucs_sn_llt.o

In file included from src/taucs_sn_llt.c:13:0:

src/taucs.h:6:32: fatal error: taucs_config_tests.h: No such file or directory

compilation terminated.

make: *** [obj/linux/taucs_sn_llt.o] Error 1 

Evgenii Rudnyi

unread,
Oct 28, 2012, 2:40:48 PM10/28/12
to matrixpr...@googlegroups.com
On 24.10.2012 10:48 Andrew Somorjai said the following:
> I tried compiling taucs_full under ubuntu and I'm getting the
> following errors. I first ran ./configure and I did this several
> times so now it just says its up to date but running make stops
> around the part where the include files aren't adequate even though I
> have stl, gcc, etc... installed. Any suggestions would be nice.
>
> x@x:~/taucs_full$ ./configure
>
> make: `configurator/configurator' is up to date.
>
>
> x@x:~/taucs_full$ make
>
> cc -c -O3 -Wall -Werror -std=c99 -DMACHTYPE_ -I src/ -I build/linux/
> -I external/src/ \
>
> progs/taucs_blas_underscore_test.c \
>
> -oobj/linux/taucs_blas_underscore_test.o
>
> cc \
>
> -oobj/linux/taucs_blas_underscore_test \
>
> obj/linux/taucs_blas_underscore_test.o -L external/lib/linux -llapack
> -L external/lib/linux -lf77blas -lcblas -latlas -L external/lib/linux
> -lmetis -lg2c -lm
>
> /usr/bin/ld: cannot find -lg2c
>

TAUCS expects to find g2c and I guess you use already gcc 4 where they
use gfortran instead of g77. You have two choices. Either you find g2c.a
and insert it to the path or you have to compile ATLAS with gcc 4 and
then use -lgfortran istead of -lg2c.

Everything is changing but TAUCS remains the same.

Evgenii
Reply all
Reply to author
Forward
0 new messages