I added the line

src/gc/system.c  -...@optimize@}

in the file "config/gen/makefiles/CFLAGS.in".

Then I run:
$ perl Configure.pl --optimize="-O2"
$ make

and it works on amd64.

OS: SUSE Linux Enterprise Server 10 (x86_64), PATCHLEVEL = 2

Gerd Pokorra

Am Donnerstag, den 05.03.2009, 08:27 +0100 schrieb Andy Dougherty:
> This is a guess for a workaround that might make --optimized builds
> work on amd64.  Could someone who has an amd64 system give it a spin
> and report back?  If it works, could someone apply it?
> 
> Ideally, the entry should be conditional on arch == 'amd64', but I
> don't know how to do that in Parrot's Configure/build system.
> 
> Thanks.
> 
> diff -u parrot-0.9.1/config/gen/makefiles/CFLAGS.in 
> parrot-andy/config/gen/makefiles/CFLAGS.in
> --- parrot-0.9.1/config/gen/makefiles/CFLAGS.in       2009-02-17 
> 15:42:16.000000000 -0500
> +++ parrot-andy/config/gen/makefiles/CFLAGS.in        2009-03-04 
> 20:38:44.000000000 -0500
> @@ -11,6 +11,9 @@
>  src/ops/core_ops_cg.c      -...@optimize@}    # takes too long
>  src/ops/core_ops_switch.c  -...@optimize@}    # Overwhelms some compilers.
>  
> +# XXX TT ??? Paper over unknown problem on amd64
> +src/gc/system.c  -...@optimize@}
> +
>  # io should be -Wunused clean
>  {^src/io/}              s/-Wno-unused/-Wunused/
>  

_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to