Couple of compile advices on Solaris 10 x86



Based on my experiance:

1.

If you are using mplayer/mencoder on Solaris 10 6/06, you compiled it with gcc
(because mplayer is heavy addicted to gcc "specials") and you experiance
segfaults in mencoder no matter what you try to encode/decode, and is mdb and
dbx shows that problem is in main() in mencoder.c, recompile mencoder.c by hand
(copy/paste output from gmake), but remove '-march=k8' from compiler flags and
link it with the rest of code. This should solve the problem and you can happily
use it without problem.

Looks like gcc 3.4.3 from Sun is miscompiling some code.

2.

If you compile GNU Emacs and it core dumps on exit (C-x C-c), in

[8] exit(0x182cfc04, 0x8046ab0, 0x0, 0x8046ab0, 0x182cfc04, 0x182cfc04), at
0xfe823e32
=>[9] Ffuncall(nargs = 1, args = (nil)), line 2662 in "eval.c"

.... recompile by hand eval.c with Sun workshop cc compiler (adjust C flags also
by hand) and link with the rest with gcc. Removing "-O2" from cflags will not
solve problem. Sun cc will solve the problem. Again, gcc 3.4.2 is broken.

Do not try to compile whole GNU Emacs with Sun cc - this cannot be done (at
least if you are not willing to spend couple of hours fixing the code, or even
worse - configure script).


--
Man is something that shall be overcome.
-- Friedrich Nietzsche
.



Relevant Pages

  • Re: Troubles with pfil (needed for ipfitler) with 32-bit Sun.
    ... >>I wanted to add ipfilter to a Sun, so thought whilst I was doing it, I ... >>compiler there, so used gcc. ... > This happens during package making and is pretty much benign.. ...
    (comp.sys.sun.admin)
  • Re: Whats the story with the "end of XP"?
    ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
    (comp.arch.embedded)
  • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
    ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
    (Linux-Kernel)
  • Re: 2,000 dollars for a compiler!?
    ... Juhan Leemet wrote: ... No wonder sun is dying. ... >>independent software vendors can afford 2 grand for a compiler? ... GCC is ...
    (comp.unix.solaris)
  • Re: LPC900/80C51 Compiler Toolchain
    ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...
    (comp.arch.embedded)