gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Re: Free and Open Source Axiom exists


From: Camm Maguire
Subject: Re: [Gcl-devel] Re: Free and Open Source Axiom exists
Date: 17 Nov 2003 09:34:19 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!

address@hidden (Paul Zimmermann) writes:

> Tim,
> 
>    > On my laptop (Athlon under Mandrake 9.0):
>    > norroy% make
>    > ...
>    > gcc -o raw_pre_gcl /var/tmp/axiom/obj/linux/lib/cfuns-c.o 
> /var/tmp/axiom/obj/linux/lib/sockio-c.o \
>    >         -L.   -lpre_gcl -lm  /usr/lib/libbfd.a /usr/lib/libiberty.a 
> -lreadline -lncurses -lc -lgclp /var/tmp/axiom/obj/linux/lib/libspad.a
>    > gcc: /usr/lib/libbfd.a: No such file or directory
>    > gcc: /usr/lib/libiberty.a: No such file or directory
>    > make[4]: *** [raw_pre_gcl] Error 1
>    > make[4]: Leaving directory `/var/tmp/axiom/lsp/gcl-2.6.1/unixport'
>    > make[3]: *** [unixport/saved_pre_gcl] Error 2
>    > make[3]: Leaving directory `/var/tmp/axiom/lsp/gcl-2.6.1'
>    > cp: cannot stat `unixport/saved_gcl': No such file or directory
>    > make[2]: *** [gcldir] Error 1
>    > make[2]: Leaving directory `/var/tmp/axiom/lsp'
>    > make[1]: *** [lspdir] Error 2
>    > make[1]: Leaving directory `/var/tmp/axiom'
>    > make: *** [all] Error 2
>    > 
> 
>    On the laptop it appears you need libbfd.a
> 
> I have libbfd, but only a dynamic library:
> 
> norroy% find /usr -name "libbfd*" -print
> /usr/lib/libbfd-2.12.90.0.15.so
> /usr/lib/libbfd.so
> 
> I have libiberty.h but no library:
> 
> norroy% find /usr -name "libiberty*" -print
> /usr/include/libiberty.h
> 
>    I didn't run into this on Mandrake but did on Debian.
>    I have a FAQ item that says:
> 
>    > FAQ 9: GCL does not build on my system: libbfd.a and bfd.a are missing
>    > 
>    > We are using the option \texttt{--enable-statsysbfd} when building GCL 
> (see
>    > lsp/Makefile) so libbfd.a and bfd.h files are necessary on your system.
>    > 
>    > On Debian GNU/Linux, the needed package is 'binutils-dev'.
> 
>    I'm not sure which package contains libbfd on Mandrake distros
>    but I'll look and get back to you.
> 
> Ok, is --enable-statsysbfd really mandatory?
> Btw I could not find this faq on the Axiom web page. Where is it?

If you suspect oddities with your bfd setup, you can add the following
configure flags:

--disable-statsysbfd --enable-locbfd

This will build a local copy of the bfd library from the GCL source
tree.  An ugly fork, but provided for situations like this.


> 
>    > mermoz% make
>    > ...
>    > cp init_pre_gcl.lsp foo
>    > echo " (in-package \"USER\")(system:save-system \"saved_pre_gcl\")" >>foo
>    > /tmp/axiom/lsp/gcl-2.6.1/unixport/raw_pre_gcl 
> /tmp/axiom/lsp/gcl-2.6.1/unixport/ -libdir /tmp/axiom/lsp/gcl-2.6.1/ < foo
>    > 
>    > Unrecoverable error: Segmentation violation..
>    > make[4]: *** [saved_pre_gcl] Error 134
>    > rm init_pre_gcl.lsp raw_pre_gcl
>    > make[4]: Leaving directory `/tmp/axiom/lsp/gcl-2.6.1/unixport'
>    > make[3]: *** [unixport/saved_pre_gcl] Error 2
>    > make[3]: Leaving directory `/tmp/axiom/lsp/gcl-2.6.1'
>    > cp: cannot stat `unixport/saved_gcl': No such file or directory
>    > make[2]: *** [gcldir] Error 1
>    > make[2]: Leaving directory `/tmp/axiom/lsp'
>    > make[1]: *** [lspdir] Error 2
>    > make[1]: Leaving directory `/tmp/axiom'
>    > make: *** [all] Error 2
> 
>    Segmentation violation? Wow, that's odd. It appears that the linker
>    failed. What kind of workstation hardware are you running?
> 


Yeah at this stage there was clearly a miscompilation.  You can also
add --enable-debug to the configure line, rebuild, and run the command
above under gdb to see what is going on.  Make sure you have a decent
gcc version.  If you want to try installing pre-built gcl binaries,
take a look at 

http://people.debian.org/~camm/gcl

If Mandrake is rpm based, you can probably run alien on the deb and
make an installable rpm.  If you go this route, then there are a few
minor patches to the axiom source tree which enable it to be built
with an external gcl.  Please let me know if you need these.

Perhaps someone wants to maintain gcl for Mandrake?

Take care,

> mermoz% cat /proc/cpuinfo 
> processor       : 0
> vendor_id       : GenuineIntel
> cpu family      : 15
> model           : 2
> model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
> stepping        : 9
> cpu MHz         : 2992.522
> cache size      : 512 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 2
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
> bogomips        : 5976.88
> 
> Regards,
> Paul
> 
> 
> 
> 
> 
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gcl-devel
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]