Hi Eric, On Mavericks, /usr/bin/gcc is actually clang, and---at least with the version of clang on OS X 10.7---a patch to src/lib/libcmd/ls.c is required to compile ksh:
http://lists.research.att.com/pipermail/ast-developers/2014q1/003829.html David or Glenn: it would be nice to have this patch incorporated into the ksh code base! -- Nathan Weeks IT Specialist USDA-ARS Corn Insects and Crop Genetics Research Unit Crop Genome Informatics Laboratory Iowa State University http://weeks.public.iastate.edu/ On Thu, Sep 11, 2014 at 2:13 PM, <[email protected]> wrote: > Send ast-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.research.att.com/mailman/listinfo/ast-users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ast-users digest..." > > > Today's Topics: > > 1. unable to compile ksh (Eric Peterson) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 11 Sep 2014 19:05:51 +0000 (GMT) > From: Eric Peterson <[email protected]> > To: [email protected] > Subject: [ast-users] unable to compile ksh > Message-ID: <[email protected]> > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > > > Doing the following steps to compile latest beta from research.att.com. ?I > tried to do some searches on the errors listed below but to no avail. ?Any > ideas on how to proceed? ?Did I miss a step? ?Are there other configuration > settings I need to change? ?I've attached the STDOUT and STDERR from the make > process. ?Thanks for any help you can provide. > > > > > # MacBook Pro,?OS version 10.9.4,?2.2 Ghz Intel Core i7, 16 GB 1600 MHz DDR3 > >> uname -a > Darwin EDP-MBP15.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun ?3 > 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 x86_64 > i386-64 Darwin > > >>?export CC="/usr/bin/gcc" >>?export URL="http://www2.research.att.com/~astopen/download/beta" >>?export U="I accept www.opensource.org/licenses/cpl" > > >> gcc --version > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr > --with-gxx-include-dir=/usr/include/c++/4.2.1 > Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) > Target: x86_64-apple-darwin13.3.0 > Thread model: posix > > >> sudo mkdir -v /k >> sudo chown epeterson:staff /k >> cd?/k >>?mkdir -pv lib/package/tgz > > >>?curl --progress-bar --verbose --user "${U}":'.' ?${URL}/INIT.2014-06-25.tgz >>--output?lib/package/tgz/INIT.2014-06-25.tgz >>?curl --progress-bar --verbose --user "${U}":'.' >>?${URL}/ast-ksh.2014-06-25.tgz --output?lib/package/tgz/ast-ksh.2014-06-25.tgz > > >>?gzip --decompress --stdout lib/package/tgz/INIT.2014-06-25.tgz | tar -xvf - >>?gzip --decompress --stdout lib/package/tgz/ast-ksh.2014-06-25.tgz | tar -xvf >>- > > >>?vi src/cmd/ksh93/Makefile > > >> bin/package list > packages in /k > > ? ? NAME VERSION ? ?RELEASE TYPE ? ?STATUS REQUIRES > ? ? ---- ------- ? ?------- ---- ? ?------ -------- > ? ? INIT 2014-06-25 ? ? ? ? ? ? ?base ? ?read > ? ? ast-ksh 2014-06-25 ? ? ? ? ? ? ?base ? ?read > > architectures in /k > > ? ? darwin.i386-64 ? ?EDP-MBP15 > > >> bin/package make verbose only ast-ksh > make.out 2> make.err > > >> bin/package results failed make > ==> make.out <== > make [lib/libcmd]: *** exit code 1 making ls.o > make [lib/libcmd]: *** 1 action failed > make: *** exit code 1 making lib/libcmd > make [cmd/ksh93]: ".DLL.cc-O", line 8: *** exit code 1 making ksh > make [cmd/ksh93]: ".DLL.cc-O", line 8: *** exit code 1 making shcomp > make [cmd/ksh93/cc-O]: *** exit code 1 making ksh > make [cmd/ksh93/cc-O]: *** exit code 1 making shcomp > make [cmd/ksh93/cc-O]: *** 2 actions failed > make [cmd/ksh93]: ".DLL.cc-O", line 8: *** exit code 1 making cc-O > make [cmd/ksh93]: *** 3 actions failed > make: *** exit code 1 making cmd/ksh93 > make: *** 2 actions failed > make [cmd/INIT]: *** 2 actions failed > make: *** exit code 1 making cmd/INIT > make [lib/libast]: *** 2 actions failed > make: *** exit code 1 making lib/libast > make [lib/libsum]: *** 2 actions failed > make: *** exit code 1 making lib/libsum > make [lib/libcmd]: *** 2 actions failed > make: *** exit code 1 making lib/libcmd > make [lib/libdll]: *** 2 actions failed > make: *** exit code 1 making lib/libdll > make [cmd/ksh93]: *** 2 actions failed > make: *** exit code 1 making cmd/ksh93 > make [cmd/msggen]: *** 2 actions failed > make: *** exit code 1 making cmd/msggen > make [lib/libcoshell]: *** 2 actions failed > make: *** exit code 1 making lib/libcoshell > make [lib]: *** 2 actions failed > make: *** exit code 1 making lib > make [cmd]: *** 2 actions failed > make: *** exit code 1 making cmd > make: *** 12 actions failed > > >> more ?arch/darwin.i386-64/lib/lib/m > ?- > > >> more ?arch/darwin.i386-64/lib/lib/ast > ?-last -liconv > > > > -- > Thanks > Eric D Peterson > > Sent from iCloud > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.research.att.com/pipermail/ast-users/attachments/20140911/3269713a/attachment.html> > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: make.out > Type: application/octet-stream > Size: 2242026 bytes > Desc: not available > URL: > <http://lists.research.att.com/pipermail/ast-users/attachments/20140911/3269713a/attachment.obj> > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: make.err > Type: application/octet-stream > Size: 188 bytes > Desc: not available > URL: > <http://lists.research.att.com/pipermail/ast-users/attachments/20140911/3269713a/attachment-0001.obj> > > ------------------------------ > > _______________________________________________ > ast-users mailing list > [email protected] > http://lists.research.att.com/mailman/listinfo/ast-users > > > End of ast-users Digest, Vol 127, Issue 4 > ***************************************** _______________________________________________ ast-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
