Bug#595281: salome: FTBFS on Alpha, IA64 and Sparc at GEOM_GenSK.cc

Adam C Powell IV hazelsct at debian.org
Mon Oct 4 12:12:35 UTC 2010


retitle 595281 salome: FTBFS in GEOM_SRC_5.1.3/idl due to race condition
tags 595281 pending
thanks

I just reproduced a version of this bug on amd64 when building with
parallel=2 (same result as the Sparc issue below, even the same line
number), so this is not arch-specific.  I believe it is because the IDL
compiler gets part-way through the file, and the C++ compiler starts its
work before GEOM_GenSK.cc is complete.  It wouldn't surprise me if the
failures happen on block boundaries...

I've put .NOTPARALLEL: in the Makefile.am of that directory and am not
seeing any problems in three builds (where before it failed every time),
so I'm pushing this to alioth and marking it pending.  Yay!

Aaron, do you have any advice on avoiding race conditions in generated
code?  I tried having the omniidl targets include touching a stamp file
after finishing code generation, but couldn't get that to work.

Once the build gets past GEOM, it seems fine until
XDATA_SRC_5.1.3/src/XDATA2SALOME -- I'll try a .NOTPARALLEL: there and
then attempt a new build of the whole thing.  If that works, there's
just one more new FTBFS bug (598690) to fix before upload.

-Adam

