NetBSD Problem Report #50212

From www@NetBSD.org  Sat Sep  5 16:51:32 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C1FACA654F
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  5 Sep 2015 16:51:32 +0000 (UTC)
Message-Id: <20150905165131.3FF83A65B8@mollari.NetBSD.org>
Date: Sat,  5 Sep 2015 16:51:31 +0000 (UTC)
From: slitvinov@gmail.com
Reply-To: slitvinov@gmail.com
To: gnats-bugs@NetBSD.org
Subject: devel/ffcall
X-Send-Pr-Version: www-1.0

>Number:         50212
>Category:       pkg
>Synopsis:       devel/ffcall
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    adam
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 05 16:55:00 +0000 2015
>Last-Modified:  Mon Dec 28 12:25:09 +0000 2015
>Originator:     Sergey Litvinov
>Release:        Darwin
>Organization:
ETH
>Environment:
Darwin osx 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
>Description:
devel/ffcall fails to compile with the following error message
cd avcall; /Users/lisergey/prefix-pkgsrc-master64/bin/bmake all
case "darwin14" in  solaris*) xnone=""; exten="c";;  *) xnone="-x none"; exten="s";;  esac;  /bin/sh ./libtool --mode=compile clang ${xnone} -c ./avcall-x86_64.${exten}
libtool: compile:  clang -x none -c ./avcall-x86_64.s  -fno-common -DPIC -o .libs/avcall-x86_64.o
./avcall-x86_64.s:5:2: error: unknown directive
 .type __builtin_avcall,@function
 ^
./avcall-x86_64.s:331:2: error: unknown directive
 .size __builtin_avcall,.Lfe1-__builtin_avcall
 ^
./avcall-x86_64.s:332:11: error: mach-o section specifier uses an unknown section type
 .section .eh_frame,"aw",@progbits
          ^
*** Error code 1

Stop.
bmake[1]: stopped in /Users/lisergey/src/pkgsrc/devel/ffcall/work/ffcall-1.10/avcall
*** Error code 1

Stop.
bmake: stopped in /Users/lisergey/src/pkgsrc/devel/ffcall/work/ffcall-1.10
*** Error code 1

Stop.
bmake[1]: stopped in /Users/lisergey/src/pkgsrc/devel/ffcall
*** Error code 1

Stop.
bmake: stopped in /Users/lisergey/src/pkgsrc/devel/ffcall



>How-To-Repeat:
make in devel/ffcall
>Fix:
I did what is suggested here
http://savannah.gnu.org/bugs/?36323

from devel/ffcal run

cd work/ffcall-1.10/avcall/
/usr/local/bin/gcc-5 -O2 -fomit-frame-pointer -D__x86_64__ -S avcall-x86_64.c -o avcall-x86_64.s

cd ../vacall/
/usr/local/bin/gcc-5 -O2 -fomit-frame-pointer -DHAVE_LONG_LONG_INT -D__x86_64__ -S vacall-x86_64.c -o vacall-x86_64.s

cd ../callback/vacall_r/
cp -i ../../vacall/vacall.h.in .
/usr/local/bin/gcc-5 -O2 -fomit-frame-pointer -DHAVE_LONG_LONG_INT -DREENTRANT -D__x86_64__ -S vacall-x86_64.c -o vacall-x86_64.s
rm vacall.h.in

After .s files regeneration it compiles.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->adam
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Mon, 28 Dec 2015 12:25:09 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.