[uClibc]gmp fails to compile

Claus Rosenberger Claus.Rosenberger at rocnet.de
Fri Aug 30 18:25:38 UTC 2002


Version 3.1.1 was successful to compile. But i link all the time again libc6.


$(GMP_DIR)/.configured: $(GMP_DIR)/.dist
        (cd $(GMP_DIR); rm -rf config.cache; CC=$(TARGET_CC1) \
        ./configure     --prefix=/usr \
                        --host=$(ARCH)-linux \
                        --with-shared \
                        --exec-prefix=$(STAGING_DIR)/usr \
                        --libdir=$(STAGING_DIR)/usr/lib \
                        --includedir=$(STAGING_DIR)/usr/include);
        touch  $(GMP_DIR)/.configured

This is the configuration.


$(GMP_DIR)/.libs/libgmp.so.3.1.1: $(GMP_DIR)/.configured
        $(MAKE) CC=$(TARGET_CC1) \
                BUILD_CC=$(TARGET_CC1) \
                LD=$(TARGET_LD) \
                AS=$(TARGET_AS) \
                DESTDIR=$(STAGING_DIR) \
                -C $(GMP_DIR)

This is the compilation.

It compiles with the right compiler but it links with the command "gcc
-shared" and not with "/usr/local/sr...../staging_dir/usr/bin/gcc
-shared".

Ideas ?


> Hi,
>
> i try to compile gmp-4.1 and i got following error :
>
> first i deleted the includes "#include <obstack.h>" because the
> difference between uclibc and libc6. then i got following error :
>
>
> obprntffuns.c:47: warning: `struct obstack' declared inside parameter
> list obprntffuns.c:47: warning: its scope is only this definition or
> declaration, which is probably not what you want
> obprntffuns.c:54: warning: `struct obstack' declared inside parameter
> list obprntffuns.c:62: `obstack_vprintf' undeclared here (not in a
> function) obprntffuns.c:62: initializer element is not constant
> obprntffuns.c:62: (near initialization for
> `__gmp_obstack_printf_funs.format')
> make[3]: *** [obprntffuns.lo] Error 1
> make[3]: Leaving directory
> `/usr/local/src/buildroot/build/gmp-4.1/printf' make[2]: ***
> [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/buildroot/build/gmp-4.1'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/src/buildroot/build/gmp-4.1'
> make: *** [/usr/local/src/buildroot/build/gmp-4.1/src/gmp.so] Error 2
>
>
> any ideas ?
>
> claus
>
>
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc






More information about the uClibc mailing list