public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Error Compiling crossGCC For Arm
@ 2001-01-12  1:51 Yeong Jiun How
  2001-04-01  0:00 ` Yeong Jiun How
  0 siblings, 1 reply; 10+ messages in thread
From: Yeong Jiun How @ 2001-01-12  1:51 UTC (permalink / raw)
  To: crossgcc

Hi, all

I am compiling the crossGCC for ARM processor, and I have
the following problem using the generated application "genattr"
during make. The error message is shown below.

The environment that I am using is:
1. Windows 98
2. Cygwin 1.1.7
3. binutils-2.10 successfully compiled and installed for arm-elf
4. gcc 2.95.2 successfully configured for arm-elf

It is appreciated if anybody can help!

Thanks and regards,
Yeong

make: Entering directory `/tmp/build/gcc'
make[1]: Entering directory `/tmp/build/gcc/libiberty'
make[2]: Entering directory `/tmp/build/gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/libiberty/testsuite'
make[1]: Leaving directory `/tmp/build/gcc/libiberty'
make[1]: Entering directory `/tmp/build/gcc/texinfo'
make all-recursive
make[2]: Entering directory `/tmp/build/gcc/texinfo'
Making all in intl
make[3]: Entering directory `/tmp/build/gcc/texinfo/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/intl'
Making all in lib
make[3]: Entering directory `/tmp/build/gcc/texinfo/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/lib'
Making all in makeinfo
make[3]: Entering directory `/tmp/build/gcc/texinfo/makeinfo'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/makeinfo'
make[2]: Leaving directory `/tmp/build/gcc/texinfo'
make[1]: Leaving directory `/tmp/build/gcc/texinfo'
make[1]: Entering directory `/tmp/build/gcc/gcc'
(cd intl && make all)
make[2]: Entering directory `/tmp/build/gcc/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/gcc/intl'
./genattr /src/gcc/gcc-2.95.2/gcc/config/arm/arm.md > tmp-attr.h
Expected character (.  Found character 
.  At file position: 293
Following characters are:
	
;; This file is part of GNU CC.

;; GNU CC is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software FouAborting.
genattr: Internal compiler error in `dump_and_abort', at /src/gcc/gcc-2.95.2/gcc/rtl.c:539
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
make[1]: *** [s-attr] Error 33
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* Error Compiling crossGCC For Arm
  2001-01-12  1:51 Error Compiling crossGCC For Arm Yeong Jiun How
@ 2001-04-01  0:00 ` Yeong Jiun How
  0 siblings, 0 replies; 10+ messages in thread
From: Yeong Jiun How @ 2001-04-01  0:00 UTC (permalink / raw)
  To: crossgcc

Hi, all

I am compiling the crossGCC for ARM processor, and I have
the following problem using the generated application "genattr"
during make. The error message is shown below.

The environment that I am using is:
1. Windows 98
2. Cygwin 1.1.7
3. binutils-2.10 successfully compiled and installed for arm-elf
4. gcc 2.95.2 successfully configured for arm-elf

It is appreciated if anybody can help!

Thanks and regards,
Yeong

make: Entering directory `/tmp/build/gcc'
make[1]: Entering directory `/tmp/build/gcc/libiberty'
make[2]: Entering directory `/tmp/build/gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/libiberty/testsuite'
make[1]: Leaving directory `/tmp/build/gcc/libiberty'
make[1]: Entering directory `/tmp/build/gcc/texinfo'
make all-recursive
make[2]: Entering directory `/tmp/build/gcc/texinfo'
Making all in intl
make[3]: Entering directory `/tmp/build/gcc/texinfo/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/intl'
Making all in lib
make[3]: Entering directory `/tmp/build/gcc/texinfo/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/lib'
Making all in makeinfo
make[3]: Entering directory `/tmp/build/gcc/texinfo/makeinfo'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/build/gcc/texinfo/makeinfo'
make[2]: Leaving directory `/tmp/build/gcc/texinfo'
make[1]: Leaving directory `/tmp/build/gcc/texinfo'
make[1]: Entering directory `/tmp/build/gcc/gcc'
(cd intl && make all)
make[2]: Entering directory `/tmp/build/gcc/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/gcc/intl'
./genattr /src/gcc/gcc-2.95.2/gcc/config/arm/arm.md > tmp-attr.h
Expected character (.  Found character 
.  At file position: 293
Following characters are:
	
;; This file is part of GNU CC.

;; GNU CC is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software FouAborting.
genattr: Internal compiler error in `dump_and_abort', at /src/gcc/gcc-2.95.2/gcc/rtl.c:539
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
make[1]: *** [s-attr] Error 33
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Error Compiling crossGCC For Arm
  2001-01-12  2:56 David Korn
@ 2001-04-01  0:00 ` David Korn
  0 siblings, 0 replies; 10+ messages in thread
From: David Korn @ 2001-04-01  0:00 UTC (permalink / raw)
  To: 'Yeong Jiun How', crossgcc

>Hi, all

  Hi, Yeong,

>I am compiling the crossGCC for ARM processor, and I have
>the following problem using the generated application "genattr"
>during make. The error message is shown below.
>
>The environment that I am using is:
>1. Windows 98
>2. Cygwin 1.1.7
>3. binutils-2.10 successfully compiled and installed for arm-elf
>4. gcc 2.95.2 successfully configured for arm-elf

>make[2]: Leaving directory `/tmp/build/gcc/gcc/intl'
>./genattr /src/gcc/gcc-2.95.2/gcc/config/arm/arm.md > tmp-attr.h
>Expected character (.  Found character 
>.  At file position: 293
>Following characters are:

  Look at the way that error message has gotten mangled.  Look at the way
it says 'Found character' on one line and has the full stop on the next.
We can deduce that the character it found that it wasn't expecting is
a carriage return!  So it must be a problem of DOS CRLF being found when
Unix LF was expected.  This happens a lot under Cygwin, for the obvious
reason!  It must be the case that your source code has DOS CRLFs; this
can easily happen when you unpack archives on a PC, particularly if you
use winzip and don't know about the "Don't convert TAR file line endings"
option.

  There are two ways to fix this.  One is to run a dos2unix command on
every single file in your source tree - something like this should work:

cd <srcdir>; find . -type f -exec chmod a+w \{\} && dos2unix \{\} \;

where dos2unix (if you don't have such a command) is a shell script:

#!/bin/sh
mv $1 $1.dos && tr <$1.dos >$1 -d '\015'

but an even faster solution is to provide a new mount for your source
directory in text mode and use that in your configure command instead - 
i.e. 

mkdir /gcc-src && mount -s -t `cygpath -w <srcdir>` /gcc-src

and then do

cd <objdir>; /gcc-src/configure <your configure options go here>

     hth,
        DaveK
-- 
The Boulder Pledge: "Under no circumstances will I ever purchase anything 
offered to me as the result of an unsolicited email message. Nor will I 
forward chain letters, petitions, mass mailings, or virus warnings to large 
numbers of others. This is my contribution to the survival of the online
community." 


**********************************************************************
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
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* Error Compiling crossGCC For Arm
  2001-01-17  1:44 karsten
@ 2001-04-01  0:00 ` karsten
  0 siblings, 0 replies; 10+ messages in thread
From: karsten @ 2001-04-01  0:00 UTC (permalink / raw)
  To: crossgcc

Hi,

I am compiling the crossGCC for ARM processor, and I have
the following problem. The error message is shown below.

The environment that I am using is:
- Windows NT 4.0
- Cygwin 1.1.7
- binutils-2.10.1 successfully compiled and installed for arm-elf
- gcc 2.95.2 successfully configured for arm-elf (with eCos patch)

make fails with the following message:

In file included from /src/gcc/gcc-2.95.2/gcc/config/arm/aout.h:301,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/elf.h:354,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/unknown-elf.h:171,
                 from tm.h:6,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/xm-arm.h:55,
                 from tconfig.h:5,
                 from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:33:
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:226: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:417: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:590: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:597: `SImode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:597: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:598: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:675: parse error before `=='
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: `PIC_OFFSET_TABLE_REGNUM'
undeclared here (not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: variable `call_used_regs' has
initializer but incomplete type
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:805: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:809: conflicting types for
`call_used_regs'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: previous declaration of
`call_used_regs'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:809: invalid initializer

...


In file included from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:45:
/src/gcc/gcc-2.95.2/gcc/machmode.h:47: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/machmode.h:138: warning: parameter has incomplete
type
/src/gcc/gcc-2.95.2/gcc/machmode.h:142: warning: parameter has incomplete
type
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1462: storage size of `code' isn't
known
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/tmp/build/gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/tmp/build/gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'

Can anybody help me?


Best regards,

Karsten




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Error Compiling crossGCC For Arm
  2001-01-17 17:42 ` Yeong Jiun How
@ 2001-04-01  0:00   ` Yeong Jiun How
  0 siblings, 0 replies; 10+ messages in thread
From: Yeong Jiun How @ 2001-04-01  0:00 UTC (permalink / raw)
  To: David Korn, 'karsten@thebox-communications.de', crossgcc

Hi,

Like what Dave said, it is the DOS CRLFs problems. Included is the
possible procedure to eliminate this problem:

Please carry out all steps in cygwin shell. Steps (1) and (5) can be
done using your Windows browser.

1. download the tar.gz version of GCC source version 2.95.2 in /src/gcc 
2. cd /src/gcc 
3. gunzip -vf <source>.tar.gz 
4. tar -xvf <source>.tar 
5. download gcc patch <ecos-gcc-2952.pat> to support eCos from 
http://sources.redhat.com/ecos/tools/win-arm-elf.html to /src/gcc/gcc-2.95.2 
6. cd /src/gcc/gcc-2.95.2 
7. tr -d '\r' < ecos-gcc-2952.pat | patch -p0 
8. mkdir /tmp/build/gcc 
9. cd /tmp/build/gcc 
10. mkdir /gcc-src 
11. mount -s -t 'C:\<cygpath>\<srcdir>' /gcc-src 
12. /gcc-src/configure --target=arm-elf --prefix=/<installdir> 
--exec-prefix=/<execdir> -v 2>&1 | tee configure.out 
13. make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out

Cheers,
Yeong


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Error Compiling crossGCC For Arm
  2001-01-17  1:55 David Korn
  2001-01-17 17:42 ` Yeong Jiun How
@ 2001-04-01  0:00 ` David Korn
  1 sibling, 0 replies; 10+ messages in thread
From: David Korn @ 2001-04-01  0:00 UTC (permalink / raw)
  To: 'karsten@thebox-communications.de', crossgcc

>-----Original Message-----
>From: karsten@thebox-communications.de
>[ mailto:karsten@thebox-communications.de ]
>Sent: 17 January 2001 08:38

>Hi,
>
>I am compiling the crossGCC for ARM processor, and I have
>the following problem. The error message is shown below.

   Hi Karsten,

>/src/gcc/gcc-2.95.2/gcc/machmode.h:47: stray '\' in program

  This one's a dead giveaway under cygwin.  Your source code has DOS style
CRLFs but it needs Unix style LFs.  Either run a dos2unix converter over
all your source files or perhaps even better, set up a cygwin mount point
in textmode for your source tree.  If this error still occurs after that,
it means you need to change into $obj/gcc/include and dos2unix convert
all the files there before continuing the build.

    hth,
      DaveK
-- 
The Boulder Pledge: "Under no circumstances will I ever purchase anything 
offered to me as the result of an unsolicited email message. Nor will I 
forward chain letters, petitions, mass mailings, or virus warnings to large 
numbers of others. This is my contribution to the survival of the online
community."


**********************************************************************
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
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Error Compiling crossGCC For Arm
  2001-01-17  1:55 David Korn
@ 2001-01-17 17:42 ` Yeong Jiun How
  2001-04-01  0:00   ` Yeong Jiun How
  2001-04-01  0:00 ` David Korn
  1 sibling, 1 reply; 10+ messages in thread
From: Yeong Jiun How @ 2001-01-17 17:42 UTC (permalink / raw)
  To: David Korn, 'karsten@thebox-communications.de', crossgcc

Hi,

Like what Dave said, it is the DOS CRLFs problems. Included is the
possible procedure to eliminate this problem:

Please carry out all steps in cygwin shell. Steps (1) and (5) can be
done using your Windows browser.

1. download the tar.gz version of GCC source version 2.95.2 in /src/gcc 
2. cd /src/gcc 
3. gunzip -vf <source>.tar.gz 
4. tar -xvf <source>.tar 
5. download gcc patch <ecos-gcc-2952.pat> to support eCos from 
http://sources.redhat.com/ecos/tools/win-arm-elf.html to /src/gcc/gcc-2.95.2 
6. cd /src/gcc/gcc-2.95.2 
7. tr -d '\r' < ecos-gcc-2952.pat | patch -p0 
8. mkdir /tmp/build/gcc 
9. cd /tmp/build/gcc 
10. mkdir /gcc-src 
11. mount -s -t 'C:\<cygpath>\<srcdir>' /gcc-src 
12. /gcc-src/configure --target=arm-elf --prefix=/<installdir> 
--exec-prefix=/<execdir> -v 2>&1 | tee configure.out 
13. make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out

Cheers,
Yeong


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Error Compiling crossGCC For Arm
@ 2001-01-17  1:55 David Korn
  2001-01-17 17:42 ` Yeong Jiun How
  2001-04-01  0:00 ` David Korn
  0 siblings, 2 replies; 10+ messages in thread
From: David Korn @ 2001-01-17  1:55 UTC (permalink / raw)
  To: 'karsten@thebox-communications.de', crossgcc

>-----Original Message-----
>From: karsten@thebox-communications.de
>[ mailto:karsten@thebox-communications.de ]
>Sent: 17 January 2001 08:38

>Hi,
>
>I am compiling the crossGCC for ARM processor, and I have
>the following problem. The error message is shown below.

   Hi Karsten,

>/src/gcc/gcc-2.95.2/gcc/machmode.h:47: stray '\' in program

  This one's a dead giveaway under cygwin.  Your source code has DOS style
CRLFs but it needs Unix style LFs.  Either run a dos2unix converter over
all your source files or perhaps even better, set up a cygwin mount point
in textmode for your source tree.  If this error still occurs after that,
it means you need to change into $obj/gcc/include and dos2unix convert
all the files there before continuing the build.

    hth,
      DaveK
-- 
The Boulder Pledge: "Under no circumstances will I ever purchase anything 
offered to me as the result of an unsolicited email message. Nor will I 
forward chain letters, petitions, mass mailings, or virus warnings to large 
numbers of others. This is my contribution to the survival of the online
community."


**********************************************************************
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
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* Error Compiling crossGCC For Arm
@ 2001-01-17  1:44 karsten
  2001-04-01  0:00 ` karsten
  0 siblings, 1 reply; 10+ messages in thread
From: karsten @ 2001-01-17  1:44 UTC (permalink / raw)
  To: crossgcc

Hi,

I am compiling the crossGCC for ARM processor, and I have
the following problem. The error message is shown below.

The environment that I am using is:
- Windows NT 4.0
- Cygwin 1.1.7
- binutils-2.10.1 successfully compiled and installed for arm-elf
- gcc 2.95.2 successfully configured for arm-elf (with eCos patch)

make fails with the following message:

In file included from /src/gcc/gcc-2.95.2/gcc/config/arm/aout.h:301,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/elf.h:354,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/unknown-elf.h:171,
                 from tm.h:6,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/xm-arm.h:55,
                 from tconfig.h:5,
                 from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:33:
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:226: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:417: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:590: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:597: `SImode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:597: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:598: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:675: parse error before `=='
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: `PIC_OFFSET_TABLE_REGNUM'
undeclared here (not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: variable `call_used_regs' has
initializer but incomplete type
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:805: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:809: conflicting types for
`call_used_regs'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: previous declaration of
`call_used_regs'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:809: invalid initializer

...


In file included from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:45:
/src/gcc/gcc-2.95.2/gcc/machmode.h:47: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/machmode.h:138: warning: parameter has incomplete
type
/src/gcc/gcc-2.95.2/gcc/machmode.h:142: warning: parameter has incomplete
type
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1462: storage size of `code' isn't
known
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/tmp/build/gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/tmp/build/gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'

Can anybody help me?


Best regards,

Karsten




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Error Compiling crossGCC For Arm
@ 2001-01-12  2:56 David Korn
  2001-04-01  0:00 ` David Korn
  0 siblings, 1 reply; 10+ messages in thread
From: David Korn @ 2001-01-12  2:56 UTC (permalink / raw)
  To: 'Yeong Jiun How', crossgcc

>Hi, all

  Hi, Yeong,

>I am compiling the crossGCC for ARM processor, and I have
>the following problem using the generated application "genattr"
>during make. The error message is shown below.
>
>The environment that I am using is:
>1. Windows 98
>2. Cygwin 1.1.7
>3. binutils-2.10 successfully compiled and installed for arm-elf
>4. gcc 2.95.2 successfully configured for arm-elf

>make[2]: Leaving directory `/tmp/build/gcc/gcc/intl'
>./genattr /src/gcc/gcc-2.95.2/gcc/config/arm/arm.md > tmp-attr.h
>Expected character (.  Found character 
>.  At file position: 293
>Following characters are:

  Look at the way that error message has gotten mangled.  Look at the way
it says 'Found character' on one line and has the full stop on the next.
We can deduce that the character it found that it wasn't expecting is
a carriage return!  So it must be a problem of DOS CRLF being found when
Unix LF was expected.  This happens a lot under Cygwin, for the obvious
reason!  It must be the case that your source code has DOS CRLFs; this
can easily happen when you unpack archives on a PC, particularly if you
use winzip and don't know about the "Don't convert TAR file line endings"
option.

  There are two ways to fix this.  One is to run a dos2unix command on
every single file in your source tree - something like this should work:

cd <srcdir>; find . -type f -exec chmod a+w \{\} && dos2unix \{\} \;

where dos2unix (if you don't have such a command) is a shell script:

#!/bin/sh
mv $1 $1.dos && tr <$1.dos >$1 -d '\015'

but an even faster solution is to provide a new mount for your source
directory in text mode and use that in your configure command instead - 
i.e. 

mkdir /gcc-src && mount -s -t `cygpath -w <srcdir>` /gcc-src

and then do

cd <objdir>; /gcc-src/configure <your configure options go here>

     hth,
        DaveK
-- 
The Boulder Pledge: "Under no circumstances will I ever purchase anything 
offered to me as the result of an unsolicited email message. Nor will I 
forward chain letters, petitions, mass mailings, or virus warnings to large 
numbers of others. This is my contribution to the survival of the online
community." 


**********************************************************************
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
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2001-04-01  0:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-12  1:51 Error Compiling crossGCC For Arm Yeong Jiun How
2001-04-01  0:00 ` Yeong Jiun How
2001-01-12  2:56 David Korn
2001-04-01  0:00 ` David Korn
2001-01-17  1:44 karsten
2001-04-01  0:00 ` karsten
2001-01-17  1:55 David Korn
2001-01-17 17:42 ` Yeong Jiun How
2001-04-01  0:00   ` Yeong Jiun How
2001-04-01  0:00 ` David Korn

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).