pkgsrc-Bugs archive

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

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

>Number:         43912
>Category:       pkg
>Synopsis:       lang/hugs fails to build on sparc64
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 27 07:10:00 +0000 2010
>Originator:     Stefan
>Release:        NetBSD-5.0.2 on Sparc64
from the build phase:

configure: creating ./config.status
config.status: creating include/HsBaseConfig.h
config.status: include/HsBaseConfig.h is unchanged
Preprocessing library base-2.0...
../../libraries/tools/hsc2hs -D__HUGS__ -Iinclude -I../../ghc/includes -o 
System/CPUTime.hs System/CPUTime.hsc
../../libraries/tools/hsc2hs -D__HUGS__ -Iinclude -I../../ghc/includes -o 
System/Time.hs System/Time.hsc
[1]   Illegal instruction (core dumped) ${rootdir}/src/r...
../../packages/Cabal/examples/hapax.hs: got error code while preprocessing: 
Skipping base package

This package is fundamental to hugs.

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

This does not work as expected. A line from the compilation phase:

gcc -c -DNDEBUG=1 -Wno-error -O2 -march=ultrasparc -pipe -I/usr/local/include 
-I/usr/include -O0  -O2 hugs.c

-O2 -march=ultrasparc -pipe comes from mk.conf. The final -O2 is set in various 
configure scripts as OPTFLAGS. I set OPTFLAGS to "" in these configure scripts, 
but I still get the illegal instruction. Hence, this does not seem to be the 
core of the problem.


Home | Main Index | Thread Index | Old Index