From: Zachary C. <z.c...@us...> - 2005-09-14 21:34:27
|
Ah, muchas gracias to both Dave and Byrom -- building the scudderfish branch now... my hacks felt all kludgy... but it's good to know I should grep Darwin-specific build instructions in the future... Thanks to whoever added those makefile comments, very clear and helpful. So can anyone help me with my noob serial-port-access-in-software question? Zac -------------------- > Date: Wed, 14 Sep 2005 13:40:53 -0500 > From: Byrom Dorsey <by...@co...> > To: gum...@li... > Subject: Re: [Gumstix-users] darwin build problemy > > Hi, > > For what it's worth, it looks like your build is failing because > fdatasync is not in your libc. For linux, I think fdatasync is > the same as fsync. I took a look at the module that failed to > link and it's got a #define that you could use to link with fsync > instead of fdatasync. So, you might want to try adding the > compile-time directive "-D_POSIX_SYNCHRONIZED_IO=0" so that the > linker looks for fdatasync instead of fsync. It's either that or > modify the source module to exclude your O/S from using fdatasync. > > Oooh. Just took a look at the Makefile in > > .../build_arm_nofpu/u-boot-1.1.2/tools > > It's got Darwin-specific notes. You probably want to read that if > you haven't already. > > Byrom -------------------- > Date: Wed, 14 Sep 2005 19:36:18 +0000 > From: Dave Smith <da...@sm...> > To: gum...@li... > Subject: Re: [Gumstix-users] darwin build problem > > I maintain a branch that is Mac OSX build friendly, but not quite at > Craig's bleeding edge. If you do a checkout using the URL > > http://svn.rungie.com/svn/gumstix-buildroot/branches/users/scudderfish > then you will get it. I'll be bringing it in line with trunk over the > next few days. > > Regards, > Dave -------------------- >> To: gum...@li... >> From: Zachary Crockett <z.c...@us...> >> Date: Wed, 14 Sep 2005 13:18:38 -0500 >> Subject: [Gumstix-users] darwin build problem >> >> Hey there everyone, >> >> I'm trying to build the toolchain and buildroot on Darwin 8.2.0 (Mac >> OS 10.4.2)... has taken a bit of tweaking obviously, mainly because >> Darwin cp doesn't have either the -a flag or the --no-dereference >> flag. Those are tedious, but no big deal, however, now I get a build >> error for which I could use some help. Pasted below is the output of >> make. >> >> Also, this might be a really dumb question, but... this is for a >> sensor-related dance & music work... in performance, I will need to >> continuously grab sensor data from one of the UARTs and redirect it >> out the bluetooth port, possibly (but not necessarily) with some >> reformatting in between. How do people usually do this? A simple >> shell pipe statement?? Or in C / Java, how do I access the serial >> ports? Feeling a little dumb that I can't find this... >> >> Thanks for any assistance, >> Zac >> >> make CC=/Users/zac/gumstix-buildroot/build_arm_nofpu/staging_dir/bin/ >> arm-linux-uclibc-gcc CFLAGS="-Os -march=armv5te -mtune=xscale -Wa,- >> mcpu=xscale " LD=/Users/zac/gumstix-buildroot/build_arm_nofpu/ >> staging_dir/bin/arm-linux-uclibc-ld -C /Users/zac/gumstix-buildroot/ >> build_arm_nofpu/libfloat >> make[1]: Nothing to be done for `all'. >> make -j3 ARCH=arm CROSS_COMPILE=/Users/zac/gumstix-buildroot/ >> build_arm_nofpu/staging_dir/bin/arm-linux-uclibc- -C /Users/zac/ >> gumstix-buildroot/build_arm_nofpu/u-boot-1.1.2 tools >> make -C tools all >> cc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xA3F00000 - >> DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o >> /usr/bin/ld: Undefined symbols: >> _fdatasync >> collect2: ld returned 1 exit status >> make[2]: *** [mkimage] Error 1 >> make[1]: *** [tools] Error 2 >> make: *** [/Users/zac/gumstix-buildroot/build_arm_nofpu/staging_dir/ >> bin/mkimage] Error 2 |