login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #123 Compile modified spad file revision 1 of 1

1
Editor:
Time: 2007/11/17 21:54:50 GMT-8
Note:

changed:
-
Is it possible to compile modified spad file.
If I modify fraction.spad ( domain fraction) 
in original source directory,
It compiles only the QuotientField category.



From BillPage Sun Mar 13 21:19:52 -0600 2005
From: Bill Page
Date: Sun, 13 Mar 2005 21:19:52 -0600
Subject: Yes it is possible
Message-ID: <20050313211952-0600@page.axiom-developer.org>

You have not provided enough information to know what you
might be doing wrong, but it is certainly possible. For
example in Axiom for Windows version 0.1.4 (see AxiomDownload)
you can do the following::

  )cd "C:/Program files/axiom/mnt/windows/src/algebra"
  )sys copy fraction.spad my_fraction.spad
  )edit my_fraction.spad
    ... make the change to domain Fraction, etc.
  )compile my_fraction.spad

All of the categories and domains defined in the modified
file my_fraction.spad, including the domain Fraction will
be re-compiled. But watch for error message and re-edit
and compile the file again if you make a mistake.

You will be able to access the modified domains and
categories later in this same Axiom session. If you exit
Axiom and then want to use the new version of the domain
Fraction in a new session without re-compiling it, you
can use the following commands::

  )cd "C:/Program files/axiom/mnt/windows/src/algebra"
  )library FRAC

If you are using the linux version of Axiom, the procedure
is similar (only the file names and the copy command change).

If this does not work, please provide more details about
exactly what you are doing.

From BillPage Sun Mar 13 21:22:12 -0600 2005
From: Bill Page
Date: Sun, 13 Mar 2005 21:22:12 -0600
Subject: Please confirm that this works
Message-ID: <20050313212212-0600@page.axiom-developer.org>

Severity: wishlist => normal 
Status: open => testing 


From unknown Sun Mar 13 22:16:32 -0600 2005
From: 
Date: Sun, 13 Mar 2005 22:16:32 -0600
Subject: I recompile all axiom
Message-ID: <20050313221632-0600@page.axiom-developer.org>

I recompile all axiom (in axiom directory I do a make).
If I modify interpreter it's correctly recompiled but not
the modified algebra file (domain ???).

From BillPage Sun Mar 13 22:36:19 -0600 2005
From: Bill Page
Date: Sun, 13 Mar 2005 22:36:19 -0600
Subject: you  must edit the file fraction.spad.pamphlet
Message-ID: <20050313223619-0600@page.axiom-developer.org>

If you are re-building all of axiom using 'make', then you must
change only to the *.pamphlet files. All the other files are
generated from these files. You will find the algebra pamphlet
files in 'axiom--main--1\src\algebra'.

Pamphlet files contain both the spad program code and its
documentation (i.e. in literate programming style). If you
intend to submit patches for inclusion in a new release
of Axiom, please add some documentation about the change you
are making. And if possible, expand the existing documentation
(if any) where it is missing or incorrect.

From unknown Mon Mar 14 10:26:22 -0600 2005
From: 
Date: Mon, 14 Mar 2005 10:26:22 -0600
Subject: code.lsp is not regenerated in int/algebra/FRAC.NRLIB
Message-ID: <20050314102622-0600@page.axiom-developer.org>

Sorry I work on pamphlet file.
In 'int' directory, the file FRAC.spad is correctly generated but not compiled.
For example add:
  print("I am here"::OutputForm)$Lisp
somewhere in domain fraction (file: fraction.spad.pamphlet)



From BillPage Mon Mar 14 12:49:13 -0600 2005
From: Bill Page
Date: Mon, 14 Mar 2005 12:49:13 -0600
Subject: version of Axiom source
Message-ID: <20050314124913-0600@page.axiom-developer.org>

What version of Axiom source are you using? Did you get the
most recent source from the February CVS or prior? Or did you
get it from arch (tla)? If from arch, what is patch level?

If you delete int/algebra/FRAC.NRLIB/code.lsp and then re-run
Axiom 'make' is the domain properly compiled?

From unknown Mon Mar 14 15:30:34 -0600 2005
From: 
Date: Mon, 14 Mar 2005 15:30:34 -0600
Subject: February 2005 sources
Message-ID: <20050314153034-0600@page.axiom-developer.org>

If I delete int/algebra/FRAC.NRLIB/code.lsp the domain is not recompiled.
Its the same for int/algebra/FRAC.NRLIB/code.o.
That works if I remove mnt/linux/algebra/FRAC.o, int/algebra/FRAC.NRLIB/code.o and int/algebra/FRAC.spad.
make : GNU Make 3.80
PS: Sometimes "Loading /usr/local/axiom/mnt/linux/algebra/FRAC.o" is printed.

