From owner-freebsd-ports@FreeBSD.ORG Sat Jan 5 21:41:40 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AB952FED for ; Sat, 5 Jan 2013 21:41:40 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ia0-f182.google.com (mail-ia0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8604E75B for ; Sat, 5 Jan 2013 21:41:40 +0000 (UTC) Received: by mail-ia0-f182.google.com with SMTP id x2so15044767iad.27 for ; Sat, 05 Jan 2013 13:41:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:reply-to:date:message-id:subject:from:to :content-type; bh=Q9rK2+EdFkZUC4SzJcBtcCQ41P9C7/DcosVRSmalgQE=; b=xVGMUfnm+WuL+uzMbB0C6R1a83H+ViqurSq8wMNpE/ccK4xh38W3gl7tLAMbx7JXVa QAaonRkK7quTghFoTw0LguL78P8qi7UUFzR4caQxTDkb0sCInmebmShtEjKbqGKNm3A5 MjYtORdSgrX3gjJiKWxo5aM1Kh67mo3MA4a7Scvol5pFYUE/aiy5VOOnEThUgyCVUpsq HeR1Eajh34PsYkiLPFyGfnkwo9qpmN2xOqGuM5cLwWvkn71U31F9s9BSFCLggczLcaoQ wxSVqOcd41xD26jB+yMbY+vSC1/bNYKspb98Vb9QDtiVxKIWwuVqaM0YBVcQWwcKGQJ0 D3zw== MIME-Version: 1.0 X-Received: by 10.50.222.201 with SMTP id qo9mr2171974igc.111.1357421676245; Sat, 05 Jan 2013 13:34:36 -0800 (PST) Received: by 10.50.88.137 with HTTP; Sat, 5 Jan 2013 13:34:36 -0800 (PST) Date: Sat, 5 Jan 2013 21:34:36 +0000 Message-ID: Subject: Re: print/acroreadwrapper and gcc 4.6.3 ISSUE From: "b.f." To: awarecons , freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 21:41:40 -0000 > Building for acroreadwrapper-0.0.20110920 > Warning: Object directory not changed from original > /usr/ports/print/acroreadwrapper/work/linux_adobe_kmod-20110920 > @ -> /usr/src/sys > machine -> /usr/src/sys/i386/include > x86 -> /usr/src/sys/x86/include > gcc46 -O2 -pipe -march=pentium4 -mtune=pentium4 > -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -march=pentium4 > -mtune=pentium4 -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ > -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 > --param large-function-growth=1000 -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-sse -mno-mmx > -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 > -fstack-protector -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions > -Wmissing-include-dirs -fdiagnostics-show-option -c linux_adobe.c > cc1: error: unrecognized command line option '-mno-align-long-strings' > cc1: error: unrecognized command line option '-fformat-extensions' > *** Error code 1 > > Stop in /usr/ports/print/acroreadwrapper/work/linux_adobe_kmod-20110920. > *** Error code 1 > > Stop in /usr/ports/print/acroreadwrapper. > > But gcc 4.2+ works fine. It seems that all the *kmod* ports/parts have > 4.2 'origin' and can't be properly compiled with higher versions of > gcc or clang. > They use base system makefiles to build the kernel modules, which use various kernel flags, including some FreeBSD-specific ones, for consistency. You can override CWARNFLAGS from kern.mk, but you should be careful when mixing toolchains for kernel modules. You are going to find a lot of ports that fail to build with non-default toolchains. If you can suggest small, reasonable changes that make it possible to do so, then submit PRs. b.