Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[solved] mysql emerge fails in XEN domU. Is CFLAG necessary?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
massctrl
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Fri Mar 19, 2004 12:03 am

[solved] mysql emerge fails in XEN domU. Is CFLAG necessary?

  • Quote

Post by massctrl » Sat Jan 13, 2007 9:15 pm

Hi,

Referring to the gentoo wiki about installing xen, the author mentions to put -mno-tls-direct-seg-refs" in the CFLAGS for performace reasons.
I've done this building my xen0 domain. All working well.

When I compile in a domU domain, do I still need that compilerflag?

Apparently mysql fails to emerge in domU with the -mno-tls-direct-seg-refs compile flag set. (see bolow )

so quid?

Cheers,

*note: in my original post I asked if the -mno-tls-direct-seg-refs is needed as a compile flag in a domU environment.
Last edited by massctrl on Tue Feb 13, 2007 8:09 pm, edited 3 times in total.
Top
James Wells
n00b
n00b
User avatar
Posts: 57
Joined: Fri Sep 10, 2004 4:26 pm

  • Quote

Post by James Wells » Sun Jan 14, 2007 5:18 pm

Greetings,

Yes you do, unless you wish to use the tls lib removal.
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

  • Quote

Post by nixnut » Sun Jan 14, 2007 8:03 pm

Moved from Installing Gentoo to Kernel & Hardware.
Not about getting gentoo installed, so moved here.
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Top
massctrl
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Fri Mar 19, 2004 12:03 am

  • Quote

Post by massctrl » Sun Jan 14, 2007 8:24 pm

Well with that flag turned on mysql fails when emerging....

Code: Select all

        then mv -f ".deps/hostname.Tpo" ".deps/hostname.Po"; else rm -f ".deps/hostname.Tpo"; exit 1; fi
if i386-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -O2 -mtune=i686 -pipe -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT set_var.o -MD -MP -MF ".deps/set_var.Tpo" -c -o set_var.o set_var.cc; \
        then mv -f ".deps/set_var.Tpo" ".deps/set_var.Po"; else rm -f ".deps/set_var.Tpo"; exit 1; fi
if i386-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -O2 -mtune=i686 -pipe -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT sql_parse.o -MD -MP -MF ".deps/sql_parse.Tpo" -c -o sql_parse.o sql_parse.cc; \
        then mv -f ".deps/sql_parse.Tpo" ".deps/sql_parse.Po"; else rm -f ".deps/sql_parse.Tpo"; exit 1; fi
Note: The following compile may take a long time.
If it fails, re-run configure with --with-low-memory
i386-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -O2 -mtune=i686 -pipe -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -fno-inline -c sql_yacc.cc
i386-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[4]: *** [sql_yacc.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/mysql-5.0.26-r2/work/mysql/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/mysql-5.0.26-r2/work/mysql/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/mysql-5.0.26-r2/work/mysql/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-5.0.26-r2/work/mysql'
make: *** [all] Error 2

!!! ERROR: dev-db/mysql-5.0.26-r2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called mysql_src_compile
  mysql.eclass, line 633:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Top
bocacorazon
n00b
n00b
Posts: 31
Joined: Fri May 07, 2004 12:56 am

Any luck getting this fixed?

  • Quote

Post by bocacorazon » Tue Feb 13, 2007 7:19 pm

I have exctly the same problem.
Top
jmbsvicetto
Moderator
Moderator
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Tue Feb 13, 2007 7:28 pm

Hi.

Please check if this bug applies to you.
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
bocacorazon
n00b
n00b
Posts: 31
Joined: Fri May 07, 2004 12:56 am

It was a misconfigured swap problem

  • Quote

Post by bocacorazon » Tue Feb 13, 2007 7:56 pm

Well, I've found what caused my problem.
I have not configured the swap file correctly before passing it to the domU.

Once that was fixed, mysql emerged without problem.

This is consistent with the bug diagnosis: you run out of memory.

Thanks
Top
massctrl
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Fri Mar 19, 2004 12:03 am

  • Quote

Post by massctrl » Tue Feb 13, 2007 8:09 pm

Right,....

Nice one, ... apparently my swap isn't working the way it should be.
Thanks everyone
Top
Post Reply

8 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy