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

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 replySorry 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 replyIf 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 replyWhy 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




  Subject:   Be Bold !!
  ( 14 subscribers )  
Please rate this page: