Re: Compiling emacs on solaris10



Giorgos Keramidas wrote:
On Sun, 03 Dec 2006 13:32:09 +0100, Rainer Beushausen <surfnasi@xxxxxx> wrote:

FiLH wrote:

I'm trying to compile emacs21.4 on a solaris10 system. When I
use gcc 3.4.6 the build fails because emacs coredumps on exit
(so it can precompile the .el files).

I have installed sun studio11 and when trying to compile with CC=cc
it seems that configure does not find unistd and than all the system
calls are undefined.

Same here. I successfully built emacs 21.4.1 using gcc 2.95.3 from the
3/05 companion cd. configure was:

configure --prefix=/usr/local/emacs --with-x-toolkit=motif --with-x


If you get a chance to try gcc-4 can you post the configure
command, the generated `config.log' file, and any errors you see?

I haven't tried gcc-4 on Solaris 10, since Sun Studio was available,
and it worked on the sparc/x86 systems I had, so there may be some
bug which is triggered by gcc-4 or some gcc-4 bug that is triggered
by Emacs.


I did a compile with gcc-4.1.1. Basically the same result. Executable
builds but crashes regularly with seg-fault at exit. Saw a lot of
warnings about type mismatches. Seems to me, the code isn't suited
very well for Solaris and gcc > 2. Strange enough, emacs builds and runs
flawlessly on linux (gcc 3.4.6).

A first attempt to compile with Studio-11 has crashed because configure
failed to recognize existence of headers like unistd.h and friends.

I then replaced src/config.h with that one created while configuring
for gcc-4. This time I was able to compile with Studio 11. I had to edit
src/Makefile to provide some missing libs for linking. No core dump.

From this: Someone should hack the configure script to get it recognize
Sun Studio properly.

Rainer




.



Relevant Pages

  • Re: Compiling emacs on solaris10
    ... very well for Solaris and gcc> 2. ... Strange enough, emacs builds and runs ... I have solved this problem with dirty combination of gcc and Sun Studio. ... This time I was able to compile with Studio 11. ...
    (comp.unix.solaris)
  • Re: Compiling emacs on solaris10
    ... command, the generated `config.log' file, and any errors you ... I haven't tried gcc-4 on Solaris 10, since Sun Studio was ... I will have to see the *exact* commands you used to build Emacs, ...
    (comp.unix.solaris)
  • Re: Compiling emacs on solaris10
    ... very well for Solaris and gcc> 2. ... I have solved this problem with dirty combination of gcc and Sun Studio. ... Maybe it is time for bug report to Emacs people. ... The Emacs people will ask you for what I have requested numerous times in ...
    (comp.unix.solaris)
  • Re: Compiling emacs on solaris10
    ... I have installed sun studio11 and when trying to compile with CC=cc ... I successfully built emacs 21.4.1 using gcc 2.95.3 from the ... I haven't tried gcc-4 on Solaris 10, since Sun Studio was available, ...
    (comp.unix.solaris)
  • Re: advice starting programming in C
    ... >Is there something similar for C in Linux? ... Likewise _gcc_ is the basic compiler. ... You do have the option of learning one of many different ... version or another of either _vi_ or _emacs_ is really the only ...
    (comp.os.linux.development.apps)