Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 3 > Re: Adapting fr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 11 Topic 73 of 148
Post > Topic >>

Re: Adapting from pm3 to cm3

by "Carl C. Hoff" <choff@[EMAIL PROTECTED] > Dec 9, 2003 at 07:54 PM

Robin Garner wrote:

> Olaf Wagner <wagner@[EMAIL PROTECTED]
> wrote in
> news:HpE3zF.y3u@[EMAIL PROTECTED]
>
> > Robin Garner <robin.garner@[EMAIL PROTECTED]
> wrote:
> >
> >
> >   ./do-cm3-std.sh buildlocal
> >   sudo ./do-cm3-std.sh build****p
> ...
> > Probably the installation notes are not as clear about the semantics
of
> > build, ****p, and build****p as they should.
> >
>
> Thanks Olaf, it all works much better now - it seemed natural to assume
> that "build****p" was the same as "build" followed by "****p".  Now I can
> build my system, but only after some hacking of m3makefiles.  Using
> include_dir seems to crash the build system.
>
> In the m3makefile, I have
>
> include_dir("../../lib/src"), to share a handful of common modules
between
> the 3 programs that comprise my system.  If I compile with the
m3makefiles
> as written, I get
>
> % cm3
> --- building in SOLgnu ---
>
> ***
> *** runtime error:
> ***    Exception "PathnamePosix.CheckedRuntimeError" not in RAISES list
> ***    file "../src/os/POSIX/PathnamePosix.m3", line 98
> ***
>
> Abort (core dumped)
> %
>
> but copying the contents of ../lib/src to ./src and splicing
> ../lib/src/m3makefile into src/m3makefile, it all compiles and builds
just
> fine.
>
> Any ideas ?
>
> Thanks in advance,
> Robin

What I do to share the common files among the programs for my research is
include a symbolic link in the "src" directory.  The m3makefile in that
directory contains "include_dir ("COMMON")".  COMMON is a symbolic link to
"../../COMMON".

I am using the SRC compiler, not pm3 or cm3.  If I tried your approach
with
the SRC compiler, I do not recall.  I think I am using the symbolic link
approach because it works and it was the first to come to mind.

Carl C. Hoff
 




 11 Posts in Topic:
Adapting from pm3 to cm3
Robin Garner <robin.ga  2003-12-02 08:58:38 
Re: Adapting from pm3 to cm3
Olaf Wagner <wagner@[E  2003-12-03 08:12:42 
Re: Adapting from pm3 to cm3
Robin Garner <robin.ga  2003-12-04 02:11:05 
Re: Adapting from pm3 to cm3
Olaf Wagner <wagner@[E  2003-12-04 21:35:38 
Re: Adapting from pm3 to cm3
Robin Garner <robin.ga  2003-12-08 00:30:40 
Re: Adapting from pm3 to cm3
Olaf Wagner <wagner@[E  2003-12-08 21:33:15 
Re: Adapting from pm3 to cm3
"Carl C. Hoff"   2003-12-09 19:54:53 
Re: Adapting from pm3 to cm3
robin.garner@[EMAIL PROTE  2003-12-16 01:01:15 
Re: Adapting from pm3 to cm3
Olaf Wagner <wagner@[E  2003-12-18 22:38:32 
Re: Adapting from pm3 to cm3
Robin Garner <robin.ga  2003-12-22 03:19:03 
Re: Adapting from pm3 to cm3
Robin Garner <robin.ga  2003-12-04 02:25:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 1:52:27 CDT 2008.