On Thu, 2010-09-02 at 13:22 -0400, Adam C Powell IV wrote:
> Package: src:salome
> Version: 5.1.3-10
> Severity: serious
> 
> Three architectures are failing to build on the same file in the GEOM
> module.  Below are excerpts from the buildd logs.
> 
> Alpha:
> libtool: compile:  g++ "-DPACKAGE_NAME=\"Salome2 Project GEOM module\"" -DPACKAGE_TARNAME=\"SalomeGEOM\" -DPACKAGE_VERSION=\"5.1.3\" "-DPACKAGE_STRING=\"Salome2 Project GEOM module 5.1.3\"" -DPACKAGE_BUGREPORT=\"webmaster.salome at opencascade.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"SalomeGEOM\" -DVERSION=\"5.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBDL=1 -DHAVE_LIBM=1 "-DHAVE_NAMESPACES=/**/" -DYYTEXT_POINTER=1 "-DWITH_NUMPY=/**/" -DHAVE_PTHREAD=1 -D__OSVERSION__=2 "-DOMNIORB=/**/" "-DCORBA_HAVE_POA=/**/" "-DCORBA_ORB_INIT_HAVE_3_ARGS=/**/" "-DCORBA_ORB_INIT_THIRD_ARG=/**/" -I. -I../../../GEOM_SRC_5.1.3/idl -I../idl -DOMNIORB_VERSION=4 -D__linux__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I/usr/include -I/usr/include/omniORB4 -I/usr/include/COS -I/build/buildd-salome_5.1.3-10-alpha-J871wX/salome-5.1.3/debian/tmp/usr/include/salome -DHAVE_MPI2 -I/build/buildd-salome_5.1.3-10-alpha-J871wX/salome-5.1.3/debian/tmp/usr/include/salome -include SALOMEconfig.h -g -O2 -g -D_DEBUG_ -g -Wparentheses -Wreturn-type -Wmissing-declarations -Wunused -pthread -c GEOM_SupervSK.cc  -fPIC -DPIC -o .libs/libSalomeIDLGEOM_la-GEOM_SupervSK.o
> GEOM_GenSK.cc: In function 'void _0RL_lcfn_095c7337dad1dbdb_f4000000(omniCallDescriptor*, omniServant*)':
> GEOM_GenSK.cc:2982: error: '_0RL_cd_095c7337dad1dbdb_6300000' was not declared in this scope
> GEOM_GenSK.cc:2982: error: expected ')' at end of input
> GEOM_GenSK.cc:2982: error: expected ',' or ';' at end of input
> GEOM_GenSK.cc:2982: warning: unused variable 'tcd'
> GEOM_GenSK.cc:2982: error: expected '}' at end of input
> GEOM_GenSK.cc: At global scope:
> GEOM_GenSK.cc:13: warning: '_0RL_library_version' defined but not used
> GEOM_GenSK.cc:2980: warning: 'void _0RL_lcfn_095c7337dad1dbdb_f4000000(omniCallDescriptor*, omniServant*)' defined but not used
> make[2]: *** [libSalomeIDLGEOM_la-GEOM_GenSK.lo] Error 1
> make[2]: *** Waiting for unfinished jobs....
> 
> IA64:
> libtool: compile:  g++ "-DPACKAGE_NAME=\"Salome2 Project GEOM module\"" -DPACKAGE_TARNAME=\"SalomeGEOM\" -DPACKAGE_VERSION=\"5.1.3\" "-DPACKAGE_STRING=\"Salome2 Project GEOM module 5.1.3\"" -DPACKAGE_BUGREPORT=\"webmaster.salome at opencascade.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"SalomeGEOM\" -DVERSION=\"5.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBDL=1 -DHAVE_LIBM=1 "-DHAVE_NAMESPACES=/**/" -DYYTEXT_POINTER=1 "-DWITH_NUMPY=/**/" -DHAVE_PTHREAD=1 -D__OSVERSION__=2 "-DOMNIORB=/**/" "-DCORBA_HAVE_POA=/**/" "-DCORBA_ORB_INIT_HAVE_3_ARGS=/**/" "-DCORBA_ORB_INIT_THIRD_ARG=/**/" -I. -I../../../GEOM_SRC_5.1.3/idl -I../idl -DOMNIORB_VERSION=4 -D__linux__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I/usr/include -I/usr/include/omniORB4 -I/usr/include/COS -I/build/buildd-salome_5.1.3-10-ia64-tatkt7/salome-5.1.3/debian/tmp/usr/include/salome -DHAVE_MPI2 -I/build/buildd-salome_5.1.3-10-ia64-tatkt7/salome-5.1.3/debian/tmp/usr/include/salome -include SALOMEconfig.h -D_OCC64 -g -O2 -g -D_DEBUG_ -g -Wparentheses -Wreturn-type -Wmissing-declarations -Wunused -pthread -c GEOM_GenSK.cc  -fPIC -DPIC -o .libs/libSalomeIDLGEOM_la-GEOM_GenSK.o
> In file included from GEOM_GenSK.cc:3:
> GEOM_Gen.hh:2:1: error: unterminated #ifndef
> In file included from GEOM_GenSK.cc:4:
> /usr/include/omniORB4/IOP_S.h:57: error: expected constructor, destructor, or type conversion before 'class'
> In file included from GEOM_GenSK.cc:5:
> /usr/include/omniORB4/IOP_C.h:149: error: 'Rope' has not been declared
> /usr/include/omniORB4/IOP_C.h:158: error: expected ';' before '*' token
> 
> Plus *lots *more errors presumably flowing from the unterminated #ifdef
> 
> Sparc:
> libtool: compile:  g++ "-DPACKAGE_NAME=\"Salome2 Project GEOM module\"" -DPACKAGE_TARNAME=\"SalomeGEOM\" -DPACKAGE_VERSION=\"5.1.3\" "-DPACKAGE_STRING=\"Salome2 Project GEOM module 5.1.3\"" -DPACKAGE_BUGREPORT=\"webmaster.salome at opencascade.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"SalomeGEOM\" -DVERSION=\"5.1.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBDL=1 -DHAVE_LIBM=1 "-DHAVE_NAMESPACES=/**/" -DYYTEXT_POINTER=1 "-DWITH_NUMPY=/**/" -DHAVE_PTHREAD=1 -D__OSVERSION__=2 "-DOMNIORB=/**/" "-DCORBA_HAVE_POA=/**/" "-DCORBA_ORB_INIT_HAVE_3_ARGS=/**/" "-DCORBA_ORB_INIT_THIRD_ARG=/**/" -I. -I../../../GEOM_SRC_5.1.3/idl -I../idl -DOMNIORB_VERSION=4 -D__sparc__ -D__linux__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I/usr/include -I/usr/include/omniORB4 -I/usr/include/COS -I/build/buildd-salome_5.1.3-10-sparc-bm8qjx/salome-5.1.3/debian/tmp/usr/include/salome -DHAVE_MPI2 -I/build/buildd-salome_5.1.3-10-sparc-bm8qjx/salome-5.1.3/debian/tmp/usr/include/salome -include SALOMEconfig.h -g -O2 -g -D_DEBUG_ -g -Wparentheses -Wreturn-type -Wmissing-declarations -Wunused -pthread -c GEOM_SupervSK.cc  -fPIC -DPIC -o .libs/libSalomeIDLGEOM_la-GEOM_SupervSK.o
> GEOM_GenSK.cc: In member function 'GEOM::_objref_GEOM_Object* GEOM::_objref_GEOM_IBasicOperations::MakeLine(GEOM::_objref_GEOM_Object*, GEOM::_objref_GEOM_Object*)':
> GEOM_GenSK.cc:2596: error: '_' was not declared in this scope
> GEOM_GenSK.cc:2596: error: expected ';' at end of input
> GEOM_GenSK.cc:2596: error: expected '}' at end of input
> GEOM_GenSK.cc: At global scope:
> GEOM_GenSK.cc:13: warning: '_0RL_library_version' defined but not used
> make[2]: *** [libSalomeIDLGEOM_la-GEOM_GenSK.lo] Error 1
> make[2]: *** Waiting for unfinished jobs....
> 
> -Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
http://www.opennovation.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20101004/32878fa7/attachment.pgp>


More information about the debian-science-maintainers mailing list