This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error Building Newlib for arm-none-eabi


I am trying to build for arm-none-eabi with GCC.

    ../../source/${dname}/configure \
        --target=${TARGET} \
        --prefix=`realpath ../../${DIR_PREFIX}` \
        --disable-newlib-supplied-syscalls \
        --enable-newlib-reent-small \
        --disable-newlib-fvwrite-in-streamio \
        --disable-newlib-fseek-optimization \
        --disable-newlib-wide-orient \
        --disable-newlib-unbuf-stream-opt \
        --enable-newlib-global-atexit \
        --enable-newlib-retargetable-locking \
        --disable-nls

    make -j"${NCPU}" -l"${NCPU}"
    make install


Gives:

In file included from
/home/R0b0t1/devel/toolgen/source/newlib-3.0.0/newlib/libc/include/ssp/stdio.h:34:0,
                 from
/home/R0b0t1/devel/toolgen/source/newlib-3.0.0/newlib/libc/include/stdio.h:800,
                 from
../../../../../../source/newlib-3.0.0/newlib/libc/stdio/gets.c:62:
../../../../../../source/newlib-3.0.0/newlib/libc/stdio/gets.c:96:1:
error: expected declaration specifiers or ‘...’ before
‘__builtin_object_size’
 gets (char *buf)
 ^

I attempted to search for the error, but did not get much of anywhere.
The GCC mailing list informed me that building all components
separately may not be the best idea, but I am looking to copy existing
build systems and to integrate the code into those build systems. In
which case separate component builds are more convenient, at least for
now.

Thanks in advance,
     R0b0t1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]