[one-users] Opennebula on Gentoo

George L. Emigh george.emigh at dialecticnet.com
Wed Nov 10 13:06:07 PST 2010


Thank you,

 I submitted the modified working ebuild to gentoo in hopes that it may get 
included in portage.

When the maintenance release is available I can submit an updated one.

The gentoo bug report is here if it is of interest to anyone.
https://bugs.gentoo.org/show_bug.cgi?id=344969

George

On Wednesday November 10 2010, Ruben S. Montero wrote:
  > Hi George,
  > 
  > Thanks for the heads-up on this. This is basically because of Werror.
  > We'll take care of this for the next maintenance release
  > (http://dev.opennebula.org/issues/406)
  > 
  > Cheers
  > 
  > Ruben
  > 
  > On Wed, Nov 10, 2010 at 8:42 PM, George L. Emigh
  > 
  > <george.emigh at dialecticnet.com> wrote:
  > > I was changing a beta ebuild of opennebula to build and install
  > > opennebula 2.0 on a gentoo system (since Fedora 13 has not been usable
  > > with Opennebula), in gentoo the ebuild has CFLAGS set as defined in
  > > the make.conf and that gets applied to the compile of opennebula.
  > > 
  > > So in my instance, CFLAGS is set to "-march=native -O2 -pipe
  > > -mfpmath=sse"
  > > 
  > > and opennebula fails to build with:
  > > 
  > > gcc -o src/template/template_parser.o -c -march=native -O2 -pipe
  > > -mfpmath=sse -rdynamic -g -Wall -Werror -DSQLITE_DB -DMYSQL_DB
  > > -DHAVE_ERRNO_AS_DEFINE=1 - DUNIV_LINUX -Iinclude -I/usr/include
  > > -I/usr/include/mysql -
  > > I/usr/include/libxml2 src/template/template_parser.c
  > > cc1: warnings being treated as errors
  > > template_parser.c: In function 'template_lex':
  > > template_parser.l:89: error: ignoring return value of 'fwrite',
  > > declared with attribute warn_unused_result
  > > scons: *** [src/template/template_parser.o] Error 1
  > > scons: building terminated because of errors.
  > > 
  > > If I remove the -O2 it builds fine, and I will just do that and move
  > > forward for now, but opennebula should probably not fail to build with
  > > -O2
  > > 
  > > 
  > > Thank You
  > > --
  > > George L. Emigh
  > > _______________________________________________
  > > Users mailing list
  > > Users at lists.opennebula.org
  > > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
  > 
  > --
  > Dr. Ruben Santiago Montero
  > Associate Professor (Profesor Titular), Complutense University of Madrid
  > 
  > URL: http://dsa-research.org/doku.php?id=people:ruben
  > Weblog: http://blog.dsa-research.org/?author=7

-- 
George L. Emigh



More information about the Users mailing list