I believe it's a known issue caused by the ksh93 used as /bin/sh in indiana interpreting the (( )) as the syntax to do arithmetic.
The ON makefiles will need to be fixed to not put two parentheses next to each other when arithmetic evaluation is not desired. -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering Aubrey Li wrote: > The same ON repo copy, on Nevada, dmake lint works. > But on OpenSolaris200805(B95), "arithmetic syntax error" on every > file. See below > Is this a known issue? Is there any solutions? > > Thanks, > -Aubrey > ========================= > sh: echo "\ndebug64/cpudrv_mach.ln"; /opt/SUNWspro/bin/lint -c > -dirout=debug64 -nsxmuF -errtags=yes -Xarch=amd64 -Xc99=%all -Dunix > -D_KERNEL -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun > -D__sun -D__SVR4 -Di86pc -D_MACHDEP -DOPTERON_ERRATUM_88 > -DOPTERON_ERRATUM_91 -DOPTERON_ERRATUM_93 -DOPTERON_ERRATUM_95 > -DOPTERON_ERRATUM_99 -DOPTERON_ERRATUM_100 -DOPTERON_ERRATUM_101 > -DOPTERON_ERRATUM_108 -DOPTERON_ERRATUM_109 -DOPTERON_ERRATUM_121 > -DOPTERON_ERRATUM_122 -DOPTERON_ERRATUM_123 -DOPTERON_ERRATUM_131 > -DOPTERON_WORKAROUND_6336786 -DOPTERON_WORKAROUND_6323525 > -DOPTERON_ERRATUM_172 -DOPTERON_ERRATUM_298 -DDEBUG -I../../i86pc > -I/export/home/aubrey/work/onnv-gate-b97/usr/src/common -I../../intel > -Y I,../../common ../../i86pc/io/cpudrv/cpudrv_mach.c : arithmetic > syntax error > *** Error code 1 > The following command caused the error: > (( echo "\ndebug64/cpudrv_mach.ln"; /opt/SUNWspro/bin/lint -c > -dirout=debug64 -nsxmuF -errtags=yes -Xarch=amd64 -Xc99=%all -Dunix > -D_KERNEL -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun > -D__sun -D__SVR4 -Di86pc -D_MACHDEP -DOPTERON_ERRATUM_88 > -DOPTERON_ERRATUM_91 -DOPTERON_ERRATUM_93 -DOPTERON_ERRATUM_95 > -DOPTERON_ERRATUM_99 -DOPTERON_ERRATUM_100 -DOPTERON_ERRATUM_101 > -DOPTERON_ERRATUM_108 -DOPTERON_ERRATUM_109 -DOPTERON_ERRATUM_121 > -DOPTERON_ERRATUM_122 -DOPTERON_ERRATUM_123 -DOPTERON_ERRATUM_131 > -DOPTERON_WORKAROUND_6336786 -DOPTERON_WORKAROUND_6323525 > -DOPTERON_ERRATUM_172 -DOPTERON_ERRATUM_298 -DDEBUG -I../../i86pc > -I/export/home/aubrey/work/onnv-gate-b97/usr/src/common -I../../intel > -Y I,../../common ../../i86pc/io/cpudrv/cpudrv_mach.c )) > dmake: Warning: Command failed for target `debug64/cpudrv_mach.ln' > Current working directory > /export/home/aubrey/work/onnv-gate-b97/usr/src/uts/i86pc/cpudrv > *** Error code 1 > The following command caused the error: > BUILD_TYPE=DBG64 VERSION='onnv-gate-b97' dmake lint.targ > dmake: Fatal error: Command failed for target `lint.debug64' > Current working directory > /export/home/aubrey/work/onnv-gate-b97/usr/src/uts/i86pc/cpudrv > _______________________________________________ > indiana-discuss mailing list > indiana-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/indiana-discuss