🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.mandrake
Article #522

Confused Compiler - Mandrake or GCC problem?

#522
From: Pat Deegan
Date: Wed, 27 Aug 2003 20:45
188 lines
9833 bytes
Greetings.  I'm not certain whether this is an OS, compiler or hardware
problem.

Sometimes, when compiling, I get errors in the form of "Assembler messages". 
The weird thing is that these errors are temporary, if I just try again
they go away!  I've included two complete examples below but the gist of it
is :

 - I issue a 'make'

 - An error like

    /tmp/ccvPpC0n.s: Assembler messages:
    /tmp/ccvPpC0n.s:18514: Error: invalid char '!' beginning operand 2
`!esp'
    make[1]: *** [cp/call.o] Error 1

  pops out (the exact message changes).

 - I issue 'make' again and the error goes away, compilation seems to
proceed normally.


I don't know if the problem is with my version of gcc or OS.  Perhaps I have
a hardware issue (memory, hdd)?

I've just recently changed from RH 8 to Mandrake 9.2 on this box - which is
when my troubles began.  The system is:
Linux mars 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686 unknown
unknown GNU/Linux

I'm using the stock Mandrake GCC (gcc-3.2.2-3mdk RPM) and currently trying
to compile GCC 3.3.1.

It's still compiling away but I can't say that I feel like doing a 'make
install' after such a weird build.

Any ideas would be greatly appreciated.




====
Here are the example output with errors and a few #comments.  I've broken up
a few of the longer lines.


 
# After a lot of compiling, the assembler error occurs: 
   
  gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes \
      -Wmissing-prototypes    -DHAVE_CONFIG_H    -I. -Icp -I. -I./cp    \
      -I./config -I./../include cp/call.c -o cp/call.o
  /tmp/ccvPpC0n.s: Assembler messages:
  /tmp/ccvPpC0n.s:18514: Error: invalid char '!' beginning operand 2 `!esp'
  make[1]: *** [cp/call.o] Error 1
  make[1]: Leaving directory `/home/username/download/gcc-3.3.1/gcc'
  make: *** [all-gcc] Error 2
  

# I do nothing at all, except issue another 'make' command and compilation
proceeds normally:
 
  [username@mars gcc-3.3.1]$ make
  make[1]: Entering directory `/home/username/download/gcc-3.3.1/libiberty'
  make[2]: Entering directory
`/home/username/download/gcc-3.3.1/libiberty/testsuite'
  make[2]: Nothing to be done for `all'.
  make[2]: Leaving directory
`/home/username/download/gcc-3.3.1/libiberty/testsuite'
  make[1]: Leaving directory `/home/username/download/gcc-3.3.1/libiberty'
  make[1]: Entering directory `/home/username/download/gcc-3.3.1/zlib'
  : make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2"     \
      "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" \
      "INSTALL=/bin/sh /home/username/download/gcc-3.3.1/install-sh -c"    \
      "INSTALL_DATA=/bin/sh /home/username/download/gcc-3.3.1/install-sh -c\
      -m 644" "INSTALL_PROGRAM=/bin/sh \
      /home/username/download/gcc-3.3.1/install-sh -c " \
      "INSTALL_SCRIPT=/bin/sh /home/username/download/gcc-3.3.1/install-sh \
      -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" \
      "MAKE=make" "MAKEINFO=makeinfo --no-split " "PICFLAG=" \
      "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" \
      "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" \
      "infodir=/usr/local/info" "libdir=/usr/local/lib" \
      "prefix=/usr/local" "tooldir=/usr/local/i686-pc-linux-gnu" \
      "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" \
      "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
  make[1]: Leaving directory `/home/username/download/gcc-3.3.1/zlib'
  make[1]: Entering directory `/home/username/download/gcc-3.3.1/fastjar'
  make[1]: Nothing to be done for `all'.
  make[1]: Leaving directory `/home/username/download/gcc-3.3.1/fastjar'
  make[1]: Entering directory `/home/username/download/gcc-3.3.1/gcc'
  (cd intl && make all)
  make[2]: Entering directory `/home/username/download/gcc-3.3.1/gcc/intl'
  make[2]: Nothing to be done for `all'.
  make[2]: Leaving directory `/home/username/download/gcc-3.3.1/gcc/intl'
  gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes \
       -Wmissing-prototypes    -DHAVE_CONFIG_H    -I. -Icp -I. -I./cp     \
       -I./config -I./../include cp/call.c -o cp/call.o
  gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes \
       -Wmissing-prototypes    -DHAVE_CONFIG_H    -I. -Icp -I. -I./cp     \
       -I./config -I./../include cp/decl.c -o cp/decl.o
  cp/decl.c: In function `lookup_tag_reverse':
  cp/decl.c:464: warning: `p' might be used uninitialized in this function
  
  
  
  
# Example 2.  The same type of error occurs again, this time it's "symbol
`.LC3121' is already defined":

  
  gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes     \
      -Wmissing-prototypes    -DHAVE_CONFIG_H -DGENERATOR_FILE  -o f/fini \
      f/fini.o ../libiberty/libiberty.a
  ./f/fini ./f/str-1t.fin f/str-1t.j f/str-1t.h
  ./f/fini ./f/str-2t.fin f/str-2t.j f/str-2t.h
  ./f/fini ./f/str-fo.fin f/str-fo.j f/str-fo.h
  ./f/fini ./f/str-io.fin f/str-io.j f/str-io.h
  ./f/fini ./f/str-nq.fin f/str-nq.j f/str-nq.h
  ./f/fini ./f/str-op.fin f/str-op.j f/str-op.h
  ./f/fini ./f/str-ot.fin f/str-ot.j f/str-ot.h
  echo timestamp > f/stamp-str
  gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes \
      -Wmissing-prototypes    -DHAVE_CONFIG_H    -I. -If -I. -I./f        \
      -I./config -I./../include f/expr.c -o f/expr.o
  /tmp/ccoAZdb9.s: Assembler messages:
  /tmp/ccoAZdb9.s:98892: Error: symbol `.LC3121' is already defined
  make[1]: *** [f/expr.o] Error 1
  make[1]: Leaving directory `/home/username/download/gcc-3.3.1/gcc'
  make: *** [all-gcc] Error 2
  

