From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 26 12:42:45 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 150AA358 for ; Sun, 26 Oct 2014 12:42:45 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFB20348 for ; Sun, 26 Oct 2014 12:42:44 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9QCgi8u090340 for ; Sun, 26 Oct 2014 12:42:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194609] New: [patch] archivers/liblz4 doesn't compile on amd64 Date: Sun, 26 Oct 2014 12:42:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rsmith@xs4all.nl X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: adamw@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2014 12:42:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194609 Bug ID: 194609 Summary: [patch] archivers/liblz4 doesn't compile on amd64 Product: Ports Tree Version: Latest Hardware: amd64 OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: adamw@FreeBSD.org Reporter: rsmith@xs4all.nl Assignee: adamw@FreeBSD.org Flags: maintainer-feedback?(adamw@FreeBSD.org) Created attachment 148662 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=148662&action=edit Patch for the port makefile. On amd64 the build fails trying to build a 32-bit version of lz4; # env MAKE_JOBS_UNSAFE=yes make ===> License BSD2CLAUSE GPLv2 accepted by the user ===> liblz4-123 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by liblz4-123 for building ===> Extracting for liblz4-123 => SHA256 Checksum OK for lz4-123.tar.gz. ===> Patching for liblz4-123 /usr/bin/sed -i.bak -e 's|kFreeBSD|& FreeBSD|' /usr/ports/archivers/liblz4/work/Cyan4973-lz4-c0054ca/Makefile /usr/ports/archivers/liblz4/work/Cyan4973-lz4-c0054ca/programs/Makefile /usr/bin/sed -i.bak -e '/^all:/s|fullbench.*||' /usr/ports/archivers/liblz4/work/Cyan4973-lz4-c0054ca/programs/Makefile ===> liblz4-123 depends on executable: gmake - found ===> liblz4-123 depends on executable: pkgconf - found ===> Configuring for liblz4-123 ===> Building for liblz4-123 gmake[1]: Entering directory '/usr/ports/archivers/liblz4/work/Cyan4973-lz4-c0054ca' compiling static library compiling dynamic library creating versioned links gmake[2]: Entering directory '/usr/ports/archivers/liblz4/work/Cyan4973-lz4-c0054ca/programs' cc -I.. -O2 -pipe -fno-strict-aliasing -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wstrict-prototypes -DLZ4_VERSION=\"r123\" -DDISABLE_LZ4C_LEGACY_OPTIONS ../lz4.c ../lz4hc.c ../xxhash.c bench.c lz4io.c lz4cli.c -o lz4 cc -I.. -O2 -pipe -fno-strict-aliasing -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wstrict-prototypes -DLZ4_VERSION=\"r123\" ../lz4.c ../lz4hc.c ../xxhash.c bench.c lz4io.c lz4cli.c -o lz4c cc -m32 -I.. -O2 -pipe -fno-strict-aliasing -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wstrict-prototypes -DLZ4_VERSION=\"r123\" ../lz4.c ../lz4hc.c ../xxhash.c bench.c lz4io.c lz4cli.c -o lz4c32 /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc cc: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:80: recipe for target 'lz4c32' failed gmake[2]: *** [lz4c32] Error 1 gmake[2]: Leaving directory '/usr/ports/archivers/liblz4/work/Cyan4973-lz4-c0054ca/programs' Makefile:95: recipe for target 'lz4programs' failed gmake[1]: *** [lz4programs] Error 2 gmake[1]: Leaving directory '/usr/ports/archivers/liblz4/work/Cyan4973-lz4-c0054ca' *** Error code 1 My proposed fix is to use the `default` target instead of the `all` target. This builds and installs correctly. ----- diff -ruN liblz4.orig/Makefile liblz4/Makefile --- liblz4.orig/Makefile 2014-10-26 09:50:34.000000000 +0100 +++ liblz4/Makefile 2014-10-26 13:33:49.000000000 +0100 @@ -23,7 +23,7 @@ USES= gmake pkgconfig USE_LDCONFIG= yes -ALL_TARGET= all liblz4 liblz4.pc +ALL_TARGET= default liblz4.pc SO_VER= 1.3.1 post-patch: ----- --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer adamw@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.