axiom version 20081101 FTBFS on all platforms

Bug #387255 reported by Morten Kjeldgaard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Axiom
Fix Released
Unknown
axiom (Debian)
Fix Released
Unknown
axiom (Ubuntu)
Fix Released
Undecided
Brian Thomason

Bug Description

Binary package hint: axiom

Axiom fails to build on all platforms with the error:

cp: cannot stat `/build/buildd/axiom-20081101/int/algebra/DROPT1.nrlib/code.o': No such file or directory
make[4]: *** [/build/buildd/axiom-20081101/mnt/linux/algebra/DROPT1.o] Error 1

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

Trying to compile the newest version (20090301), I noticed the following lines in the configure output:

checking for sbrk... yes
checking for ADDR_NO_RANDOMIZE constant... yes, 40000
checking for personality(ADDR_NO_RANDOMIZE) support... no
checking that sbrk is (now) non-random... no
Cannot build with randomized sbrk. Your options:
 - upgrade to a kernel/libc that knows about personality(ADDR_NO_RANDOMIZE)
 - recompile your kernel with CONFIG_COMPAT_BRK (if it has that option)
 - run sysctl kernel.randomize_va_space=0 before using gcl

Changed in axiom (Ubuntu):
assignee: nobody → Morten Kjeldgaard (mok0)
Revision history for this message
Morten Kjeldgaard (mok0) wrote :

I could get version 20090301 to compile by applying appropriate setarch commands as shown in the attached patch. However, after the build, invokes axiom and it segfaults:

echo ")lisp (progn (setq compiler::*default-system-p* nil)(si::save-system \"foo\"))" | AXIOM=/build/mok-axiom_20090301-0ubuntu1-amd64-MAIheK/axiom-20090301-0ubuntu1/mnt/linux /build/mok-axiom_20090301-0ubuntu1-amd64-MAIheK/axiom-20090301-0ubuntu1/mnt/linux/bin/AXIOMsys && mv foo mnt/linux/bin/AXIOMsys
                        AXIOM Computer Algebra System
                         Version: Axiom (March 2009)
                Timestamp: Monday June 15, 2009 at 16:12:27
-----------------------------------------------------------------------------
   Issue )copyright to view copyright notices.
   Issue )summary for a summary of useful system commands.
   Issue )quit to leave AXIOM and return to shell.
-----------------------------------------------------------------------------

   Re-reading compress.daase Re-reading interp.daase
   Re-reading operation.daaseSegmentation fault
make: *** [build-stamp] Error 139
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Changed in axiom (Ubuntu):
assignee: Morten Kjeldgaard (mok0) → nobody
Revision history for this message
daly (daly-axiom-developer) wrote : Re: [Bug 387255] Re: axiom version 20081101 FTBFS on all platforms

Morten Kjeldgaard wrote:
> I could get version 20090301 to compile by applying appropriate setarch
> commands as shown in the attached patch. However, after the build,
> invokes axiom and it segfaults:
>
> echo ")lisp (progn (setq compiler::*default-system-p* nil)(si::save-system \"foo\"))" | AXIOM=/build/mok-axiom_20090301-0ubuntu1-amd64-MAIheK/axiom-20090301-0ubuntu1/mnt/linux /build/mok-axiom_20090301-0ubuntu1-amd64-MAIheK/axiom-20090301-0ubuntu1/mnt/linux/bin/AXIOMsys && mv foo mnt/linux/bin/AXIOMsys
> AXIOM Computer Algebra System
> Version: Axiom (March 2009)
> Timestamp: Monday June 15, 2009 at 16:12:27
> -----------------------------------------------------------------------------
> Issue )copyright to view copyright notices.
> Issue )summary for a summary of useful system commands.
> Issue )quit to leave AXIOM and return to shell.
> -----------------------------------------------------------------------------
>
> Re-reading compress.daase Re-reading interp.daase
> Re-reading operation.daaseSegmentation fault
> make: *** [build-stamp] Error 139
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2
>
>
> ** Attachment added: "rules.patch"
> http://launchpadlibrarian.net/27945982/rules.patch
>
> ** Changed in: axiom (Ubuntu)
> Assignee: Morten Kjeldgaard (mok0) => (unassigned)
>
>

The problem is that you are invoking axiom without using the
setarch function at the time you run it. This is not an Axiom
problem but a problem with your SELinux permissions setup.

Axiom needs to modify the heap (lisp does this normally) and
the selinux system is blocking this.

Turn off SELinux and it will work.

Try running Axiom without SELinux enabled and let me know if
the problem is cured or not.

Tim

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

That's what I would have done, but SELINUX does not appear to be enabled on Ubuntu's kernel:

$ grep SELINUX /boot/config-2.6.28-11-generic
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_DISABLE=y
# CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT is not set
# CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set

The /selinux directory exists, but is empty.

Revision history for this message
daly (daly-axiom-developer) wrote :

Morten Kjeldgaard wrote:
> That's what I would have done, but SELINUX does not appear to be enabled
> on Ubuntu's kernel:
>
> $ grep SELINUX /boot/config-2.6.28-11-generic
> CONFIG_SECURITY_SELINUX=y
> CONFIG_SECURITY_SELINUX_AVC_STATS=y
> CONFIG_SECURITY_SELINUX_BOOTPARAM=y
> CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0
> CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
> CONFIG_SECURITY_SELINUX_DEVELOP=y
> CONFIG_SECURITY_SELINUX_DISABLE=y
> # CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT is not set
> # CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set
>
> The /selinux directory exists, but is empty.
>
>
try (as root)
echo 0 >/proc/sys/kernel/exec-shield
echo 0 >/proc/sys/kernel/randomize_va_space

If that cures the problem then the problem is SELinux
If not, then I'm completely puzzled because the error
you report has always been caused by SELinux.

See faq 36 and faq 37

Tim

Changed in axiom:
status: Unknown → New
Changed in axiom (Debian):
status: Unknown → New
Revision history for this message
daly (daly-axiom-developer) wrote : Axiom on Ubuntu and Debian

Axiom needs to updated in the debian archives but I
do not know a Debian developer who can do it. I would
be willing to update it myself but I don't have the
required permissions.

Who can help?

Tim Daly
Axiom Lead Developer

Revision history for this message
Scott Howard (showard314) wrote :

Hello daly, thanks for your work and helping the distribution! It may be best to contact the Debian maintainer for Axiom directly:
Camm Maguire <email address hidden>

He does not seem to be actively working on it in Debian, but he should be the contact (and the person who can get it uploaded). If he doesn't respond, you would have to try a NMU (non-maintainer upload), probably by contacting the Debian Science team mailing list (and the Ubuntu Science might be able to help too, but they don't necessarily have Debian upload permissions).

Revision history for this message
Christoph Egger (christoph-egger) wrote : Axiom in Debian

Hi!

 I'm currently having a look at this open RC Bug in Debian and
Ubuntu. You said you know how this is to be solved, can you provide a
patch or instructions on how to fix it?

Thanks

 Christoph

--
/"\ ASCII Ribbon : GPG-Key ID: 0xD49AE731
\ / Campaign : CaCert Assurer
 X against HTML : Debian Maintainer
/ \ in eMails : http://www.debian.org/

http://www.christoph-egger.org/

Revision history for this message
daly (daly-axiom-developer) wrote : Re: [Bug 387255] Axiom in Debian

Christoph Egger wrote:
> Hi!
>
> I'm currently having a look at this open RC Bug in Debian and
> Ubuntu. You said you know how this is to be solved, can you provide a
> patch or instructions on how to fix it?
>
> Thanks
>
> Christoph
>
>
Christoph,

I downloaded debian-503-i386-netinst.iso and used it to build a clean
version of debian.

I set up the prerequired packages (not all are required but....) and
then built the latest release (November 2009)

I did the following steps:

apt-get -y install gcc build-essential debhelper gcl gettext gs-gpl
html2text
apt-get -y install intltool-debian libgmp3-dev libice-dev libxau-dev
libxaw7-dev
apt-get -y install po-debconf x-dev x11proto-input-dev x11proto-kb-dev
apt-get -y install libncurses5-dev libreadline5-dev libstdc++6-4.1-dev gawk
apt-get -y install texlive-pstricks git-core texlive
git clone git://axiom.git.sourceforge.net/gitroot/axiom/axiom
cd axiom
export AXIOM=`pwd`/mnt/debian
export PATH=$AXIOM/bin:$PATH
make

I uploaded the binary as
http://daly.axiom-developer.org/axiom-debian-nov2009-bin.tgz

To run it do:
wget http://daly.axiom-developer.org/axiom-debian-nov2009-bin.tgz
tar -zxf axiom-debian-nov2009-bin.tgz
cd axiom
export AXIOM=`pwd`/mnt/debian
export PATH=$AXIOM/bin:$PATH
axiom

In the hyperdoc window you can click on

Basic Commands -> Draw -> A function of two variables -> Continue -> Do It

and you should see a 3D graphics

At the Axiom comand line you can type:

integrate(sin(x),x)

and get back "- cos(x)"

Let me know if it works for you.

Tim Daly
Axiom Lead Developer

Revision history for this message
daly (daly-axiom-developer) wrote :

Christoph,

I would like to replace the Debian version (from 2005)
to be a later version. How do I go about doing this?

Tim Daly
Axiom Lead Developer

Changed in axiom:
status: New → Fix Released
Changed in axiom (Debian):
status: New → Fix Released
Changed in axiom (Ubuntu):
assignee: nobody → Brian Thomason (brian-thomason)
status: New → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote :

It's updated. It built on Ubuntu when I tested it locally. We'll see how it does on the buildd's. https://launchpad.net/ubuntu/+source/axiom/20091101-7

Changed in axiom (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.