Re: [ooc-compiler] Building oo2c problem
Brought to you by:
mva
|
From: August K. <fus...@gm...> - 2016-08-09 13:07:22
|
On 2016-08-08 04:25, Patrick Fitzpatrick wrote: > Now I'm getting this error: > > > /usr/bin/ld: obj/OOC/IR/ConstFold.o: undefined reference to symbol 'floor@@GLIBC_2.2.5' > //lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line > collect2: error: ld returned 1 exit status > make: *** [bin/oo2c] Error 1 > > > Anybody able to give me a direction to start looking? The file PROBLEMS in the top directory contains this paragraph: (Static Linking with libtool 1.5.6) Building a statically linked program with `--ldflags "-all-static"' may fail due to unresolved symbols from the math library, like floor(). The reason for this is that libtool somehow drops the dependency of liboo2c on libm. As a workaround, locate the installed libtool file liboo2c.la and add `-lm' to the beginning of the variable `dependency_libs'. However, I cannot find liboo2c.la even after `make all'. Maybe you can add `-lm` to some other configuration file. -- August |