FYI: this compilation failure with the Xcode-4.6.1-supplied Clang still occurs with the 2014-04-15 beta.
-- 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 Fri, Feb 21, 2014 at 8:21 AM, Dr. Werner Fink <wer...@suse.de> wrote: > On Wed, Feb 05, 2014 at 04:03:17PM -0600, Nathan Weeks wrote: >> ksh 2014-01-14 fails to compile on OS X 10.7.5 (Xcode 4.6.1) due to the >> following error: >> >> ======================================== >> /tmp/ast-ksh.2014-01-14/src/lib/libcmd/ls.c:1260:3: error: non-void >> function 'ls' should return a value [-Wreturn-type] >> return; >> ^ >> /tmp/ast-ksh.2014-01-14/src/lib/libcmd/ls.c:1268:3: error: non-void >> function 'ls' should return a value [-Wreturn-type] >> return; >> ^ >> /tmp/ast-ksh.2014-01-14/src/lib/libcmd/ls.c:1273:3: error: non-void >> function 'ls' should return a value [-Wreturn-type] >> return; >> ^ >> ======================================== >> >> The fix is straightforward: >> >> ======================================== >> --- ./src/lib/libcmd/ls.c.orig 2013-12-08 01:24:57.000000000 -0600 >> +++ ./src/lib/libcmd/ls.c 2014-02-04 08:34:10.000000000 -0600 >> @@ -1257,7 +1257,7 @@ >> if (!VISIBLE(state, ent)) >> { >> fts_set(NiL, ent, FTS_SKIP); >> - return; >> + return 0; >> } >> switch (ent->fts_info) >> { >> @@ -1265,12 +1265,12 @@ >> if (ent->fts_parent->fts_info == FTS_DNX) >> break; >> error(2, "%s: not found", ent->fts_path); >> - return; >> + return 0; >> case FTS_DC: >> if (state->lsflags & LS_DIRECTORY) >> break; >> error(2, "%s: directory causes cycle", ent->fts_path); >> - return; >> + return 0; >> case FTS_DNR: >> if (state->lsflags & LS_DIRECTORY) >> break; >> ======================================== > > Indeed I've similar found, also some hard crashes. > > Also if one tries to add the $PWD/arch/linux.i386-64/bin to the PATH > to run the test suite with SHCOMP=$PWD/arch/linux.i386-64/bin/shcomp > and SHELL=$PWD/arch/linux.i386-64/bin/ksh the test suite crash a way. > > All not enabled builtins will be found in the path > $PWD/arch/linux.i386-64/bin/ > even if not there. Guess: the .paths in the bin directory does not work well > with path_absolute() in src/cmd/ksh93/sh/path.c. > > Also the `set -k' problem is there as the alias/hash builtins are not set > BLT_DCL, > the crash with the line > > ksh -c 'trap "exit 0" EXIT; typeset -T X=(typeset x; function x.get { :; > }); X -a xs=((x=yo) (x=jo))' > > still exists. On all architectures I see > > test io(shcomp) failed at 2014-02-21+13:58:17 with exit code 269 [ 99 tests > 269 errors ] > > where `269' is not the number of the errors but a crash. The test scripts > treemove.sh and namespace.sh do not work with shcomp. The locale.sh script > cause the ksh to show a fortify message of the glibc > > test locale begins at 2014-02-20+14:50:33 > *** stack smashing detected ***: /tmp/ksh-build.LszUgz/bin/ksh terminated > ======= Backtrace: ========= > /lib64/libc.so.6(__fortify_fail+0x38)[0x3fffd30b03c] > /lib64/libc.so.6(+0x10a002)[0x3fffd30b002] > /tmp/ksh-build.LszUgz/bin/ksh[0x8010f2fc] > /tmp/ksh-build.LszUgz/bin/ksh[0x8010f394] > /tmp/ksh-build.LszUgz/bin/ksh[0x801128d0] > /tmp/ksh-build.LszUgz/bin/ksh[0x80112cc0] > /tmp/ksh-build.LszUgz/bin/ksh[0x8010f6fa] > /tmp/ksh-build.LszUgz/bin/ksh[0x8010a3f8] > /tmp/ksh-build.LszUgz/bin/ksh[0x8010ac7e] > /tmp/ksh-build.LszUgz/bin/ksh[0x800115f8] > /tmp/ksh-build.LszUgz/bin/ksh[0x80010490] > /lib64/libc.so.6(__libc_start_main+0x114)[0x3fffd2221d8] > /tmp/ksh-build.LszUgz/bin/ksh[0x8001039a] > ======= Memory map: ======== > 80000000-801e7000 r-xp 00000000 fc:00 629644 > /tmp/ksh-build.LszUgz/bin/ksh > 801e7000-801fa000 r--p 001e6000 fc:00 629644 > /tmp/ksh-build.LszUgz/bin/ksh > 801fa000-80202000 rw-p 001f9000 fc:00 629644 > /tmp/ksh-build.LszUgz/bin/ksh > 80202000-80229000 rw-p 00000000 00:00 0 > [heap] > 10051b87000-10051f87000 rw-p 00000000 00:00 0 > 3fffd1ec000-3fffd1fd000 r-xp 00000000 fc:00 1079395 > /lib64/libgcc_s.so.1 > 3fffd1fd000-3fffd1fe000 r--p 00010000 fc:00 1079395 > /lib64/libgcc_s.so.1 > 3fffd1fe000-3fffd1ff000 rw-p 00011000 fc:00 1079395 > /lib64/libgcc_s.so.1 > 3fffd1ff000-3fffd201000 rw-p 00000000 00:00 0 > 3fffd201000-3fffd37e000 r-xp 00000000 fc:00 1079240 > /lib64/libc-2.11.3.so > 3fffd37e000-3fffd382000 r--p 0017c000 fc:00 1079240 > /lib64/libc-2.11.3.so > 3fffd382000-3fffd384000 rw-p 00180000 fc:00 1079240 > /lib64/libc-2.11.3.so > 3fffd384000-3fffd388000 rw-p 00000000 00:00 0 > 3fffd388000-3fffd38a000 r-xp 00000000 fc:00 1079274 > /lib64/libutil-2.11.3.so > 3fffd38a000-3fffd38b000 r--p 00002000 fc:00 1079274 > /lib64/libutil-2.11.3.so > 3fffd38b000-3fffd38c000 rw-p 00003000 fc:00 1079274 > /lib64/libutil-2.11.3.so > 3fffd38c000-3fffd38f000 r-xp 00000000 fc:00 1079246 > /lib64/libdl-2.11.3.so > 3fffd38f000-3fffd390000 r--p 00002000 fc:00 1079246 > /lib64/libdl-2.11.3.so > 3fffd390000-3fffd391000 rw-p 00003000 fc:00 1079246 > /lib64/libdl-2.11.3.so > 3fffd391000-3fffd392000 rw-p 00000000 00:00 0 > 3fffd392000-3fffd42a000 r-xp 00000000 fc:00 1079248 > /lib64/libm-2.11.3.so > 3fffd42a000-3fffd42b000 r--p 00097000 fc:00 1079248 > /lib64/libm-2.11.3.so > 3fffd42b000-3fffd42c000 rw-p 00098000 fc:00 1079248 > /lib64/libm-2.11.3.so > 3fffd42f000-3fffd432000 rw-p 00000000 00:00 0 > 3fffd432000-3fffd434000 r-xp 00000000 00:00 0 > [vdso] > 3fffd434000-3fffd454000 r-xp 00000000 fc:00 1079374 > /lib64/ld-2.11.3.so > 3fffd454000-3fffd455000 r--p 00020000 fc:00 1079374 > /lib64/ld-2.11.3.so > 3fffd455000-3fffd456000 rw-p 00021000 fc:00 1079374 > /lib64/ld-2.11.3.so > 3fffd456000-3fffd457000 rw-p 00000000 00:00 0 > 3fffff6f000-3fffff90000 rw-p 00000000 00:00 0 > [stack] > locale.sh: line 199: 18381: Abort > locale.sh[200]: join test script failed -- exit code 262 > locale.sh: line 202: out: cannot open [No such file or directory] > locale.sh[203]: LC_ALL test script failed -- expected 'f1', got '' > locale.sh: line 199: 18381: Abort > locale.sh[200]: join test script failed -- exit code 262 > locale.sh: line 202: out: cannot open [No such file or directory] > locale.sh[203]: LC_ALL test script failed -- expected 'f1', got '' > test locale failed at 2014-02-20+14:50:35 with exit code 2 [ 38 tests 2 > errors ] > test locale(shcomp) begins at 2014-02-20+14:50:35 > /tmp/ksh-build.LszUgz/tmp1hPOkPV.PUU/shcomp-locale.ksh: line 199: 18440: > Memory fault > shcomp-locale.ksh[200]: join test script failed -- exit code 267 > /tmp/ksh-build.LszUgz/tmp1hPOkPV.PUU/shcomp-locale.ksh: line 202: out: > cannot open [No such file or directory] > shcomp-locale.ksh[203]: LC_ALL test script failed -- expected 'f1', got '' > shcomp-locale.ksh[249]: 'LANG=C;cd _not_found_;(LANG=debug;cd > _not_found_);cd _not_found_;:' failed -- exit status 260 > shcomp-locale.ksh[261]: 'LANG=C;cd _not_found_;(LANG=debug;cd > _not_found_);cd _not_found_;:' failed -- expected '121', got '1' > test locale(shcomp) failed at 2014-02-20+14:50:36 with exit code 4 [ 38 > tests 4 errors ] > > Werner > > -- > "Having a smoking section in a restaurant is like having > a peeing section in a swimming pool." -- Edward Burr _______________________________________________ ast-developers mailing list ast-developers@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-developers