Subject: Re: 'gcc-3.3 -frename-registers' segv on building perl-5.8
To: Frederick Bruckman <>
From: David Brownlee <>
List: tech-toolchain
Date: 06/07/2003 10:47:22
On Tue, 3 Jun 2003, David Brownlee wrote:

> 	The plot (or possibly the smoke) thickens: gcc-3.3 from outside
> 	pkgsrc builds perl-5.8 outside pkgsrc fine with '-O3 -march=k6-2'.
> 	Next to try a pkgsrc gcc-3.3 building a non pkgsrc perl-5.8...

	The problem is completely unrelated to -march=XXX flags.
	The following will fail to compile perl-5.8 - the critical
	option is -Duseshrplib to build a shared libperl combined
	with -frename-registers.

	Both gcc and perl built outside pkgsrc.

/usr/bin/env CFLAGS="-O1 -frename-registers" ./Configure -sde \
	-Doptimize="-O1 -frename-registers" -Dcc="/gcc/bin/cc" -Duseshrplib
/usr/bin/env CC="/gcc/bin/cc" CFLAGS="-O1 -frename-registers" make

	Any suggestions where

		David/absolute          -- No hype required --