A list for the developers of CellML tools

Text archives Help


[cellml-dev] Building CellML DOM


Chronological Thread 
  • From: ak.miller at auckland.ac.nz (Andrew Miller)
  • Subject: [cellml-dev] Building CellML DOM
  • Date: Sun, 24 Feb 2008 20:55:12 +1300

David Brooks wrote:
> Hi Andrew,
>
> I'm amusing myself with getting to know PCEnv, and as part of this
> process am attempting to build it on my system (MacBook Pro, Tiger
> 10.4.11). So I'm finding out what the prerequisites are and building
> them...
>
> The CellML_DOM_API build is giving me problems. It first complained
> about missing header files - I had to modify
> ./interfaces/xpcom_build.mk and add lines for the .hxx files to rectify
> this, and have added a Tracker item.

Thanks for the patch - I think that these header files should be in
there, although I'm still not sure why their absence was causing this
problem, because the P2X*.hxx are generated from the same rule, and they
were getting built first (was this a parallel build with make -jX (where
X is a number greater than 1)?). I will look into this at some point.
The hourly builds for Mac OS X do work, although it would have been a
long time since the headers needed to be regenerated.

>
> Now I get the following - do you have any ideas?? Does the DOM (and
> PCEnv) depend on a particular version of Mozilla? I've built the version
> from CVS, as per the instructions at
> http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites.
Yes, PCEnv needs a number of special patches to fix various things like
RDF parsing (Mozilla's internal RDF API isn't conformant with the latest
RDF standards) and, as you have found, to work around bugs in the Darwin
linker that cause problems for certain XPCOM components (although even
someone who works on the Apple compiler team and also Mozilla doesn't
know exactly what that error message means!).

The version of Mozilla you need is maintained in a git repository on my
system, and occasionally gets merged from Mozilla's CVS, and pushed into
our public Subversion from git, at
https://svn.physiomeproject.org/svn/physiome/mozilla/trunk

Kind regards,
Andrew

>
> (I'm not sure why there is a warning re libxml2.la - the file is in
> /usr/lib)
>
>
> Thanks,
>
> Dave
>
> ====================================
>
> [dave at djbmac CellML_DOM_API_1.3.1]$ make
> make all-am
> /bin/sh ./libtool --tag=CXX --mode=link g++
> -I/Users/dave/cellml/mozilla/obj-ff/dist/include/nspr
> -I/Users/dave/cellml/mozilla/obj-ff/dist/include/xpcom
> -I/Users/dave/cellml/mozilla/obj-ff/dist/include/string -I./interfaces
> -I. -I./sources -I./simple_interface_generators/glue/xpcom
> -I./simple_interface_generators/glue/xpcom -DMODULE_CONTAINS_xpcom
> -DMODULE_CONTAINS_DOMAPISPEC -DMODULE_CONTAINS_MathMLcontentAPISPEC
> -DMODULE_CONTAINS_CellMLAPISPEC -DMODULE_CONTAINS_CellMLevents -g -O2
> -O2 -ffast-math -no-undefined -module -o libcellml_xpcom_bridge.la
> -rpath /usr/local/lib libcellml_xpcom_bridge_la-p2xDOM_APISPEC.lo
> libcellml_xpcom_bridge_la-p2xDOM_events.lo
> libcellml_xpcom_bridge_la-p2xMathML_content_APISPEC.lo
> libcellml_xpcom_bridge_la-p2xCellML_APISPEC.lo
> libcellml_xpcom_bridge_la-p2xCellML_events.lo
> libcellml_xpcom_bridge_la-x2pDOM_APISPEC.lo
> libcellml_xpcom_bridge_la-x2pDOM_events.lo
> libcellml_xpcom_bridge_la-x2pMathML_content_APISPEC.lo
> libcellml_xpcom_bridge_la-x2pCellML_APISPEC.lo
> libcellml_xpcom_bridge_la-x2pCellML_events.lo
> libcellml_xpcom_bridge_la-CellMLBootstrapXPCOM.lo
> -Wl,-executable_path,/Users/dave/cellml/mozilla/obj-ff/dist/bin
> ./libcellml.la ./libXPCOMSupport.la
> libtool: link: warning:
> `/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libxml2.la' seems to be
> moved
> libtool: link: g++ -o .libs/libcellml_xpcom_bridge.0.dylib -bundle
> .libs/libcellml_xpcom_bridge_la-p2xDOM_APISPEC.o
> .libs/libcellml_xpcom_bridge_la-p2xDOM_events.o
> .libs/libcellml_xpcom_bridge_la-p2xMathML_content_APISPEC.o
> .libs/libcellml_xpcom_bridge_la-p2xCellML_APISPEC.o
> .libs/libcellml_xpcom_bridge_la-p2xCellML_events.o
> .libs/libcellml_xpcom_bridge_la-x2pDOM_APISPEC.o
> .libs/libcellml_xpcom_bridge_la-x2pDOM_events.o
> .libs/libcellml_xpcom_bridge_la-x2pMathML_content_APISPEC.o
> .libs/libcellml_xpcom_bridge_la-x2pCellML_APISPEC.o
> .libs/libcellml_xpcom_bridge_la-x2pCellML_events.o
> .libs/libcellml_xpcom_bridge_la-CellMLBootstrapXPCOM.o
> ./.libs/libcellml.dylib
> -L/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../ -L/usr/lib
> /usr/lib/libxml2.dylib -lpthread -lz /usr/lib/libiconv.dylib -lm
> ./.libs/libXPCOMSupport.dylib
> -L/Users/dave/cellml/mozilla/obj-ff/dist/lib -lxpcom -lxpcomglue_s
> -lnspr4 -Wl,-executable_path
> -Wl,/Users/dave/cellml/mozilla/obj-ff/dist/bin /usr/bin/ld:
> /Users/dave/cellml/mozilla/obj-ff/dist/lib/libxpcomglue_s.a(nsGenericFactory.o)
> malformed object, illegal reference for -dynamic code (reference to a
> coalesced section (__DATA,__const_coal) from section
> (__TEXT,__textcoal_nt) relocation entry (91))
> collect2: ld returned 1 exit status
> make[1]: *** [libcellml_xpcom_bridge.la] Error 1
> make: *** [all] Error 2
>
> ====================================




  • [cellml-dev] Building CellML DOM, Andrew Miller, 02/24/2008

Archive powered by MHonArc 2.6.18.

Top of page