Can't compile kde4 and kdelibs4 with an uptodate amd64 Releng machine. (

Olivier Smedts olivier at gid0.org
Wed Nov 23 08:55:36 UTC 2011


2011/11/23 Conrad J. Sabatier <conrads at cox.net>:
> Strange, it seems to "just work" on my machine (note the -march and
> -mtune settings):
>
> $ /usr/bin/gcc -### -march=native 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]
>  "/usr/libexec/cc1" "-quiet" "-D_LONGLONG" "hello.c" "-march=k8"
> "-mtune=k8" "-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=native, but you won't benefit from the
"MACHINE_CPU = k8 3dnow sse3" or "MACHINE_CPU = 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

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier at gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."


More information about the freebsd-ports mailing list