Date: Sun, 26 Oct 2014 12:42:44 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194609] New: [patch] archivers/liblz4 doesn't compile on amd64 Message-ID: <bug-194609-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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 <bugzilla@FreeBSD.org> --- Auto-assigned to maintainer adamw@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194609-13>