From unknown Tue Mar 22 20:00:15 -0600 2005
From: 
Date: Tue, 22 Mar 2005 20:00:15 -0600
Subject: Status?
Message-ID: <20050322200015-0600@page.axiom-developer.org>

Why is it in status 'testing' ?
The Makefile from cvs has been changed?

From unknown Sat Aug 20 07:19:21 -0500 2005
From: unknown
Date: Sat, 20 Aug 2005 07:19:21 -0500
Subject: property change
Message-ID: <20050820071921-0500@page.axiom-developer.org>

Category: building Axiom from source => Axiom Compiler 
Severity: normal => wishlist 
Status: testing => need more info 


Submitted by : (unknown) at: 2007-11-17T21:54:50-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

Is it possible to compile modified spad file. If I modify fraction.spad ( domain fraction) in original source directory, It compiles only the QuotientField? category.

Yes it is possible --Bill Page, Sun, 13 Mar 2005 21:19:52 -0600 reply
You have not provided enough information to know what you might be doing wrong, but it is certainly possible. For example in Axiom for Windows version 0.1.4 (see AxiomDownload?) you can do the following:
  )cd "C:/Program files/axiom/mnt/windows/src/algebra"
  )sys copy fraction.spad my_fraction.spad
  )edit my_fraction.spad
    ... make the change to domain Fraction, etc.
  )compile my_fraction.spad

All of the categories and domains defined in the modified file my_fraction.spad, including the domain Fraction will be re-compiled. But watch for error message and re-edit and compile the file again if you make a mistake.

You will be able to access the modified domains and categories later in this same Axiom session. If you exit Axiom and then want to use the new version of the domain Fraction in a new session without re-compiling it, you can use the following commands:

  )cd "C:/Program files/axiom/mnt/windows/src/algebra"
  )library FRAC

If you are using the linux version of Axiom, the procedure is similar (only the file names and the copy command change).

If this does not work, please provide more details about exactly what you are doing.

Please confirm that this works --Bill Page, Sun, 13 Mar 2005 21:22:12 -0600 reply
Severity: wishlist => normal Status: open => testing

I recompile all axiom
Sun, 13 Mar 2005 22:16:32 -0600 reply
I recompile all axiom (in axiom directory I do a make). If I modify interpreter it's correctly recompiled but not the modified algebra file (domain ???).

you must edit the file fraction.spad.pamphlet --Bill Page, Sun, 13 Mar 2005 22:36:19 -0600 reply
If you are re-building all of axiom using make, then you must change only to the *.pamphlet files. All the other files are generated from these files. You will find the algebra pamphlet files in axiom--main--1\src\algebra.

Pamphlet files contain both the spad program code and its documentation (i.e. in literate programming style). If you intend to submit patches for inclusion in a new release of Axiom, please add some documentation about the change you are making. And if possible, expand the existing documentation (if any) where it is missing or incorrect.

code.lsp is not regenerated in int/algebra/FRAC.NRLIB
Mon, 14 Mar 2005 10:26:22 -0600 reply
Sorry I work on pamphlet file. In int directory, the file FRAC.spad is correctly generated but not compiled. For example add: print(I am here)$Lisp somewhere in domain fraction (file: fraction.spad.pamphlet)

version of Axiom source --Bill Page, Mon, 14 Mar 2005 12:49:13 -0600 reply
What version of Axiom source are you using? Did you get the most recent source from the February CVS or prior? Or did you get it from arch (tla)? If from arch, what is patch level?

If you delete int/algebra/FRAC.NRLIB/code.lsp and then re-run Axiom make is the domain properly compiled?

February 2005 sources
Mon, 14 Mar 2005 15:30:34 -0600 reply
If I delete int/algebra/FRAC.NRLIB/code.lsp the domain is not recompiled. Its the same for int/algebra/FRAC.NRLIB/code.o. That works if I remove mnt/linux/algebra/FRAC.o, int/algebra/FRAC.NRLIB/code.o and int/algebra/FRAC.spad. make : GNU Make 3.80 PS: Sometimes "Loading /usr/local/axiom/mnt/linux/algebra/FRAC.o" is printed.
Status?
Tue, 22 Mar 2005 20:00:15 -0600 reply
Why is it in status testing ? The Makefile from cvs has been changed?

property change --unknown, Sat, 20 Aug 2005 07:19:21 -0500 reply
Category: building Axiom from source => Axiom Compiler Severity: normal => wishlist Status: testing => need more info