FreeBSD make

Jan Dušátko jan at dusatko.org
Fri May 13 01:36:07 CEST 2011


Tak bohužel, definice atom nefunguje.
# cat /etc/make.conf
CPUTYPE=atom
CFLAGS= -O2 -pipe
COPTFLAGS= -O2 -pipe

cc -O2 -pipe -march=atom -DHAVE_CONFIG_H
-I/usr/src/gnu/lib/libssp/libssp_nonshared/..
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libss
p
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/inclu
de -fPIC -DPIC -fvisibility=hidden -std=gnu99 -fstack-protector  -c
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/
ssp-local.c
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/
ssp-local.c:1: error: bad value (atom) for -march= switch
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/
ssp-local.c:1: error: bad value (atom) for -mtune= switch
*** Error code 1

Stop in /usr/src/gnu/lib/libssp/libssp_nonshared.
*** Error code 1

Stop in /usr/src.

Nasel jsem par doporuceni a testu, ohledne rychlosti a vykonnosti.
http://blog.vx.sk/archives/25-FreeBSD-Compiler-Benchmark-gcc-base-vs-gcc-por
ts-vs-clang.html
http://ivoras.sharanet.org/blog/tree/2009-02-11.optimizing-for-atom.html

Podle nich jsem nakonec pouzil doporucenou volbu native, funguje jak z
praku:
# cat /etc/make.conf
CPUTYPE=native
CFLAGS= -O2 -pipe
COPTFLAGS= -O2 -pipe



More information about the Users-l mailing list