undefined references since newlib-3.2.0

"Wolf, Josef via Newlib" <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <VI1PR10MB1824903892BD47CCAF1CE53F96820@VI1PR10MB1824.EURPRD10.PROD.OUTLOOK.COM>
Hello everybody,



Since newlib-3.2.0, I get this error when linking one of my projects:



$ m68k-unknown-elf-gcc -nostartfiles -Wl,--cref,--section-start=vectors=0 \

    -Wl,-Ttext=0x400,--entry=entry -Wl,--oformat,elf32-m68k \

    -Wl,--cref,-Map,proj.map \

    -Wl,-T,ldscript.be -ansi -pedantic -Wall -Wcast-align \

    -Wstrict-prototypes -Wmissing-prototypes -std=c89 -Wnull-dereference -g \

    -O2 -fno-toplevel-reorder  -mcpu32  -o proj.elf `cat proj.objs` -lc

      /m/a/local/crossgcc/m68k-unknown-elf/lib64/gcc/m68k-unknown-elf/9.3.0/../../../../m68k-unknown-elf/bin/ld: /m/a/local/crossgcc/m68k-unknown-elf/lib64/gcc/m68k-unknown-elf/9.3.0/../../../../m68k-unknown-elf/lib/mcpu32/libc.a(lib_a-abort.o):

      in function `abort':

      /m/a/tmp/builds/crossgcc/src/newlib-3.2.0/newlib/libc/stdlib/abort.c:59: undefined reference to `_exit'

      /m/a/local/crossgcc/m68k-unknown-elf/lib64/gcc/m68k-unknown-elf/9.3.0/../../../../m68k-unknown-elf/bin/ld: /m/a/local/crossgcc/m68k-unknown-elf/lib64/gcc/m68k-unknown-elf/9.3.0/../../../../m68k-unknown-elf/lib/mcpu32/libc.a(lib_a-signalr.o):

      in function `_kill_r':

      /m/a/tmp/builds/crossgcc/src/newlib-3.2.0/newlib/libc/reent/signalr.c:53: undefined reference to `kill'

      /m/a/local/crossgcc/m68k-unknown-elf/lib64/gcc/m68k-unknown-elf/9.3.0/../../../../m68k-unknown-elf/bin/ld: /m/a/local/crossgcc/m68k-unknown-elf/lib64/gcc/m68k-unknown-elf/9.3.0/../../../../m68k-unknown-elf/lib/mcpu32/libc.a(lib_a-signalr.o):

      in function `_getpid_r':

      /m/a/tmp/builds/crossgcc/src/newlib-3.2.0/newlib/libc/reent/signalr.c:83: undefined reference to `getpid'



The project builds just fine with newlib versions up to 3.1.0



newlib was configured like this:



/m/a/tmp/builds/crossgcc/src/newlib-3.2.0/configure --target=m68k-unknown-elf --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --prefix=/m/a/local/crossgcc/m68k-unknown-elf/nanoLibraries --enable-lite-exit --enable-newlib-nano-malloc --enable-newlib-nano-formatted-io --enable-newlib-reent-small --enable-newlib-retargetable-locking --enable-newlib-global-atexit --enable-newlib-global-stdio-streams --disable-newlib-supplied-syscalls --disable-newlib-fvwrite-in-streamio --disable-newlib-fseek-optimization --disable-newlib-wide-orient --disable-newlib-unbuf-stream-opt --disable-nls



Any suggestions?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.