Hello Markus,
I got it and tried to build the library. I'll use it for ARM processor, so I use arm-elf-gcc (2.95.3) and arm-elf-gpc (20021111). My Linux box lives on 2.4.27-rc3 kernel. I met the following problems:
1. Firstly, I have configured it using
export CC=arm-elf-gcc export CFLAGS='-Wl,-elf2flt -mcpu=arm7tdmi' ./configure --enable-shared=no --host=i686-gnu --target=arm-elf --build=arm-elf \ --with-build-cc=gcc --without-cxx --without-cxx-binding --with-tags=
Then I tried to do "make" but it told me:
Making all in units make[1]: Entering directory `/home/igor/src/gnualp-0.1.4/units' libtool --mode=compile --tag=CC gpc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DGNU_COMPATIBLE_OS=1 --automake -c -o alpexceptions.o alpexceptions.pas libtool: unrecognized option `--tag=CC' Try `libtool --help' for more information. make[1]: *** [alpexceptions.lo] Error 1 make[1]: Leaving directory `/home/igor/src/gnualp-0.1.4/units' make: *** [all-recursive] Error 1
Then I changed Makefile in units directory like this:
was: .pas.o: libtool --mode=compile --tag=CC gpc $(DEFS) --automake -c -o $@ $< .pas.lo: libtool --mode=compile --tag=CC gpc $(DEFS) --automake -c -o $*.o $<
now: .pas.o: libtool --mode=compile gpc $(DEFS) --automake -c -o $@ $< .pas.lo: libtool --mode=compile gpc $(DEFS) --automake -c -o $*.o $<
2. Now build process goes further but it stops on file units/cnatives.c, in function run_alp_thread. My arm-elf-gcc compiler doesn't want to accept variables declarations after the function calls, so I moved declarations of "gpc_object thread" and "pthread_mutex_t *trigger" to the very beginning of the function (declarations only, not initialization).
3. After that build process goes further, now it tells me
/bin/sh ../libtool --mode=link arm-elf-gcc -Wl,-elf2flt -mcpu=arm7tdmi -o libgnualp.la -rpath /usr/local/lib alpexceptions.lo alpcollections.lo alptime.lo alpthreads.lo cport.lo cnatives.lo -lrt -lpthread libtool: link: `alpexceptions.lo' is not a valid libtool object make: *** [libgnualp.la] Error 1
and I don't know what to do just now, perhaps I have to think about it a little. Perhaps, I missed some options or something like that?
Igor Marnat
mailto:marny@rambler.ru