First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 11080
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Nick Hadaway <nick@capital-internet.net>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Martin Holzer (RETIRED) <mholzer@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 11080 depends on: Show dependency tree
Bug 11080 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-11-22 04:13 0000
gcc -c -march=i586 -O3 -pipe -ansi -pedantic  -I. -
I../../../../exports/include/X11 -I../../../../include/fonts -
I../../../../exports/include/X11        -I../../cfb -I../../mfb -I../../mi -
I../../include -I../../os    -I../../../../.. -Wall  -I../../../.. -
I../../../../exports/include  -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -
D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -
DSHAPE          -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV   -
DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DDDXOSINIT -DSERVER_LOCK -
DDDXOSFATALERROR -DDDXTIME -DPART_NET  hextile.c
rm -f zrle.o
c++ -c -march=1 -O3 -pipe -Wall -I. -I../../../../exports/include/X11 -
I../../../../include/fonts -I../../../../exports/include/X11      -I../../cfb -
I../../mfb -I../../mi -I../../include -I../../os           -I../../../../.. -
Wall  -I../../../.. -I../../../../exports/include  -Dlinux -D__i386__ -
D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -
D_SVID_SOURCE -DSHAPE          -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -
DPIXPRIV   -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DDDXOSINIT -DSERVER_LOCK -
DDDXOSFATALERROR -DDDXTIME -DPART_NET zrle.cc
cc1plus: bad value (1) for -march= switch
make[5]: *** [zrle.o] Error 1
make[5]: Target `all' not remade because of errors.
make[5]: Target `all' not remade because of errors.
make[5]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-
unixsrc/Xvnc/programs/Xserver/hw/vnc'
make[4]: *** [hw/vnc] Error 2
make[4]: *** No rule to make target `hw/vnc/libvnc.a', needed by `Xvnc'.
make[4]: Target `all' not remade because of errors.
make[4]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-
unixsrc/Xvnc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-
unixsrc/Xvnc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-
unixsrc/Xvnc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-
unixsrc/Xvnc'
make: *** [World] Error 2

!!! ERROR: net-misc/vnc-3.3.5 failed.
!!! Function src_compile, Line 24, Exitcode 2
!!! (no error message)

gentoo usr # 



gentoo usr # emerge info
Portage 2.0.44 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r7)
=================================================================
System uname: 2.4.19-gentoo-r9 i586 Pentium MMX
USE="x86 oss 3dnow apm avi crypt cups encode jpeg kde libg++ mikmod mmx mpeg 
ncurses pdflib qtmt quicktime spell truetype xml2 xmms xv aalib arts berkdb 
bonobo cdr directfb esd gdbm gif gnome gnome-libs gpm gtk gtkhtml guile imlib 
java ldap libwww motif mozilla mysql nls oggvorbis opengl pam perl png python 
qt readline sdl slang snmp ssl svga tcltk tcpd tiff X"
ARCH="x86"
COMPILER=""
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O3 -pipe"
CXXFLAGS="-march=i586 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME=""
JAVA_HOME="/opt/ibm-jre-1.3.1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"

gentoo usr #

------- Comment #1 From Chris Russell (RETIRED) 2002-11-22 07:17:19 0000 -------
almost the same, except mine is -mcpu=1 whereas Martins is -march=1 -
definately
a misread of CFLAGS/CXXFLAGS in there - we both have gcc-2.95.3 so perhaps that
is the common factor if the testers were all 1.4 profile / gcc-3.2 folk?
C.

--
gcc -c -mcpu=i686 -O3 -pipe -ansi -pedantic  -I.
-I../../../../exports/include/X11 -I../../../../include/fonts
-I../../../../exports/include/X11           -I../../cfb -I../../mfb -I../../mi
-I../../include -I../../os           -I../../../../.. -Wall  -I../../../..
-I../../../../exports/include  -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE      
   -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV   -DNDEBUG  
-DFUNCPROTO=15 -DNARROWPROTO  -DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR
-DDDXTIME -DPART_NET  hextile.c
rm -f zrle.o
c++ -c -mcpu=1 -O3 -pipe -Wall -I. -I../../../../exports/include/X11
-I../../../../include/fonts -I../../../../exports/include/X11        
-I../../cfb -I../../mfb -I../../mi -I../../include -I../../os          
-I../../../../.. -Wall  -I../../../.. -I../../../../exports/include  -Dlinux
-D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L
-D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE          -DGCCUSESGAS -DSTATIC_COLOR
-DAVOID_GLYPHBLT -DPIXPRIV   -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO 
-DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR -DDDXTIME -DPART_NET zrle.cc
cc1plus: bad value (1) for -mcpu= switch
make[5]: *** [zrle.o] Error 1
make[5]: Target `all' not remade because of errors.
make[5]: Target `all' not remade because of errors.
make[5]: Leaving directory
`/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc/programs/Xserver/hw/vnc'
make[4]: *** [hw/vnc] Error 2
make[4]: *** No rule to make target `hw/vnc/libvnc.a', needed by `Xvnc'.
make[4]: Target `all' not remade because of errors.
make[4]: Leaving directory
`/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc'
make[1]: *** [World] Error 2
make[1]: Leaving directory
`/var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/Xvnc'
make: *** [World] Error 2

!!! ERROR: net-misc/vnc-3.3.5 failed.
!!! Function src_compile, Line 24, Exitcode 2
!!! (no error message)

tremor root # emerge info
Portage 2.0.44 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.19-gentoo-r9 i686 Celeron (Mendocino)
USE="x86 oss avi crypt cups encode jpeg libg++ libwww mikmod mmx mpeg ncurses
pdflib qtmt quicktime spell truetype xml2 xmms xv arts berkdb gdbm gif
gnome-libs gpm gtk guile imlib java kde motif nas nls oggvorbis opengl pam png
python qt readline scanner sdl slang ssl svga tcpd X -3dnow aalib alsa -apm
bonobo cdr dvd esd evo gb gd ggi gnome gtkhtml imap lcms libgda maildir mozilla
pda perl tcltk tiff zlib"
ARCH="x86"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=i686 -O3 -pipe"
CXXFLAGS="-mcpu=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j3"
JDK_HOME="/opt/sun-jdk-1.4.1.01"
JAVA_HOME="/opt/sun-jdk-1.4.1.01"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://ftp.citylink.co.nz/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"

------- Comment #2 From Nick Hadaway 2002-11-25 20:15:58 0000 -------
The error happens in the vncviewer directory.  The Makefile.in in that 
directory has nothing that would cause this problem.

The problem seems to occur when changing from compiling the c code to compiling 
the 2 c++ files in that directory.

It doesn't appear to happen on gcc3 systems.  I will test this on a gcc2 system 
asap.

My first guess is that something screws up during configure on gcc2 system and 
cxxflags don't get set correctly?

------- Comment #3 From Martin Holzer (RETIRED) 2002-11-26 00:41:38 0000 -------
as you can see, configure shows it right

gentoo usr # emerge -u vnc
Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/vnc-3.3.5 to /
>>> md5 ;-) vnc-3.3.5-unixsrc.tar.gz
>>> Unpacking source...
>>> Unpacking vnc-3.3.5-unixsrc.tar.gz
>>> Source unpacked.
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -march=i586 -O3 -pipe ) works... yes
checking whether the C compiler (gcc -march=i586 -O3 -pipe ) is a cross-
compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... (cached) no
checking for c++... c++
checking whether the C++ compiler (c++ -march=i586 -O3 -pipe ) works... yes
checking whether the C++ compiler (c++ -march=i586 -O3 -pipe ) is a cross-
compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... (cached) no
checking for ranlib... ranlib
checking whether make sets ${MAKE}... yes
checking how to run the C++ preprocessor... c++ -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configuring zlib...
Checking for gcc...
Building static library libz.a version 1.1.4 with gcc.
Checking for unistd.h... Yes.
Checking for errno.h...  Yes.
Checking for mmap support... Yes.
...done configuring zlib
checking for socklen_t... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating rdr/Makefile
creating rfb/Makefile
creating vncconnect/Makefile
creating vncpasswd/Makefile
creating vncviewer/Makefile
creating Xvnc/config/cf/vnclibs.def

------- Comment #4 From Nick Hadaway 2002-11-26 01:07:23 0000 -------
if you're willing to go a bit deeper... 

Let configure finish up... when it starts compiling... hit ctrl+c...

check out the Makefile in /var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5/vncviewer

See what the CXXFLAGS are set to in that file... 

------- Comment #5 From Martin Holzer (RETIRED) 2002-11-26 01:11:22 0000 -------
from /var/tmp/portage/vnc-3.3.5/work/vnc-3.3.5-unixsrc/vncviewer/Makefile :


CC = gcc
CFLAGS = -march=i586 -O3 -pipe -Wall $(DIR_CFLAGS)
CCLD = $(CC)
CXX = c++
CXXFLAGS = -march=i586 -O3 -pipe -Wall
CXXLD = $(CXX)
CPPFLAGS = 
DEFS =  
ALL_CPPFLAGS = $(CPPFLAGS) $(DEFS) $(DIR_CPPFLAGS)
LIBS = 
LDFLAGS = 
RANLIB = ranlib
AR = ar cq

------- Comment #6 From Martin Holzer (RETIRED) 2002-11-26 01:21:57 0000 -------
think i got the problem

change the emake to make || die in .ebuild file

now it works

------- Comment #7 From Nick Hadaway 2002-11-26 01:35:35 0000 -------
Changed from emake to make.

------- Comment #8 From Martin Holzer (RETIRED) 2002-11-26 02:04:59 0000 -------
sorry, i was wrong

when i manually run make in the work dir, it compiles successfuly

------- Comment #9 From Martin Holzer (RETIRED) 2002-11-27 00:36:27 0000 -------
make works too in ebuild

src_compile() {

        econf || die "./configure failed"
-> this works        emake || die 

        cd Xvnc
        if use tcpd
        then
-> this fails                make \
                        EXTRA_LIBRARIES="-lwrap -lnss_nis" \
                        CDEBUGFLAGS="${CFLAGS}" \
                        World || die
        else
                make \
                        CDEBUGFLAGS="${CFLAGS}" \
                        World || die
        fi

}

------- Comment #10 From Martin Holzer (RETIRED) 2002-11-27 00:54:37 0000 -------
no i've the problem located.

diff to the .ebuild

this works for me

-r1 should be done, do you do it ? :)


*** vnc-3.3.5.ebuild.org        Wed Nov 27 09:49:37 2002
--- vnc-3.3.5.ebuild    Wed Nov 27 09:48:49 2002
***************
*** 32,41 ****
--- 32,43 ----
                make \
                        EXTRA_LIBRARIES="-lwrap -lnss_nis" \
                        CDEBUGFLAGS="${CFLAGS}" \
+                         CXXFLAGS="${CFLAGS}" \
                        World || die
        else
                make \
                        CDEBUGFLAGS="${CFLAGS}" \
+                       CXXFLAGS="${CFLAGS}" \
                        World || die
        fi
  

------- Comment #11 From Martin Holzer (RETIRED) 2002-11-27 12:00:34 0000 -------
just checked in -r1

could any 1.4 try this if it compiled ?


------- Comment #12 From Nick Hadaway 2002-11-29 13:47:44 0000 -------
-r1 works just fine in gcc3 land.

First Last Prev Next    No search results available      Search page      Enter new bug