Duplicated assertion

Leon Pollak leonp at plris.com
Mon May 11 11:12:20 UTC 2009


Hello, all.

I know this problem was solved in 2005, but somehow I encounter it again...:-(
It complains about __assert found in libcsupport and in newlib while linking 
sample hello.exe:

powerpc-rtems-gcc -B../../../../../FDR_8247/lib/ -specs bsp_specs -qrtems -
DPACKAGE_NAME=\"rtems-c-src-tests-samples\" -DPACKAGE_TARNAME=\"rtems-c-src-
tests-samples\" -DPACKAGE_VERSION=\"4.8.0\" -DPACKAGE_STRING=\"rtems-c-src-
tests-samples\ 4.8.0\" -DPACKAGE_BUGREPORT=\"http://www.rtems.org/bugzilla\" -
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -
DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -
DHAVE_CSTDIO=1 -DHAVE_CSTDLIB=1 -DHAVE_IOSTREAM=1 -I. -I/opt/rtems/rtems-
src/c/src/../../testsuites/samples/hello     -mcpu=603e -mstrict-align -
Dmpc8260 -O0 -g -ggdb -fkeep-inline-functions -MT init.o -MD -MP -MF 
.deps/init.Tpo -c -o init.o /opt/rtems/rtems-
src/c/src/../../testsuites/samples/hello/init.c
powerpc-rtems-gcc -B../../../../../FDR_8247/lib/ -specs bsp_specs -qrtems -
mcpu=603e -mstrict-align -Dmpc8260 -O0 -g -ggdb -fkeep-inline-functions      -
o hello.exe init.o ../../../../../FDR_8247/lib/no-barrier.rel 
../../../../../FDR_8247/lib/no-dpmem.rel ../../../../../FDR_8247/lib/no-
event.rel ../../../../../FDR_8247/lib/no-msg.rel 
../../../../../FDR_8247/lib/no-mp.rel ../../../../../FDR_8247/lib/no-part.rel 
../../../../../FDR_8247/lib/no-region.rel ../../../../../FDR_8247/lib/no-
signal.rel ../../../../../FDR_8247/lib/no-timer.rel 
../../../../../FDR_8247/lib/no-rtmon.rel ../../../../../FDR_8247/lib/no-
ext.rel
/opt.new/gcc-4.2.2/bin/../lib64/gcc/powerpc-
rtems4.8/4.2.2/../../../../powerpc-rtems4.8/lib/m603e/mpc8260/libc.a(lib_a-
assert.o): In function `__assert':
/builddir/build/BUILD/rtems-4.8-powerpc-rtems4.8-gcc-4.2.2/build/powerpc-
rtems4.8/m603e/mpc8260/newlib/libc/stdlib/../../../../../../../gcc-4.2.2/newlib/libc/stdlib/assert.c:71: 
multiple definition of `__assert'
../../../../../FDR_8247/lib/librtemscpu.a(libcsupport_a-
__assert.o):/opt/rtems/rtems-
src/c/src/../../cpukit/libcsupport/src/__assert.c:21: first defined here
collect2: ld returned 1 exit status
gmake[5]: *** [hello.exe] Error 1
gmake[4]: *** [install-recursive] Error 1
gmake[3]: *** [install-recursive] Error 1
gmake[2]: *** [install-recursive] Error 1
gmake[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

-- 
Leon 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20090511/46182a78/attachment.html>


More information about the users mailing list