Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2012 23:48:02 GMT
From:      Olivier Cochard-Labbe <olivier@cochard.me>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/165480: [sysutils/fusefs-ext4fuse]: set TARGET_ARCH variable prevent to compile
Message-ID:  <201202252348.q1PNm1Pu062444@red.freebsd.org>
Resent-Message-ID: <201202252350.q1PNoAKq053963@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165480
>Category:       ports
>Synopsis:       [sysutils/fusefs-ext4fuse]: set TARGET_ARCH variable prevent to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 25 23:50:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Cochard-Labbe
>Release:        9.0-Release
>Organization:
BSD Router Project
>Environment:
FreeBSD bigdev.bsdrp.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sat Jan  7 19:32:30 CET 2012     root@bigdev.bsdrp.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When setting TARGET_ARCH by using this make command line:
env TARGET_ARCH=amd64 make
or this command line:
env TARGET_ARCH=i386 make

The make process generate a bad compilation line and failed by displaying this message:
cc -O2 -pipe -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse   -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra -I/usr/local/include -L/usr/local/lib  amd64 -c -o extents.o extents.c
cc: amd64: No such file or directory
cc -O2 -pipe -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -I/usr/local/include/fuse   -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra -I/usr/local/include -L/usr/local/lib  amd64 -c -o disk.o disk.c
extents.c: In function 'extent_get_pblock':
extents.c:77: warning: 'ret' may be used uninitialized in this function
gmake: *** [logging.o] Error 1


>How-To-Repeat:
Compile by setting TARGET_ARCH:
env TARGET_ARCH=amd64 make
or:
env TARGET_ARCH=i386 make
>Fix:
Same solution than with PR/147853 and PR/151224:
Add this line to the Makefile:
MAKE_ENV+=     TARGET_ARCH=
(patch included))

Patch attached with submission follows:

diff -ruN sysutils/fusefs-ext4fuse.orig/Makefile sysutils/fusefs-ext4fuse/Makefile
--- sysutils/fusefs-ext4fuse.orig/Makefile	2012-02-26 00:36:20.000000000 +0100
+++ sysutils/fusefs-ext4fuse/Makefile	2012-02-26 00:37:30.000000000 +0100
@@ -22,6 +22,7 @@
 RUN_DEPENDS=	${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
 
 USE_GMAKE=	yes
+MAKE_ENV+=	TARGET_ARCH=
 
 MAKE_JOBS_SAFE=	yes
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202252348.q1PNm1Pu062444>