g++-mp-4.2 executables bad on leopard?

George Nurser gnurser at googlemail.com
Sat Mar 8 04:56:32 PST 2008


On 08/03/2008, Chris Waterson <waterson at maubi.net> wrote:
> I was poking around at the octave build on Leopard (bug 13686), and
>  I'm suspicious that g++-mp-4.2 is generating bad executables.
>
>  The first snipped below is a simple program that fails in the same way
>  that "munge-texi" fails in the octave build.  It's simply populating a
>  std::map from a file with key=value pairs.  Save this as "bug.cc",
>  them compile with:
>
>    /opt/local/bin/g++-mp-4.2 -g -o bug bug.cc
>
>  and then give it a whirl...
>
>    madchenwagen:/tmp$ ./bug
>    foo=bar
>    baz=bop
>    bim=bam
>    Segmentation fault
>    madchenwagen:/tmp$

The latest gcc43 [gcc-4.3-20080306] doesn't seem to have this problem.
agn% /opt/local/bin/g++-mp-4.3 -g -o bug bug.cc
agn% ./bug
foo=bar
baz=bop
bim=bam
foo=bar
^C


More information about the macports-users mailing list