Menu

#3 Help me to compile Gcc-2.95 in MinGW

open
nobody
None
5
2004-05-31
2004-05-31
Ardhendu
No

Hi,
I am trying to compile GCC-2.95 in MinGW
environment but it’s not
Compiling. I am gating some error at the time of
compiling Bunitils-2.10.1.
But using the same source file (Bunitils-2.10.1, GCC-
2.95, newlib-1.12.0)
I am able to compile GCC in Cygwin and Linux
environment for target
arm-elf and it’s generating all the exe file but the
problem is there we have
to use Cygwin means one dependence is there.
Is it possible to compile GCC for target arm-elf which
wouldn’t use Cygwin?
Dll and I can run it in MS-DOS environment without
having any dependence.
Below I am mentioning all the details which I have
done to solve the problem
First-
Bison 1.35
Configuration-Ok (No Error)
Make-(Error)- in localename.c-line no 630-
commented this line then it’s

working properly.

Make install-Ok (No Error) .
Second-
Binutils-2.10.1
Configuration –Ok (No Error).
Make-Ok (No
Error).
Make install-Ok (No Error)
Third-
Symbolic link-GCC2.95 & Newlib-1.12.0
ln -s /root/newgnu/newlib-1.9.0/newlib
newlib
ln -s /root/newgnu/newlib-1.9.0/libgloss
libgloss
Fourth-
GCC-2.95
Configuration –Ok (No Error).
Make Install-Error in gcc-
2.95/gcc/callect2.c

gcc -c -DCROSS_COMPILE -DIN_GCC -g -O2 -
DHAVE_CONFIG_H -I. -I. -I./confi g -
I./../include underscore.c
rm -f collect2.exe
gcc -DCROSS_COMPILE -DIN_GCC -g -O2 -
DHAVE_CONFIG_H -o collect2.exe collec
t2.o tlink.o hash.o intl.o underscore.o version.o
obstack.o -
ladvapi32 .. /libiberty/libiberty.a
collect2.o(.text+0x2a9): In function `handler':
C:/msys/home/newgcc/gcc-2.95/gcc/collect2.c:526:
undefined reference to `kill'
collect2.o(.text+0x3795): In function `scan_prog_file':
C:/msys/home/newgcc/gcc-2.95/gcc/collect2.c:2265:
undefined reference to `pipe'
collect2.o(.text+0x3834):C:/msys/home/newgcc/gcc-
2.95/gcc/collect2.c:2288: undef ined
reference to `fork'
make[1]: *** [collect2.exe] Error 1
make[1]: Leaving directory `/home/newgcc/gcc-
2.95/gcc'
make: *** [all-gcc] Error 2

if I ignore this error using-
make all install –i –k option then it’s ok and generating all
the .exe file but while compiling an application program
I am gaiting this error-

_udivsi3
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:
Assembler messages:
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:2
: Error: invalid character '@' in mnemonic
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:3
: Error: invalid character '@' in mnemonic
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:7
2: Error: no such instruction: `d ividend .req
r0'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:7
3: Error: no such instruction: `d ivisor .req
r1'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:7
4: Error: no such instruction: `r esult .req r2'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:7
5: Error: no such instruction: `c urbit .req r3'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:7
6: Error: no such instruction: `i p .req r12'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:7
7: Error: no such instruction: `s p .req r13'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:7
8: Error: no such instruction: `l r .req r14'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:7
9: Error: no such instruction: `p c .req r15'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:8
3: Warning: .type pseudo-op used outside
of .def/.endef ignored.
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:8
3: Warning: rest of line ignored; first
ignored character is `_'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:8
7: Error: expecting operand after ','; got
nothing
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:8
8: Error: no such instruction: `b eq Ldiv0'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:8
9: Error: expecting operand after ','; got
nothing
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:9
0: Error: expecting operand after ','; got
nothing
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:9
1: Error: too many memory referen ces for
`cmp'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:9
2: Error: no such instruction: `b cc
Lgot_result'
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:9
4: Error: invalid character '@' i n mnemonic
C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp\ccUbaaaa.s:9
5: Error: invalid character '@' i n mnem

If anyone know the solution please help me .

Thank you.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.