# And once again, the only fix I apply is to kindly ask gcc to try again,
with 'make'.  Compilation proceeds passed the point of the error without
any further problems.


  [username@mars gcc-3.3.1]$ make
  make[1]: Entering directory `/home/username/download/gcc-3.3.1/libiberty'
  make[2]: Entering directory
`/home/username/download/gcc-3.3.1/libiberty/testsuite'
  make[2]: Nothing to be done for `all'.
  make[2]: Leaving directory
`/home/username/download/gcc-3.3.1/libiberty/testsuite'
  make[1]: Leaving directory `/home/username/download/gcc-3.3.1/libiberty'
  make[1]: Entering directory `/home/username/download/gcc-3.3.1/zlib'
  : make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2"     \
      "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2"\
      "INSTALL=/bin/sh /home/username/download/gcc-3.3.1/install-sh -c"   \
      "INSTALL_DATA=/bin/sh /home/username/download/gcc-3.3.1/install-sh  \
      -c -m 644" "INSTALL_PROGRAM=/bin/sh \
      /home/username/download/gcc-3.3.1/install-sh -c " \
      "INSTALL_SCRIPT=/bin/sh /home/username/download/gcc-3.3.1/install-sh \
      -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" \
      "MAKE=make" "MAKEINFO=makeinfo --no-split " "PICFLAG=" \
      "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect"  \
      "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" \
      "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local"\
      "tooldir=/usr/local/i686-pc-linux-gnu" "AR=ar" "AS=as" "CC=gcc" \
      "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" \
      "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
  make[1]: Leaving directory `/home/username/download/gcc-3.3.1/zlib'
  make[1]: Entering directory `/home/username/download/gcc-3.3.1/fastjar'
  make[1]: Nothing to be done for `all'.
  make[1]: Leaving directory `/home/username/download/gcc-3.3.1/fastjar'
  make[1]: Entering directory `/home/username/download/gcc-3.3.1/gcc'
  (cd intl && make all)
  make[2]: Entering directory `/home/username/download/gcc-3.3.1/gcc/intl'
  make[2]: Nothing to be done for `all'.
  make[2]: Leaving directory `/home/username/download/gcc-3.3.1/gcc/intl'
  gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes \
      -Wmissing-prototypes    -DHAVE_CONFIG_H    -I. -If -I. -I./f \
      -I./config -I./../include f/expr.c -o f/expr.o
  gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes \
      -Wmissing-prototypes    -DHAVE_CONFIG_H    -I. -If -I. -I./f \    
      -I./config -I./../include f/global.c -o f/global.o
  gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes \
      -Wmissing-prototypes    -DHAVE_CONFIG_H    -I. -If -I. -I./f \
      -I./config -I./../include f/implic.c -o f/implic.o
      
      

Thanks in advance.
--
Pat Deegan
http://www.psychogenic.com/
Registered Linux User #128131
Technical Details
Message-ID: <XL83b.10403$Cg2.814195@news20.bellglobal.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,dfdd75b68ae65b29,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: f8a83,dfdd75b68ae65b29,start
X-Google-Attributes: gidf8a83,public
X-Google-ArrivalTime: 2003-08-27 14:01:10 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
From: Pat Deegan <news**NO_SPAM**@psychogenic.com>
Subject: Confused Compiler - Mandrake or GCC problem?
Newsgroups: alt.os.linux.mandrake,gnu.gcc.help
Followup-To: gnu.gcc.help
Lines: 190
User-Agent: KNode/0.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <XL83b.10403$Cg2.814195@news20.bellglobal.com>
Date: Wed, 27 Aug 2003 16:45:52 -0400
NNTP-Posting-Host: 65.92.168.2
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 1062017143 65.92.168.2 (Wed, 27 Aug 2003 16:45:43 EDT)
NNTP-Posting-Date: Wed, 27 Aug 2003 16:45:43 EDT
Organization: Bell Sympatico