Build problem with Bitstring 2.0.3

50 views
Skip to first unread message

Phil Tomson

unread,
Mar 10, 2012, 4:09:31 PM3/10/12
to bitstring
I was trying to install this via godi, but kept getting this error:


> gcc -Wall -Werror -fPIC -I. -I/home/phil/godi-3.12.1.0/lib/ocaml/std-lib linux64 -c -o bitstring_c.o bitstring_c.c
> gcc: linux64: No such file or directory
> make[7]: *** [bitstring_c.o] Error 1

The problem is that extra 'linux64' in the gcc command.

I thought this could be some kind of godi problem, so I downloaded the
tar file: ocaml-bitstring-2.0.3.tar.gz

untarred it, ran configure and then make and I get the same thing:

gcc -g -O2 -Wall -Werror -fPIC -I. -I/home/phil/godi-3.12.1.0/lib/
ocaml/std-lib linux64 -c -o bitstring_c.o bitstring_c.c
gcc: linux64: No such file or directory
make: *** [bitstring_c.o] Error 1

...so that same extra 'linux64'...

Not sure where that's coming from.

Phil

Phil Tomson

unread,
Mar 10, 2012, 7:41:34 PM3/10/12
to bitstring
OK, there seems to be a bit too much make magic for building
bitstring_c.o. I confirmed that the 'linux64' string wasn't in the
CFLAGS. So it seems there are some strange implicit make rules being
invoked to build bitstring_c.o.

I added an explicit rule to the Makefile:

bitstring_c.o: bitstring_c.c
$(CC) $(CFLAGS) -c $^

And it builds fine. I'd suggest adding that to the Makefile.in.

BTW: I'm on Linux Mint (which is basically Ubuntu 11.04) 64 bit.


Phil
Reply all
Reply to author
Forward
0 new messages