"if: Expression syntax" error

  • Thread starter Pleasedontreplytoemailadd
  • Start date
P

Pleasedontreplytoemailadd

Guest
hi

i believe there was a post on a similar problem in 2005. cud not post
there since it had already been closed by the moderator.

neways, i have been getting this error for the past few days:

if: Expression syntax

whenever i open cadence. it doesnot open library manager either. when i
try to open it separately, it just hangs up and gives the same error
along with a statement that it gave up after 60 tries or something.

everything had been running fine for the last few months. suddenly, one
fine day it starts giving this error.

i am running cadence on fedora 64-bit version. i have tried what was
suggested earlier:

sh -xv 'icfb'

could not find any broken 'if...fi' expressions. any ideas on how to
rectify this error?

thanx in advance.
SP
 
you have a .cdsinit file in your home directory or in the directory you
are
starting the framework from? If so, move it aside and try again.

does that help?

-jim


Pleasedontreplytoemailaddress wrote:
hi

i believe there was a post on a similar problem in 2005. cud not post
there since it had already been closed by the moderator.

neways, i have been getting this error for the past few days:

if: Expression syntax

whenever i open cadence. it doesnot open library manager either. when i
try to open it separately, it just hangs up and gives the same error
along with a statement that it gave up after 60 tries or something.

everything had been running fine for the last few months. suddenly, one
fine day it starts giving this error.

i am running cadence on fedora 64-bit version. i have tried what was
suggested earlier:

sh -xv 'icfb'

could not find any broken 'if...fi' expressions. any ideas on how to
rectify this error?

thanx in advance.
SP
 
hi,

