Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge system compile error [SOLVED]
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
ilamir
n00b
n00b


Joined: 01 Feb 2005
Posts: 8

PostPosted: Wed Feb 02, 2005 2:34 am    Post subject: emerge system compile error [SOLVED] Reply with quote

I just got the following error while doing 'emerge system' :

g++ -c -I. -I../dist/.. -I../dist/../dbic -D_GNU_SOURCE -D_REENTRANT "{-march=pentium4" -fomit-frame-pointer "-O2}" ../dist/../cxx/cxx_db.cpp -fPIC -DPIC - o .libs/cxx_db.lo

g++: cannot specify -0 with -c or -S and multiple compilations
make: *** [cxx_db.lo] Error 1


Anyone have any ideas?


Last edited by ilamir on Wed Feb 02, 2005 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Wed Feb 02, 2005 3:44 am    Post subject: Reply with quote

Code:
emerge --info
output please.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
ilamir
n00b
n00b


Joined: 01 Feb 2005
Posts: 8

PostPosted: Wed Feb 02, 2005 4:22 am    Post subject: Reply with quote

Code:
emerge --info


Portage 2.0.51-r2 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686)

System uname: 2.6.9-gentoo-r1 i686 Mobile Intel(R) Pentium(R) - M CPU 2.40 GHz
Gentoo Base System version 1.4.16
Autoconf:
Automake:
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers: sys-kernel/linux-headers-2.4.21-r1
Libtools:
ACCEPT_KEYWORKS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 _fomit-frame-pointer -O2"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/shar/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="{-march=pentium4 _fomit-frame-pointer -O2""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rysnc.gentoo.org/gentoo-portage"
USE=" x86 X apm arts avi berkdb bitmap-fonts crypt cups encode f77 font-server foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts xm12 xmms xv zlib"
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Wed Feb 02, 2005 4:29 am    Post subject: Reply with quote

ilamir wrote:
Code:
emerge --info


CXXFLAGS="{-march=pentium4 _fomit-frame-pointer -O2""



Why is there a "{" in CXXFLAGS?
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Wed Feb 02, 2005 5:25 am    Post subject: Reply with quote

There's also an underscore there. Completely messed up, it's amazing he got as far as sys-libs/db.

ilamir: Change your /etc/make.conf. Edit CFLAGS to read
Code:
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer
and CXXFLAGS to read
Code:
CXXFLAGS="${CFLAGS}"
Please copypaste that exactly as it is written, don't re-type it. The O is a big o, not a zero, and there must be no other brackets there, as well as no underscores.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Wed Feb 02, 2005 5:38 am    Post subject: Reply with quote

moocha wrote:
There's also an underscore there...


Yikes, and an extra "...better clean my bifocals B-)
_________________
Time is what keeps everything from happening all at once.
Back to top
View user's profile Send private message
bet1m
l33t
l33t


Joined: 04 Dec 2004
Posts: 631
Location: Kosova/Prishtine

PostPosted: Wed Feb 02, 2005 11:35 am    Post subject: Reply with quote

here is a good url:
www.gentoo-wiki.com/Safe_Cflags
_________________
#370559
Back to top
View user's profile Send private message
ilamir
n00b
n00b


Joined: 01 Feb 2005
Posts: 8

PostPosted: Wed Feb 02, 2005 1:57 pm    Post subject: Reply with quote

Ok, unfortunately the errors you guys saw in my emerge --info were just typo's.

My make.conf reads (has always read) as :

CFLAGS="-march=pentium4 -fomit-frame-pointer -O2"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="{$CFLAGS}"

Sorry for any confusion....anyone have another other ideas?
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Feb 02, 2005 2:33 pm    Post subject: Reply with quote

Yup, you've got the { in the wrong place in your CXXFLAGS. See moocha's post. :wink:
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
ilamir
n00b
n00b


Joined: 01 Feb 2005
Posts: 8

PostPosted: Wed Feb 02, 2005 2:40 pm    Post subject: Reply with quote

Ah, I see it now. Edited, now running emerge system.... *fingers crossed*
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