<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Console'; font-size:12pt; font-weight:400; font-style:normal;">Hello, all.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I know this problem was solved in 2005, but somehow I encounter it again...:-(<br>
It complains about __assert found in libcsupport and in newlib while linking sample hello.exe:<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>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<br>
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<br>
/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':<br>
/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'<br>
../../../../../FDR_8247/lib/librtemscpu.a(libcsupport_a-__assert.o):/opt/rtems/rtems-src/c/src/../../cpukit/libcsupport/src/__assert.c:21: first defined here<br>
collect2: ld returned 1 exit status<br>
gmake[5]: *** [hello.exe] Error 1<br>
gmake[4]: *** [install-recursive] Error 1<br>
gmake[3]: *** [install-recursive] Error 1<br>
gmake[2]: *** [install-recursive] Error 1<br>
gmake[1]: *** [install-recursive] Error 1<br>
make: *** [install-recursive] Error 1<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Leon <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>