Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
src compile failed, what next?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
garyg
n00b
n00b


Joined: 21 Feb 2005
Posts: 9

PostPosted: Tue Feb 22, 2005 5:51 pm    Post subject: src compile failed, what next? Reply with quote

I was doing an 'emerge --update world' and got the following error. How do I continue or fix this?

Any help much appreciated.

----


...
* Applying portmap-5b-loopback-only.patch ... [ ok ]
* Applying portmap-5b-optional-tcpd.patch ... [ ok ]
>>> Source unpacked.
i686-pc-linux-gnu-gcc -Dperror=xperror -DCHECK_PORT cassia -DFACILITY=LOG_AUTH -DIGNORE_SIGCHLD -O2 -march=athlon-xp -fomit-frame-pointer -DHOSTS_ACCESS -c -o portmap.o portmap.c
i686-pc-linux-gnu-gcc -Dperror=xperror -DCHECK_PORT cassia -DFACILITY=LOG_AUTH -DIGNORE_SIGCHLD -O2 -march=athlon-xp -fomit-frame-pointer -DHOSTS_ACCESS -c -o pmap_check.o pmap_check.c
i686-pc-linux-gnu-gcc: cannot specify -o with -c or -S and multiple compilationsmake: *** [portmap.o] Error 1
make: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc: cannot specify -o with -c or -S and multiple compilationsmake: *** [pmap_check.o] Error 1

!!! ERROR: net-nds/portmap-5b-r9 failed.
!!! Function src_compile, Line 61, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722
Location: Cluj-Napoca, Romania

PostPosted: Tue Feb 22, 2005 8:41 pm    Post subject: Reply with quote

Please post the output of
Code:
emerge --info

Please place the posted output inside a [code] block - see this for more info: http://forums.gentoo.org/faq.php?mode=bbcode#5
_________________
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
garyg
n00b
n00b


Joined: 21 Feb 2005
Posts: 9

PostPosted: Tue Feb 22, 2005 8:49 pm    Post subject: Reply with quote

p# emerge --info
--- Invalid atom in /etc/portage/package.keywords: eclipse-platform-bin
Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.5-gentoo-r1 i686)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 21 2005, 18:06:36)]
dev-lang/python: 2.3.4-r1
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.8.5-r3, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.4.3-r4, 1.5.10-r4
virtual/os-headers: 2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts bonobo crypt cups curl emboss encode esd f77 fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS,
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722
Location: Cluj-Napoca, Romania

PostPosted: Tue Feb 22, 2005 9:07 pm    Post subject: Reply with quote

The problem is here:
Code:
-DCHECK_PORT cassia
It should only read
Code:
-DCHECK_PORT
Each of those lines contains the word "cassia". That's a syntax error. You have an environment variable named SYS containing the value "cassia". Please undefine SYS before trying to emerge portmap, via
Code:
unset SYS
Such a variable shouldn't be defined on any system since there are more packages that use it in the configuration process. If you're not sure where to find it,
Code:
grep -r SYS /etc
grep -r SYS /root
will probably tell you the file you need to fix.
moocha wrote:
Please place the posted output inside a [code] block - see this for more info: http://forums.gentoo.org/faq.php?mode=bbcode#5

*sigh* My eyes thank for your lack of cooperation. Please, please use [code]. It's there to avoid problems with characters getting overlooked because of proportional fonts.
_________________
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
garyg
n00b
n00b


Joined: 21 Feb 2005
Posts: 9

PostPosted: Tue Feb 22, 2005 9:16 pm    Post subject: Reply with quote

Yeah, that's the hostname of my machine. Nothing odd about that. I've built tons of packages with SYS set as my host name. I found it in all the normal files (i.e. /etc/hosts, /etc/hostname) . But why's it being sourced in is the questions then. Any ideas?

Oh well, I unset SYS and it's building back as normal.

Thnx (sorry about the non-coded blocks)
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722
Location: Cluj-Napoca, Romania

PostPosted: Tue Feb 22, 2005 9:28 pm    Post subject: Reply with quote

The SYS thing should be fixed in Gentoo via a distribution-specific patch, IMO. Submitted a fix request and sample patches here: http://bugs.gentoo.org/show_bug.cgi?id=83000
_________________
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
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722
Location: Cluj-Napoca, Romania

PostPosted: Tue Feb 22, 2005 9:51 pm    Post subject: Reply with quote

garyg wrote:
But why's it being sourced in is the questions then. Any ideas?

It's pulled in by the Makefile and placed verbatim on the compiler command line - see abovementioned bug for details.
_________________
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
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722
Location: Cluj-Napoca, Romania

PostPosted: Tue Feb 22, 2005 10:41 pm    Post subject: Reply with quote

Bug fixed, see Bugzilla. SYS usage removed from Makefile. Sync in a few hours and it shouldn't be an issue any longer :)
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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