thanx for the suggestion, but that did not help either. it is still
giving the same old error. :-(

ne other suggestions?

SP
 
It looks like your error message is not coming from SKILL, but
rather coming from some shell script. is your icfb a shell script?
or is icfb an executable? if you try "which icfb" from the shell,
then you can find the full path name. Is it a csh script or sh
script?
If it is csh you can use something like csh -v /full/path/to/icfb
to find which line is getting the if Expression syntax error.
If it is sh shell, then hopefully someone else can give advise
about how to trace its execuation.

does this help?

Pleasedontreplytoemailaddress wrote:
hi,

thanx for the suggestion, but that did not help either. it is still
giving the same old error. :-(

ne other suggestions?

SP
 
hi,

i think it is an sh script. the first few lines of the icfb were:

! /bin/sh
####################################################..

i tried doing sh -xv as someone had suggested earlier, but still could
not figure out anything.

SP
 
Also check for a cdsLibMgr.il, and also check the .cdsenv file (in working
dir and home dir).

Andrew.

On 28 Aug 2006 23:58:38 -0700, "Jimka" <jimka@rdrop.com> wrote:

you have a .cdsinit file in your home directory or in the directory you
are
starting the framework from? If so, move it aside and try again.

does that help?

-jim


Pleasedontreplytoemailaddress wrote:
hi

i believe there was a post on a similar problem in 2005. cud not post
there since it had already been closed by the moderator.

neways, i have been getting this error for the past few days:

if: Expression syntax

whenever i open cadence. it doesnot open library manager either. when i
try to open it separately, it just hangs up and gives the same error
along with a statement that it gave up after 60 tries or something.

everything had been running fine for the last few months. suddenly, one
fine day it starts giving this error.

i am running cadence on fedora 64-bit version. i have tried what was
suggested earlier:

sh -xv 'icfb'

could not find any broken 'if...fi' expressions. any ideas on how to
rectify this error?

thanx in advance.
SP
--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 
just to ensure that there is nothing wrong with the icfb launch file.
here is the output to sh -xv icfb:
----------------------------------------------------
#! /bin/sh
###############################################################################
# icfb - Copyright (C) 1995-1999 Cadence Design Systems, Inc.
# All Rights Reserved.
#
# Script to invoke the workbench binary. Insures the LD_LIBRARY_PATH is
# set appropriately to get the Cadence shared libraries. Scopes the MPS
# session uniquely here unless it is already scoped.
#
# $Revision: 1.1 $
# $Date: 2003/10/06 07:41:06 $
###############################################################################

# Determine where we can find the software. If we can't let the
# user know to update their PATH variable.

inst_dir=`cds_root $0`
cds_root $0
++ cds_root icfb
+ inst_dir=/home/apps/common/cadence/Linux/ic_5141
if [ -z "${inst_dir}" ]; then
echo "Unable to find the Cadence software in your \$PATH."
echo "Please fix this and try again."
exit 1
fi
+ '[' -z /home/apps/common/cadence/Linux/ic_5141 ']'

# Initialize LD_LIBRARY_PATH to include the shared libs in the
hierarchy.

if [ -z "$LD_LIBRARY_PATH" ]; then # Sun/Solaris
LD_LIBRARY_PATH="${inst_dir}/tools/lib:/usr/lib"
else
LD_LIBRARY_PATH="${inst_dir}/tools/lib:$LD_LIBRARY_PATH"
fi
+ '[' -z
/sge_root/lib/lx24-amd64:/project/analog-group/zain/desktop/lib:/projec
t/analog-group/zain/desktop/qt/lib:/project/analog-group/zain/desktop/kde/lib:.:
/apps/common/synopsys/syn_2004.12/linux/lib:/sge_root/lib/lx24-amd64:/usr/local/
lib:/usr/X11R6/lib:/apps/common/xfig/3.2.4/Linux/lib:/apps/common/emacs/21.2/Lin
ux/lib:/apps/common/cadence/Linux/ic_5141/tools.lnx86/lib/64bit:/apps/common/cad
ence/Linux/ldv_51/tools/lib:/home/apps2/common/cadence/Linux/assura311_50/tools/
lib ']'
+
LD_LIBRARY_PATH=/home/apps/common/cadence/Linux/ic_5141/tools/lib:/sge_root/li
b/lx24-amd64:/project/analog-group/zain/desktop/lib:/project/analog-group/zain/d
esktop/qt/lib:/project/analog-group/zain/desktop/kde/lib:.:/apps/common/synopsys
/syn_2004.12/linux/lib:/sge_root/lib/lx24-amd64:/usr/local/lib:/usr/X11R6/lib:/a
pps/common/xfig/3.2.4/Linux/lib:/apps/common/emacs/21.2/Linux/lib:/apps/common/c
adence/Linux/ic_5141/tools.lnx86/lib/64bit:/apps/common/cadence/Linux/ldv_51/too
ls/lib:/home/apps2/common/cadence/Linux/assura311_50/tools/lib
if [ -z "$SHLIB_PATH" ]; then # HP
SHLIB_PATH="${inst_dir}/tools/lib:/usr/lib"
else
SHLIB_PATH="${inst_dir}/tools/lib:$SHLIB_PATH"
fi
+ '[' -z '' ']'
+ SHLIB_PATH=/home/apps/common/cadence/Linux/ic_5141/tools/lib:/usr/lib
if [ -z "$LIBPATH" ]; then # IBM
LIBPATH="${inst_dir}/tools/lib:/usr/lpp/X11/lib/R6:/usr/lib"
else
LIBPATH="${inst_dir}/tools/lib:/usr/lpp/X11/lib/R6:$LIBPATH"
fi
+ '[' -z '' ']'
+
LIBPATH=/home/apps/common/cadence/Linux/ic_5141/tools/lib:/usr/lpp/X11/lib/R6:
/usr/lib

if [ -n "$CDS_TEST_LIBPATH" ]; then
echo "$0: environment variable CDS_TEST_LIBPATH is set for Cadence
testing"
LD_LIBRARY_PATH="$CDS_TEST_LIBPATH:$LD_LIBRARY_PATH"
echo "$0: LD_LIBRARY_PATH for testing is: " $LD_LIBRARY_PATH
SHLIB_PATH="$CDS_TEST_LIBPATH:$SHLIB_PATH"
echo "$0: SHLIB_PATH for testing is: " $SHLIB_PATH
LIBPATH="$CDS_TEST_LIBPATH:$LIBPATH"
echo "$0: LIBPATH for testing is: " $LIBPATH
echo " "
fi
+ '[' -n '' ']'

export LD_LIBRARY_PATH SHLIB_PATH LIBPATH
+ export LD_LIBRARY_PATH SHLIB_PATH LIBPATH

# Set the name of the workbench that is to be run and the path to its
# executable.

wb_name=icfb
+ wb_name=icfb
wb_bin=${inst_dir}/tools/dfII/bin/$wb_name.exe
+
wb_bin=/home/apps/common/cadence/Linux/ic_5141/tools/dfII/bin/icfb.exe

# If -mpssession isn't on the command line and the user has not set the
# CDS_MPS_SESSION environment variable, set the CDS_MPS_SESSION
variable
# to ensure that all MPS-based processes launched from the workbench
are
# scoped to the same MPS session. This will cover those processes
invoked
# via ipc or an exec.

scoped=0
+ scoped=0
for arg in $@; do
if [ $arg = "-mpssession" ]; then
scoped=1
break
fi
done
if [ $scoped = 0 -a -z "$CDS_MPS_SESSION" ]; then
CDS_MPS_SESSION=${wb_name}$$
export CDS_MPS_SESSION
fi
+ '[' 0 = 0 -a -z '' ']'
+ CDS_MPS_SESSION=icfb4075
+ export CDS_MPS_SESSION

exec $wb_bin "$@"
+ exec /home/apps/common/cadence/Linux/ic_5141/tools/dfII/bin/icfb.exe
Incorrectly built binary which accesses errno or h_errno directly.
Needs to be fixed.
---------------------------------------------------------

i did not find any broken if-fi statements in the log. if there are
some shell syntactic errors, i dont know of, please explain. thanx.

SP
 

Welcome to EDABoard.com

Sponsor

Back
Top