Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Correct Settings for AMD Fusion E350
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Tue Mar 22, 2011 7:31 am    Post subject: Correct Settings for AMD Fusion E350 Reply with quote

Hello Community,
I need your help. I have one of those new shining AMD Fusion E350 APU systems. I can't find any information about cflags. I installed with "CHOST=x86_64..." and CFLAGS="-mtune=generic -O2 -pipe"
I wonder if there are better or more correct cflags for that system especially since I have some strange problems (see http://forums.gentoo.org/viewtopic-p-6621789.html#6621789).
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...


Last edited by drizzt on Tue Mar 29, 2011 5:37 pm; edited 2 times in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4681
Location: Saint Amant, Acadiana

PostPosted: Tue Mar 22, 2011 9:27 am    Post subject: Reply with quote

You cannot go wrong with CFLAGS="-march=native -O2 -pipe", if you think it is suboptimal for your CPU I'd recommend digging in gcc.gnu.org and maybe AMD developers site.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Tue Mar 22, 2011 9:37 am    Post subject: Reply with quote

Jaglover wrote:
You cannot go wrong with CFLAGS="-march=native -O2 -pipe", if you think it is suboptimal for your CPU I'd recommend digging in gcc.gnu.org and maybe AMD developers site.


I think this will break the system because -march=native activates 3dnow flag which is not implemented in Fusion E350 anymore
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4122
Location: Houston, Republic of Texas

PostPosted: Tue Mar 22, 2011 9:53 am    Post subject: Reply with quote

drizzt wrote:

I think this will break the system because -march=native activates 3dnow flag which is not implemented in Fusion E350 anymore


?

should be different for every system

have you double checked with:

Code:

gcc -Q -march=native --help=target


?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Tue Mar 22, 2011 11:39 am    Post subject: Reply with quote

regarding this http://forums.gentoo.org/viewtopic-t-867539-highlight-amd+fusion.html thread it will enable 3dnow.

I will check as soon as I am in front of the machine.

Hm this is the output:

Quote:

Die folgenden Optionen sind zielspezifisch:
-m128bit-long-double [ausgeschaltet]
-m32 [ausgeschaltet]
-m3dnow [ausgeschaltet]
-m3dnowa [ausgeschaltet]
-m64 [eingeschaltet]
-m80387 [eingeschaltet]
-m96bit-long-double [eingeschaltet]
-mabi=
-mabm [eingeschaltet]
-maccumulate-outgoing-args [ausgeschaltet]
-maes [ausgeschaltet]
-malign-double [ausgeschaltet]
-malign-functions=
-malign-jumps=
-malign-loops=
-malign-stringops [eingeschaltet]
-march= amdfam10
-masm=
-mavx [ausgeschaltet]
-mbranch-cost=
-mcld [ausgeschaltet]
-mcmodel=
-mcrc32 [ausgeschaltet]
-mcx16 [eingeschaltet]
-mfancy-math-387 [eingeschaltet]
-mfma [ausgeschaltet]
-mfma4 [ausgeschaltet]
-mforce-drap [ausgeschaltet]
-mfp-ret-in-387 [eingeschaltet]
-mfpmath=
-mfused-madd [eingeschaltet]
-mglibc [eingeschaltet]
-mhard-float [eingeschaltet]
-mieee-fp [eingeschaltet]
-mincoming-stack-boundary=
-minline-all-stringops [ausgeschaltet]
-minline-stringops-dynamically [ausgeschaltet]
-mintel-syntax [ausgeschaltet]
-mlarge-data-threshold=
-mlwp [ausgeschaltet]
-mmmx [ausgeschaltet]
-mmovbe [ausgeschaltet]
-mms-bitfields [ausgeschaltet]
-mno-align-stringops [ausgeschaltet]
-mno-fancy-math-387 [ausgeschaltet]
-mno-push-args [ausgeschaltet]
-mno-red-zone [ausgeschaltet]
-mno-sse4 [eingeschaltet]
-momit-leaf-frame-pointer [ausgeschaltet]
-mpc
-mpclmul [ausgeschaltet]
-mpopcnt [eingeschaltet]
-mpreferred-stack-boundary=
-mpush-args [eingeschaltet]
-mrecip [ausgeschaltet]
-mred-zone [eingeschaltet]
-mregparm=
-mrtd [ausgeschaltet]
-msahf [eingeschaltet]
-msoft-float [ausgeschaltet]
-msse [ausgeschaltet]
-msse2 [ausgeschaltet]
-msse2avx [ausgeschaltet]
-msse3 [ausgeschaltet]
-msse4 [ausgeschaltet]
-msse4.1 [ausgeschaltet]
-msse4.2 [ausgeschaltet]
-msse4a [ausgeschaltet]
-msseregparm [ausgeschaltet]
-mssse3 [ausgeschaltet]
-mstack-arg-probe [ausgeschaltet]
-mstackrealign [eingeschaltet]
-mstringop-strategy=
-mtls-dialect=
-mtls-direct-seg-refs [eingeschaltet]
-mtune= amdfam10
-muclibc [ausgeschaltet]
-mveclibabi=
-mxop [ausgeschaltet]


I will try and report back since it seems that 3dnow is disabled.
Thanks for your tip.

UPDATE: System still seems to work after
Code:
emerge -e system
although my problems regarding mysql still persist
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Thu Mar 24, 2011 7:18 am    Post subject: Reply with quote

Since I can't get mysql to work I started a new clean install with the cflags from this thread. This problem can be considered solved. Maybe this tips should either be put into the handbook or at least the wiki on the cflags page.

Thanks to all
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Sun Mar 27, 2011 8:30 pm    Post subject: Problems installing Gentoo on AMD fusion E-350 Reply with quote

Hello all,
I grabbed one of those new shiny AMD E-350 systems and try to install a small home server system on it. Unfortunately I can't get it to work properly:

I tried two installs now:

(a) CFLAGS="-O2 -pipe"
(b) CFLAGS="-march=native -O2 -pipe"

In case (a) mysql_install_db dies because mysqld gets segfault. In case (b) mysql_install_db failes because it tries to create file "/tmp/" which obviously is already there as a directory.

I tried different mysql-versions and also mariadb.

Another strange thing is, that some boot messages start with strange characters (inverted question marks mostly) while others don't.

I use "~amd64" architecture.

Anybody any advice ?
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
raj7095
n00b
n00b


Joined: 08 Feb 2011
Posts: 59

PostPosted: Sun Mar 27, 2011 10:22 pm    Post subject: Reply with quote

you need kernel 2.6.38 for those machines. which version do you have installed? and which version of gcc do you have?
Back to top
View user's profile Send private message
raj7095
n00b
n00b


Joined: 08 Feb 2011
Posts: 59

PostPosted: Sun Mar 27, 2011 10:28 pm    Post subject: Reply with quote

also, you have to disable 3dnow on amd fusion. use the cflag -mno-3dnow and instead of -march=native, find out which cflags it enables by doing a "cc -march=native -E -v - </dev/null 2>&1 | grep cc1" and then use all the cflags except -m3dnow.
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Mon Mar 28, 2011 8:08 pm    Post subject: Reply with quote

No doesn't work.

System booting fine but mysql still failes:
Code:
cat /var/log/mysql/mysqld.err
110328 23:02:35 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem.
ERROR: 1004  Can't create file '/tmp/' (errno: 21)
110328 23:02:41 [ERROR] Aborting

110328 23:02:42 [Note] /usr/sbin/mysqld: Shutdown complete


Here's the systems' info:

Code:
emerge --info
Portage 2.1.9.45 (default/linux/amd64/10.0/server, gcc-4.4.4, glibc-2.11.2-r3, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-QEMU_Virtual_CPU_version_0.13.0-with-gentoo-2.0.2
Timestamp of tree: Mon, 28 Mar 2011 17:45:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -mtune=amdfam10 -mno-3dnow -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -mtune=amdfam10 -mno-3dnow -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://gentoo.tiscali.nl/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ rsync://gentoo.mirrors.tds.net/gentoo rsync://212.219.56.139/www.ibiblio.org/gentoo/ rsync://mirror.leaseweb.com/gentoo/ rsync://mirror.cambrium.nl/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://91.121.125.139/gentoo-distfiles/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync8.de.gentoo.org/gentoo-portage"
USE="acl acpi amd64 apm bash-completion berkdb bzip2 cracklib crypt cups cxx dri fam fortran gdbm graphite iconv lzo mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam readline snmp ssl sysfs unicode xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Any advice ?
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
BenderBendingRodriguez
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2010
Posts: 101

PostPosted: Mon Mar 28, 2011 8:23 pm    Post subject: Reply with quote

http://www.cyberciti.biz/faq/mysqld-innodb-error-unable-to-create-temporary-file/ ?
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Tue Mar 29, 2011 5:41 am    Post subject: Reply with quote

BenderBendingRodriguez wrote:
http://www.cyberciti.biz/faq/mysqld-innodb-error-unable-to-create-temporary-file/ ?


Yeah I found this information too, but unfortunately this is a different problem. The article is about mysql trying to create a file and getting errno13 (basically means access denied).
If you want to have a closer look at my error message above you will notice that:
Code:
ERROR: 1004  Can't create file '/tmp/' (errno: 21)

mysql tries in my case to create a file named '/tmp/' which is the directory itself instead of a temporary file inside it and gets errno:21 (cannot open the dir for writing to it since it's a dir not a file)

But thank you for sharing.

Any other ideas ?

Maybe there's something wrong with random name creation ?
Anybody any idea where to look for such errors ?
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Tue Mar 29, 2011 5:38 pm    Post subject: Reply with quote

since the problems are not solved I merged all my threads into one: http://forums.gentoo.org/viewtopic-t-870785-highlight-.html
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 337

PostPosted: Tue Mar 29, 2011 5:40 pm    Post subject: Reply with quote

Does anybody know if GCC-4.6 is available in any overlay ?
It seems to support the new AMDs natively.
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
raj7095
n00b
n00b


Joined: 08 Feb 2011
Posts: 59

PostPosted: Wed Mar 30, 2011 10:50 pm    Post subject: Reply with quote

drizzt wrote:
Does anybody know if GCC-4.6 is available in any overlay ?
It seems to support the new AMDs natively.

you can compile gcc-4.6 from source and then just change the prefix so that it doesn't overwrite the older gcc. suppose that it is installed in /usr/local/bin/gcc, then you just have to change the compiler by changing the entry OCC and OCXX in /etc/portage/bashrc to /usr/local/bin/gcc and /usr/local/bin/g++. that's pretty much an overlay.
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Mon Apr 04, 2011 3:32 pm    Post subject: Reply with quote

Merged from here.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
BVer
n00b
n00b


Joined: 11 Aug 2005
Posts: 7

PostPosted: Wed May 11, 2011 3:05 pm    Post subject: Reply with quote

Just to confirm drizzt's observations:
Code:
ERROR: 1004  Can't create file '/tmp/' (errno: 21)

on E-350 Processor AuthenticAMD (Asus E35M1-M Pro):
Code:
# gcc -Q -march=native --help=target |grep m3d
  -m3dnow                               [disabled]
  -m3dnowa                              [disabled]

Tried two 5.x mysql versions, with correct perms on /tmp.
Tested mkstemp() and tempnam() functions used inside mysql's create_temp_file() - both work well.

The -O2 flag may cause this, please see:
http://forums.gentoo.org/viewtopic-p-6683783.html#6683783
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum