From owner-freebsd-ports@FreeBSD.ORG Wed Nov 23 08:55:36 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80EFF106564A for ; Wed, 23 Nov 2011 08:55:36 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4520C8FC0A for ; Wed, 23 Nov 2011 08:55:35 +0000 (UTC) Received: by qyg36 with SMTP id 36so1177325qyg.13 for ; Wed, 23 Nov 2011 00:55:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.68.158 with SMTP id v30mr2537198qci.239.1322038535415; Wed, 23 Nov 2011 00:55:35 -0800 (PST) Received: by 10.229.81.18 with HTTP; Wed, 23 Nov 2011 00:55:35 -0800 (PST) In-Reply-To: <20111122200824.63a8c929@cox.net> References: <20111121074243.18902mpt8znqto40@econet.encontacto.net> <20111121100945.2c888eaf@cox.net> <20111121153828.4e04a92a@cox.net> <20111122200824.63a8c929@cox.net> Date: Wed, 23 Nov 2011 09:55:35 +0100 Message-ID: From: Olivier Smedts To: "Conrad J. Sabatier" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: Can't compile kde4 and kdelibs4 with an uptodate amd64 Releng machine. ( X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2011 08:55:36 -0000 2011/11/23 Conrad J. Sabatier : > Strange, it seems to "just work" on my machine (note the -march and > -mtune settings): > > $ /usr/bin/gcc -### -march=3Dnative hello.c > Using built-in specs. > Target: amd64-undermydesk-freebsd > Configured with: FreeBSD/amd64 system compiler > Thread model: posix > gcc version 4.2.1 20070831 patched [FreeBSD] > =A0"/usr/libexec/cc1" "-quiet" "-D_LONGLONG" "hello.c" "-march=3Dk8" > "-mtune=3Dk8" "-quiet" "-dumpbase" "hello.c" "-auxbase" "hello" "-o" > "/tmp/ccAXYamu.s" "/usr/bin/as" "-Qy" "-o" "/tmp/ccIpMJgw.o" > "/tmp/ccAXYamu.s" "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" > "/libexec/ld-elf.so.1" "/usr/lib/crt1.o" "/usr/lib/crti.o" > "/usr/lib/crtbegin.o" "-L/usr/lib" "-L/usr/lib" "/tmp/ccIpMJgw.o" > "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" > "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" > "/usr/lib/crtn.o" You're right, the problem I'm experiencing (out of this thread) seems specific to our gcc and core2 CPUs. > I've never seen any problems with this in src or ports makes, either. > I do seem to recall having a look at bsd.cpu.mk a long, long time ago, > and it appeared to me that it simply passed any unrecognized CPUTYPE > through unchanged, which my experience does seem to bear out. Yes, you'll end with a -march=3Dnative, but you won't benefit from the "MACHINE_CPU =3D k8 3dnow sse3" or "MACHINE_CPU =3D k8 3dnow" set by bsd.cpu.mk. Note that I don't know exactly where MACHINE_CPU is useful and what it does... I'll maybe check to see if two world binaries end up being exactly the same with your CPUTYPE and with my CPUTYPE+CFLAGS+NO_CPU_CFLAGS. Cheers --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."