pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/43912: lang/hugs fails to build on sparc64

The following reply was made to PR pkg/43912; it has been noted by GNATS.

From: Stefan Schaeckeler <>
Cc: "OBATA Akio" <>
Subject: Re: pkg/43912: lang/hugs fails to build on sparc64
Date: Mon, 27 Sep 2010 08:52:00 -0700 (PDT)

 >  > A small note: From lang/hugs Makefile:
 >  >
 >  > # The default -O2 breaks the interpreter producing strange internal errors
 >  > # at run time.
 >  > .if !empty(CC_VERSION:Mgcc-4*)
 >  > CFLAGS+=    -O0
 >  > .endif
 >  How about replace "CFLAGS+=-O0" line with followings?
 >  BUILDLINK_TRANSFORM+= rename:-O*:-O0
 Suprisingly, that replaces nothing and results in
 cc -c -DNDEBUG=1 -O2 -mcpu=ultrasparc -pipe -I/usr/include  -O2 hugs.c
 Nevertheless, the problem on NetBSD/Sparc64 seems to sit deeper as I get 
illegal instruction errors even when compiling hugs with -O0. Same problem with 
gcc34 on NetBSD/Sparc64. Hugs compiles fine with pkgsrc on intel/linux, though.

Home | Main Index | Thread Index | Old Index