NetBSD Problem Report #51692
From www@NetBSD.org Mon Dec 5 15:09:11 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(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 92DBB7A315
for <gnats-bugs@gnats.NetBSD.org>; Mon, 5 Dec 2016 15:09:11 +0000 (UTC)
Message-Id: <20161205150910.7B0327A352@mollari.NetBSD.org>
Date: Mon, 5 Dec 2016 15:09:10 +0000 (UTC)
From: cesco@esiliati.org
Reply-To: cesco@esiliati.org
To: gnats-bugs@NetBSD.org
Subject: archivers/lz4 fails to compile on NetBSD evbarm due to missing -m32
X-Send-Pr-Version: www-1.0
>Number: 51692
>Category: pkg
>Synopsis: archivers/lz4 fails to compile on NetBSD evbarm due to missing -m32
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: fhajny
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 05 15:10:01 +0000 2016
>Closed-Date: Sat Jan 28 19:30:49 +0000 2017
>Last-Modified: Sat Jan 28 19:30:49 +0000 2017
>Originator: nzasch
>Release: pkgsrc-2016Q3
>Organization:
esiliati.org
>Environment:
NetBSD cerambice 7.0.2 NetBSD 7.0.2 (BPI.201610210724Z) evbarm
>Description:
in a NetBSD 7.0.2 with gcc:
bash-4.4# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
Target: armv7--netbsdelf-eabihf
Configured with: /usr/7/src/tools/gcc/../../external/gpl3/gcc/dist/configure --target=armv7--netbsdelf-eabihf --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb2 20150115' --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-threads --enable-libstdcxx-time=rt --enable-lto --with-mpc-lib=/var/obj/mknative/evbarm-earmv7hf/usr/7/src/external/lgpl3/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/evbarm-earmv7hf/usr/7/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative/evbarm-earmv7hf/usr/7/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/usr/7/src/external/lgpl3/mpc/dist/src --with-mpfr-include=/usr/7/src/external/lgpl3/mpfr/dist/src --with-gmp-include=/usr/7/src/external/lgpl3/gmp/lib/libgmp/arch/earmhf --enable-tls --enable-initfini-array --disable-multilib --disable-symvers --disable-libstdcxx-pch --build=x86_64-unknown-netbsd6.0. --host=armv7--netbsdelf-eabihf --with-sysroot=/var/obj/mkn
ative/evbarm-earmv7hf/usr/7/src/destdir.evbarm
Thread model: posix
gcc version 4.8.4 (nb2 20150115)
lz4 pkgsrc build fails with following error
===> Building for lz4-131nb1
gmake[1]: Entering directory '/usr/pkgsrc/archivers/lz4/work/lz4-r131/lib'
compiling static library
compiling dynamic library 1.7.1
creating versioned links
gmake[1]: Leaving directory '/usr/pkgsrc/archivers/lz4/work/lz4-r131/lib'
gmake[1]: Entering directory '/usr/pkgsrc/archivers/lz4/work/lz4-r131/programs'
gcc -m32 -I../lib -O2 -Wl,-R/usr/pkg/lib -DENABLE_LZ4C_LEGACY_OPTIONS ../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c bench.c lz4io.c lz4cli.c -o lz4c32
gcc: error: unrecognized command line option '-m32'
Makefile:82: recipe for target 'lz4c32' failed
gmake[1]: *** [lz4c32] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/archivers/lz4/work/lz4-r131/programs'
Makefile:66: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2
Stop.
make[1]: stopped in /usr/pkgsrc/archivers/lz4
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/archivers/lz4
many thanks!
f
>How-To-Repeat:
in netbsd evbarm:
cd /usr/pkgsrc/archivers/lz4
make
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->fhajny
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Tue, 06 Dec 2016 09:31:55 +0000
Responsible-Changed-Why:
From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/51692 (archivers/lz4 fails to compile on NetBSD evbarm due
to missing -m32)
Date: Tue, 6 Dec 2016 09:36:46 +0000
Getting rid of -m32 in programs/Makefile doesn't fail for me.
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/51692 (archivers/lz4 fails to compile on NetBSD evbarm due
to missing -m32)
Date: Tue, 6 Dec 2016 07:48:22 -0600 (CST)
Just my $0.02 but the gcc manual page (4.8.5 on 7.0_STABLE) indicates that
the "-m32" option is only valid on i386/x86_64, PowerPC, and sparc/sparc64
toolchains. Its inclusion when building for other architechtures (arm in
this case) is suspect. Perhaps there is a poorly-conditionalized CFLAGS
somewhere?
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: coypu@SDF.ORG
To: gnats-bugs@NetBSD.org
Cc: fhajny@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
cesco@esiliati.org
Subject: Re: pkg/51692 (archivers/lz4 fails to compile on NetBSD evbarm due
to missing -m32)
Date: Tue, 6 Dec 2016 18:35:42 +0000
On Tue, Dec 06, 2016 at 01:50:01PM +0000, John D. Baker wrote:
> Just my $0.02 but the gcc manual page (4.8.5 on 7.0_STABLE) indicates that
> the "-m32" option is only valid on i386/x86_64, PowerPC, and sparc/sparc64
> toolchains. Its inclusion when building for other architechtures (arm in
> this case) is suspect. Perhaps there is a poorly-conditionalized CFLAGS
> somewhere?
>
It is explicitly using -m32 in platforms/Makefile.
From: Filip Hajny <filip@joyent.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/51692: archivers/lz4 fails to compile on NetBSD evbarm due to
missing -m32
Date: Wed, 7 Dec 2016 22:46:50 +0100
> 5. 12. 2016 v 16:10, cesco@esiliati.org:
>=20
> lz4 pkgsrc build fails with following error
>=20
> =3D=3D=3D> Building for lz4-131nb1
> gmake[1]: Entering directory =
'/usr/pkgsrc/archivers/lz4/work/lz4-r131/lib'
> compiling static library
> compiling dynamic library 1.7.1
> creating versioned links
> gmake[1]: Leaving directory =
'/usr/pkgsrc/archivers/lz4/work/lz4-r131/lib'
> gmake[1]: Entering directory =
'/usr/pkgsrc/archivers/lz4/work/lz4-r131/programs'
> gcc -m32 -I../lib -O2 -Wl,-R/usr/pkg/lib -DENABLE_LZ4C_LEGACY_OPTIONS =
../lib/lz4.c ../lib/lz4hc.c ../lib/lz4frame.c ../lib/xxhash.c bench.c =
lz4io.c lz4cli.c -o lz4c32
> gcc: error: unrecognized command line option '-m32'
> Makefile:82: recipe for target 'lz4c32' failed
> gmake[1]: *** [lz4c32] Error 1
> gmake[1]: Leaving directory =
'/usr/pkgsrc/archivers/lz4/work/lz4-r131/programs'
> Makefile:66: recipe for target 'all' failed
> gmake: *** [all] Error 2
> *** Error code 2
Can you try the latest 1.7.4.2 version that I just committed? The r131 =
release had forced 32-bit objects added to the default build, =
(presumably) for 32/64-bit interoperability test purposes. These were =
removed (put aside to be precise) in the past few versions.
-F=
State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 07 Dec 2016 21:52:08 +0000
State-Changed-Why:
cvs update to the latest - does the new version work?
From: cesco esiliati <cesco@esiliati.org>
To: gnats-bugs@NetBSD.org
Cc: maya@NetBSD.org, fhajny@NetBSD.org, pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org
Subject: Re: pkg/51692 (archivers/lz4 fails to compile on NetBSD evbarm due
to missing -m32)
Date: Fri, 27 Jan 2017 18:21:58 +0100
hi
works without problems for me on current
f
On Wed, 7 Dec 2016 21:52:09 +0000 (UTC)
maya@NetBSD.org wrote:
> Synopsis: archivers/lz4 fails to compile on NetBSD evbarm due to missing -m32
>
> State-Changed-From-To: open->feedback
> State-Changed-By: maya@NetBSD.org
> State-Changed-When: Wed, 07 Dec 2016 21:52:08 +0000
> State-Changed-Why:
> cvs update to the latest - does the new version work?
>
>
>
--
__o o __o
_`\<,_[esiliati.org]_`\<,_
(*)/ (*) ( ° ͜ʖ °) (*)/ (*)
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 28 Jan 2017 19:30:49 +0000
State-Changed-Why:
Fixed, thanks
>Unformatted:
(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.