This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Using powerpc-eabi-gcc 3.4.0 on a cygwin host with newlib 1.12.0 Link fails due to a missing sbrk: make[3]: Entering directory `/cygdrive/g/spaceboy/aClipperDepot/sbir/sins/src/flight/obj/mpc555' powerpc-eabi-gcc -o ../../sins exec.o gps.o imu.o kalman.o main.o matrices.o matrix3.o rotation.o vec.o vg.o checksum.o sbirMessages.o sbirSwap.o -T ../../../../../tools/ram.ld -Wl,-Map,app.map -Wl,--defsym,__cxa_pure_v irtual=0 -Lc:/avidyne/lib/mpc555 -lmpc555 -lnppBase -lnucleus -lm -lc -lgcc -lnosys /usr/local/ppctools/lib/gcc/powerpc-eabi/3.4.0/../../../../powerpc-eab i/lib/libc.a(sbrkr.o)(.text+0x40): In function `_sbrk_r': ../../../../../newlib-1.12.0/newlib/libc/reent/sbrkr.c:60: undefined reference to `sbrk' collect2: ld returned 1 exit status make[3]: *** [../../sins] Error 1 make[3]: Leaving directory `/cygdrive/g/spaceboy/aClipperDepot/sbir/sins/src/flight/obj/mpc555' As you can see, I am linking with libnosys and nm shows _sbrk. Is the underscore my problem? close.o: 00000000 T close U errno environ.o: 00000000 S __env 00000000 G environ errno.o: 00000004 C errno execve.o: U errno 00000000 T execve fork.o: U errno 00000000 T fork fstat.o: U errno 00000000 T fstat getpid.o: U errno 00000000 T getpid gettod.o: U errno 00000000 T gettimeofday isatty.o: U errno 00000000 T isatty kill.o: U errno 00000000 T kill link.o: U errno 00000000 T link lseek.o: U errno 00000000 T lseek open.o: U errno 00000000 T open read.o: U errno 00000000 T read sbrk.o: 00000000 T _sbrk U end 00000000 s heap_end.0 stat.o: U errno 00000000 T stat times.o: U errno 00000000 T times unlink.o: U errno 00000000 T unlink wait.o: U errno 00000000 T wait write.o: U errno 00000000 T write ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |