public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Still problems with latest CVS for arm-elf (cygwin)
@ 2001-03-23  3:31 David Korn
  2001-03-23  5:37 ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 5+ messages in thread
From: David Korn @ 2001-03-23  3:31 UTC (permalink / raw)
  To: 'Lewin A.R.W. Edwards', gcc-help

>-----Original Message-----
>From: Lewin A.R.W. Edwards [ mailto:larwe@larwe.com ]
>Sent: 23 March 2001 11:24

>Hi David,
>
>> >Strip CRs from /src/gcc/gcc-xxxxxxxx/gcc/config/arm/arm.md
>> >lines of errors. Strip CRs from /tmp/build/gcc/gcc/tconfig.h
>>
>>   I'm not working on 3.0 or arm so I can't help you much, but I would
>>like to offer one little time-saving tip: make a cygwin mountpoint in
>>text mode for the top-level gcc directory in your source tree and use
>
>I am already doing this (it's impossible to build without doing this), but 
>it doesn't fix all these problems (for instance, gencodes.exe needs the 
>source file to be UNIX-format, even if the file is on a text-mode mount 
>point). I _HATE_ the whole issue of text-mode.

  That's strange.  I don't have any problem with gencodes; but one mystery
I've never been able to understand is that my fixincluded headers get
dos style line ends even when I've stripped all the originals (in 
$prefix/sys-include) and my build dir is mounted unix mode and my source
dir is mounted text mode.  In particular, I've never had any trouble
with the .md or other config files, except when I've forgotten to use
the textmode path to invoke the toplevel configure command.  I haven't
investigated or experimented, but I've wondered if it somehow relates to
the mode of the /tmp dir, which an awful lot of files pass through on
their way from one place to another.

  Hmm.  A second thought occurs to me: you aren't using winzip to untar
the source, are you?

     DaveK
-- 
 All your base are belong to us!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Still problems with latest CVS for arm-elf (cygwin)
  2001-03-23  3:31 Still problems with latest CVS for arm-elf (cygwin) David Korn
@ 2001-03-23  5:37 ` Lewin A.R.W. Edwards
  0 siblings, 0 replies; 5+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-23  5:37 UTC (permalink / raw)
  To: David Korn, 'Lewin A.R.W. Edwards', gcc-help

Hi David,

>dir is mounted text mode.  In particular, I've never had any trouble
>with the .md or other config files, except when I've forgotten to use

I didn't have a problem with 2.95.2, but sometime in more recent versions 
this behavior has become broken on cygwin.

>the textmode path to invoke the toplevel configure command.  I haven't
>investigated or experimented, but I've wondered if it somehow relates to
>the mode of the /tmp dir, which an awful lot of files pass through on
>their way from one place to another.

The instructions Red Hat provides for building the ARM tools (as part of 
the eCos install process) specifically say that /tmp should be mounted in 
binmode. Normally /tmp is just an inheritor of the (binmode) / mount point, 
so this is the default behavior.

>   Hmm.  A second thought occurs to me: you aren't using winzip to untar
>the source, are you?

No, these sources were obtained directly using cvs. It's all very mysterious.


-- Lewin A.R.W. Edwards
Embedded Engineer, Digi-Frame Inc.
Work: http://www.digi-frame.com/
Tel (914) 937-4090 9am-6:30pm M-F ET
Personal: http://www.larwe.com/ http://www.zws.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Still problems with latest CVS for arm-elf (cygwin)
  2001-03-23  1:42 David Korn
@ 2001-03-23  3:24 ` Lewin A.R.W. Edwards
  0 siblings, 0 replies; 5+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-23  3:24 UTC (permalink / raw)
  To: David Korn, gcc-help

Hi David,

> >Strip CRs from /src/gcc/gcc-xxxxxxxx/gcc/config/arm/arm.md
> >lines of errors. Strip CRs from /tmp/build/gcc/gcc/tconfig.h
>
>
>   I'm not working on 3.0 or arm so I can't help you much, but I would
>like to offer one little time-saving tip: make a cygwin mountpoint in
>text mode for the top-level gcc directory in your source tree and use

I am already doing this (it's impossible to build without doing this), but 
it doesn't fix all these problems (for instance, gencodes.exe needs the 
source file to be UNIX-format, even if the file is on a text-mode mount 
point). I _HATE_ the whole issue of text-mode.

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Still problems with latest CVS for arm-elf (cygwin)
@ 2001-03-23  1:42 David Korn
  2001-03-23  3:24 ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 5+ messages in thread
From: David Korn @ 2001-03-23  1:42 UTC (permalink / raw)
  To: 'Lewin A.R.W. Edwards', gcc-help

>-----Original Message-----
>From: Lewin A.R.W. Edwards [ mailto:larwe@larwe.com ]
>Sent: 22 March 2001 18:08


>Strip CRs from /src/gcc/gcc-xxxxxxxx/gcc/config/arm/arm.md
>lines of errors. Strip CRs from /tmp/build/gcc/gcc/tconfig.h 
>and edit that 
>Strip CRs from the file 
>/src/gcc/gcc-xxxxxxxx/gcc/config/arm/elf.h, edit 
>Strip CRs from the file 
>/src/gcc/gcc-xxxxxxxx/gcc/config/arm/unknown-elf.h, 
>Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/longlong.h, 
>edit the file 


  I'm not working on 3.0 or arm so I can't help you much, but I would
like to offer one little time-saving tip: make a cygwin mountpoint in
text mode for the top-level gcc directory in your source tree and use
that path to the configure command (which then gets adopted as the 
--srcdir setting).  Much easier!

     DaveK
-- 
 All your base are belong to us!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Still problems with latest CVS for arm-elf (cygwin)
@ 2001-03-22 10:08 Lewin A.R.W. Edwards
  0 siblings, 0 replies; 5+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-03-22 10:08 UTC (permalink / raw)
  To: gcc-help

I'm working with the latest (this morning) CVS and it has fixed the link 
error to PUSH_ROUNDING. However even after considerable massaging, I have 
hit a compile problem I just can't solve.

(Note that the line numbers in longlong.h mentioned below don't exist).

I'd love some more help on this...

The text below assumes you have your gcc sources in /src/gcc/gcc-xxxxxxxx 
and your temp build directory is /tmp/build/gcc.

Strip CRs from /src/gcc/gcc-xxxxxxxx/gcc/config/arm/arm.md
Build according to instructions. You'll eventually get to about 10,000 
lines of errors. Strip CRs from /tmp/build/gcc/gcc/tconfig.h and edit that 
file:
add to the top:
#ifndef LARWE_TCONFIG_H
#define LARWE_TCONFIG_H
add to the bottom:
#endif
Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/config/arm/elf.h, edit 
the file and add to the top:
#ifndef LARWE_ARM_ELF_H
#define LARWE_ARM_ELF_H
add to the bottom:
#endif
Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/config/arm/unknown-elf.h, 
edit the file and add to the top:
#ifndef LARWE_UNKNOWN_ELF_H
#define LARWE_UNKNOWN_ELF_H
add to the bottom:
#endif
Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/longlong.h, edit the file 
and add a blank line to the end.

Now you wind up with these errors:

ake[2]: Entering directory `/tmp/build/gcc/gcc/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/gcc/po'
if [ -f specs.ready ] ; then \
	true; \
else \
	touch specs.ready; \
fi
make GCC_FOR_TARGET="/tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ 
-nostdinc -B/tmp/build/gcc/arm-elf/newlib/ -isystem 
/tmp/build/gcc/arm-elf/newlib/targ-include -isystem 
/digiframe/gccdl/gcc/newlib/libc/include 
-B/tools/H-i686-pc-cygwin/arm-elf/bin/ 
-B/tools/H-i686-pc-cygwin/arm-elf/lib/ -isystem 
/tools/H-i686-pc-cygwin/arm-elf/include" \
   HOST_PREFIX="" HOST_PREFIX_1="loser-" \
   AR_FOR_TARGET="arm-elf-ar" \
   AR_CREATE_FOR_TARGET="arm-elf-ar  rc" \
   AR_FLAGS_FOR_TARGET="" \
   OLDCC="cc" CCLIBFLAGS="-O" \
   CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
   RANLIB_FOR_TARGET="arm-elf-ranlib" \
   RANLIB_TEST_FOR_TARGET="[ -f arm-elf-ranlib ] || ( [ "i686-pc-cygwin" = 
"arm-unknown-elf" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
   NM_FOR_TARGET="arm-elf-nm" AWK="gawk" \
   LIBGCC2_CFLAGS="-O2  -DCROSS_COMPILE -DIN_GCC    -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -Dinhibit_libc -fno-inline -g1  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
   INCLUDES="-I. -I. -I/digiframe/gccdl/gcc/gcc 
-I/digiframe/gccdl/gcc/gcc/. -I/digiframe/gccdl/gcc/gcc/config 
-I/digiframe/gccdl/gcc/gcc/../include" MAYBE_USE_COLLECT2="" \
   CONFIG_H="config.h auto-host.h gansidecl.h 
/digiframe/gccdl/gcc/gcc/config/i386/xm-cygwin.h 
/digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h defaults.h insn-codes.h" 
MACHMODE_H="machmode.h machmode.def" \
   LIB1ASMSRC='arm/lib1funcs.asm' \
   MAKEOVERRIDES= \
   -f libgcc.mk all
make[2]: Entering directory `/tmp/build/gcc/gcc'
for d in libgcc thumb libgcc/thumb; do \
   if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -nostdinc 
-B/tmp/build/gcc/arm-elf/newlib/ -isystem 
/tmp/build/gcc/arm-elf/newlib/targ-include -isystem 
/digiframe/gccdl/gcc/newlib/libc/include 
-B/tools/H-i686-pc-cygwin/arm-elf/bin/ 
-B/tools/H-i686-pc-cygwin/arm-elf/lib/ -isystem 
/tools/H-i686-pc-cygwin/arm-elf/include -O2  -DCROSS_COMPILE -DIN_GCC    -W 
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -Dinhibit_libc -fno-inline -g1  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/digiframe/gccdl/gcc/gcc 
-I/digiframe/gccdl/gcc/gcc/. -I/digiframe/gccdl/gcc/gcc/config 
-I/digiframe/gccdl/gcc/gcc/../include  -DL_muldi3 -c 
/digiframe/gccdl/gcc/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from /digiframe/gccdl/gcc/gcc/libgcc2.h:320,
                  from /digiframe/gccdl/gcc/gcc/config/arm/elf.h:46,
                  from /digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h:205,
                  from tconfig.h:3,
                  from /digiframe/gccdl/gcc/gcc/libgcc2.c:36:
/digiframe/gccdl/gcc/gcc/longlong.h: In function `__mulhi3':
/digiframe/gccdl/gcc/gcc/longlong.h:362: warning: implicit declaration of 
function `__umulsidi3'
In file included from /digiframe/gccdl/gcc/gcc/libgcc2.h:320,
                  from /digiframe/gccdl/gcc/gcc/config/arm/elf.h:46,
                  from /digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h:205,
                  from tconfig.h:3,
                  from /digiframe/gccdl/gcc/gcc/libgcc2.c:36:
/digiframe/gccdl/gcc/gcc/longlong.h:2236:5: warning: no newline at end of file
/digiframe/gccdl/gcc/gcc/longlong.h:1511:1: unterminated #ifndef
/digiframe/gccdl/gcc/gcc/longlong.h:1508:1: unterminated #else
/digiframe/gccdl/gcc/gcc/longlong.h:1488:1: unterminated #ifdef
In file included from /digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h:205,
                  from tconfig.h:3,
                  from /digiframe/gccdl/gcc/gcc/libgcc2.c:36:
/digiframe/gccdl/gcc/gcc/config/arm/elf.h: At top level:
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:354: parse error before "__mulhi3"
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:354: parse error before "u"
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:355: warning: return type 
defaults to `int'
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:355: conflicting types for `__mulhi3'
/digiframe/gccdl/gcc/gcc/longlong.h:355: previous declaration of `__mulhi3'
/digiframe/gccdl/gcc/gcc/config/arm/elf.h: In function `__mulhi3':
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:359: `u' undeclared (first use in 
this function)
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:359: (Each undeclared identifier 
is reported only once
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:359: for each function it appears 
in.)
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:360: `v' undeclared (first use in 
this function)
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:360: warning: left-hand operand 
of comma expression has no effect
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:363: `UWtype' undeclared (first 
use in this function)
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:363: parse error before "uu"
In file included from /digiframe/gccdl/gcc/gcc/config/arm/unknown-elf.h:205,
                  from tconfig.h:3,
                  from /digiframe/gccdl/gcc/gcc/libgcc2.c:36:
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:742:34: warning: no newline at 
end of file
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:724:1: unterminated #ifdef
/digiframe/gccdl/gcc/gcc/libgcc2.c: At top level:
/digiframe/gccdl/gcc/gcc/libgcc2.c:354: parse error before "__mulhi3"
/digiframe/gccdl/gcc/gcc/libgcc2.c:354: parse error before "u"
/digiframe/gccdl/gcc/gcc/libgcc2.c:355: warning: return type defaults to `int'
/digiframe/gccdl/gcc/gcc/libgcc2.c:355: warning: function declaration isn't 
a prototype
/digiframe/gccdl/gcc/gcc/libgcc2.c:355: redefinition of `__mulhi3'
/digiframe/gccdl/gcc/gcc/config/arm/elf.h:355: `__mulhi3' previously 
defined here
/digiframe/gccdl/gcc/gcc/libgcc2.c: In function `__mulhi3':
/digiframe/gccdl/gcc/gcc/libgcc2.c:360: warning: left-hand operand of comma 
expression has no effect
/digiframe/gccdl/gcc/gcc/libgcc2.c:363: parse error before "uu"
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/tmp/build/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'
=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-03-23  5:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-23  3:31 Still problems with latest CVS for arm-elf (cygwin) David Korn
2001-03-23  5:37 ` Lewin A.R.W. Edwards
  -- strict thread matches above, loose matches on Subject: below --
2001-03-23  1:42 David Korn
2001-03-23  3:24 ` Lewin A.R.W. Edwards
2001-03-22 10:08 Lewin A.R.W. Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).