From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1AB43D45F for ; Tue, 1 Nov 2005 22:57:05 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jA1Lv4hP025702 for ; Tue, 1 Nov 2005 22:57:04 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA06175 for ; Tue, 1 Nov 2005 22:57:04 +0100 (MET) Received: from slinky.cs.nyu.edu (SLINKY.CS.NYU.EDU [128.122.20.14]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jA1Lv3j0032640 for ; Tue, 1 Nov 2005 22:57:03 +0100 Received: from localhost (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id jA1Lv1H3028742; Tue, 1 Nov 2005 16:57:01 -0500 (EST) Date: Tue, 1 Nov 2005 16:57:01 -0500 (EST) From: Igor Pechtchanski Reply-To: caml-list@inria.fr To: Kip Macy Cc: caml-list@inria.fr Subject: Re: camlidl test build failure Re: [Caml-list] CamlIDL question In-Reply-To: Message-ID: References: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/Plain; charset=US-ASCII X-Miltered: at concorde with ID 4367E4B0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4367E4AF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; camlidl:01 caml-list:01 camlidl:01 ocamlc:01 compiler:01 usr:01 lib:01 ocaml:01 cpp:01 --version:01 cpp:01 gcc:01 ocamlc:01 lib:01 -custom:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Thu, 27 Oct 2005, Kip Macy wrote: > the tests in camlidl-1.0.5 won't build: > > > ocamlc -v > The Objective Caml compiler, version 3.08.2 > Standard library directory: /usr/local/lib/ocaml > > cpp --version > cpp (GCC) 3.4.4 [FreeBSD] 20050518 > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > make > ocamlc -I ../lib -cc cc -custom -o testcomp com.cmo comcomp.o component.o component.cmo testcomponent.cmo ../runtime/libcamlidl.a ^^^^^^ Since nobody replied, I'll take a stab at it. Shouldn't the above line be ocamlc -I ../lib -cc g++ -custom -o testcomp com.cmo comcomp.o component.o component.cmo testcomponent.cmo ../runtime/libcamlidl.a at least? All of the errors below look like they stem from the fact that "cc" is used to compile C++ code (newer GCCs are stricter in this regard). BTW, "cpp" is the C preprocessor, not the C++ compiler -- why do you think its version is relevant? HTH, Igor > comcomp.o(.text+0xd): In function `create_instance':/home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `operator new(unsigned int)' > comcomp.o(.gnu.linkonce.r._ZTV2IY+0x8):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `__cxa_pure_virtual' > comcomp.o(.gnu.linkonce.r._ZTV2IY+0xc):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `__cxa_pure_virtual' > comcomp.o(.gnu.linkonce.r._ZTV2IY+0x10):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual' > comcomp.o(.gnu.linkonce.r._ZTV2IY+0x14):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual' > comcomp.o(.gnu.linkonce.r._ZTV2IY+0x18):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual' > comcomp.o(.gnu.linkonce.r._ZTV2IY+0x1c):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:106: more undefined references to `__cxa_pure_virtual' follow > comcomp.o(.gnu.linkonce.t._ZN2CA7ReleaseEv+0x6b): In function `CA::Release()':/home/kmacy/camlidl-1.05/tests/comcomp.cpp:148: undefined reference to `operator delete(void*)' > comcomp.o(.gnu.linkonce.r._ZTI8IUnknown+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' > comcomp.o(.gnu.linkonce.r._ZTI2IX+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' > comcomp.o(.gnu.linkonce.r._ZTI2IY+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' > comcomp.o(.gnu.linkonce.r._ZTI2CA+0x0): undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info' > comcomp.o(.eh_frame+0x11):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__gxx_personality_v0' > Error while building custom runtime system > *** Error code 2 -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA