osdir.com
mailing list archive

Subject: [fixinc.sh] Error 2 - msg#00020

List: gnu.mingw.msys

Date: Prev Next Index Thread: Prev Next Index
hello,


Im using the following script (adapted from the mingWiki):

#---------------------------------------------------------------------------------
# Source and Install directories
#---------------------------------------------------------------------------------

SRCDIR=../../gcc-3.4.0 # the sourcecode dir for gcc
# This must be specified in the format shown here
# as one of the tools built during the process will fail
# if absolute paths are specified
# the example here assumes that the gcc source directory
# is at the same level as the script

prefix=c:/cross-gcc/arm-elf # installation directory
# This must be specified in the format shown here
# or gcc won't be able to find it's libraries and includes
# if you move the installation


#---------------------------------------------------------------------------------
# set the path for the installed binutils
#---------------------------------------------------------------------------------

export PATH=${PATH}:/c/cross-gcc/arm-elf/bin

#---------------------------------------------------------------------------------
# set the target and compiler flags
#---------------------------------------------------------------------------------

target=m68k-elf

export CFLAGS='-O2 -pipe'
export CXXFLAGS='-O2 -pipe'
export LDFLAGS='-s'
export DEBUG_FLAGS=''

#---------------------------------------------------------------------------------
# build and install just the c compiler
#---------------------------------------------------------------------------------

mkdir -p $target/gcc
cd $target/gcc


$SRCDIR/configure \
--enable-languages=c,c++ \
--with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
--disable-shared --disable-threads --disable-win32-registry --disable-nls\
--target=$target \
--without-headers \
--prefix=$prefix -v\
2>&1 | tee gcc_configure.log

make all-gcc | tee make-c-only.log 2>&1
make install-gcc | tee install-c-only.log 2>&1



I keep getting the following errors whilst trying to build a gcc cross compiler (m68k):

../../../../gcc-3.4.0/gcc/fixinc/fixincl.c: In function `initialize':
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:316: error: `SIGQUIT' undeclared (first use in this function)
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:316: error: (Each undeclared identifier is reported only once
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:316: error: for each function it appears in.)
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:323: error: `SIGALRM' undeclared (first use in this function)
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c: In function `internal_fix':
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:808: warning: implicit declaration of function `pipe'
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:816: warning: implicit declaration of function `fork'
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:845: warning: implicit declaration of function `sleep'
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:860: warning: implicit declaration of function `fcntl'
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:860: error: `F_DUPFD' undeclared (first use in this function)
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c: In function `process':
../../../../gcc-3.4.0/gcc/fixinc/fixincl.c:1388: warning: implicit declaration of function `wait'
make[2]: *** [fixincl.o] Error 1
make[2]: Leaving directory `/c/gcc-source/m68k-elf/gcc/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/c/gcc-source/m68k-elf/gcc/gcc'
make: *** [install-gcc] Error 2

Could anyone suggest a workaround for these errors?
(I have altered mkfixinc.sh)

thanks
Andyc

Heber Ltd.
Registered Office: Belvedere Mill, Chalford, Stroud, Glos, GL6 8NT, England.
Registered England: 1744505


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: MSYS: _kbhit() and _getch()

Quoting Keith MARSHALL <keith.marshall-HB07P1Z8hRUAvxtiuMwx3w@xxxxxxxxxxxxxxxx>: --8<-- Despite Earnie's best efforts, no solution to such problems seems to be forthcoming. I've long since given up using the MSYS rxvt; as I mentioned in my reply to Yongwei, concerning problems with the groff mingwPORT hanging during build, these rxvt issues may even prevent MSYS fulfilling it primary goal, in some cases. It may be the case that MSYS rxvt is simply more trouble than it is worth. Since Earnie is no longer able to work on solving its inherent problems, unless we can find a developer who is willing to take ownership of it, it may be best to recommend not using it. This issue is also inherent in the current Cygwin as well. The best solution would be for some developer to create a windows GUI terminal as a frontend to sh.exe or any other CLUI binary. RXVT is good but there is no method known to emulate pty appropriately unless the binaries are all dependent on the MSYS runtime. Earnie. Quote: A GUI is for those without a CLUI (source unknown). ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

Next Message by Date: click to view message preview

Building Vim 6.4 for mSYS

Hello, Before I ask my question I should state that I realize the mSYS is not supposed to be a runtime environment. I don't have any sort of aspirations for building applications that require mSYS to run - if I'd want that I'd use cygwin. I am planning on building wxWindows applications using mSYS/minGW. Let me also state that I looked quite extensively through the mailing list archives and I did find a post about building vim (6.3) for mSYS, but there was no conclusive resolution. That being said I would like to learn how to build the latest vim (6.4) specifically for mSYS. Using minGW I have built windows native versions of gvim and a console version of vim (for the dos prompt) - this admittedly was quite simple since a special makefile Make_ming.mak is provided specially for this purpose... I am not familiar with building programs for the mSYS environment. I'm assuming that you first need to build a version of termcap for mSYS. I downloaded the source for termcap 1.3.1 and compiled it, although I must admit that I just used ./configure and then make, make install. After that I tried to run the configure script that came with vim (6.4) it finds the termcap library but says that it is not usable. I also might have my HOST, BUILD, TARGET variables set wrong. I am quite new to using GNU tools for development - I have purchased a GCC book and am working my way through it - but I realize that I have a long way to go. Any help at all in getting vim working inside of mSYS would be greatly appreciated. I am wiling to learn an invest time to get this working. P.S. I've been asked the question WHY would I want to do this? The short answer is because I'd like to learn more about software/compilers and unix systems. I guess curiosity might not be an acceptable answer - but I hope to use what I learn through this process in the future. Thanks, Robert Strube ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

Previous Message by Thread: click to view message preview

ming cross compilation

hello, After trying many times (with different --options) to cross compile gcc (for the m68k-elf processors) using the example from the ming-Wiki im getting an error i dont understand: /c/gcc-source/gcc-3.4.0/gcc/input.h: No such file or directory make[1]: *** [s-gtype] Error 1 make[1]: Leaving directory `/m68k-elf/gcc/gcc' make: *** [install-gcc] Error 2 I dont understand this error because ive looked in the directory (/c/gcc-source/gcc-3.4.0/gcc/) and the "input.h" file is certainly there, what is the meaning of this error? do anyone know how to fix this? Heber Ltd. Registered Office: Belvedere Mill, Chalford, Stroud, Glos, GL6 8NT, England. Registered England: 1744505 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

Next Message by Thread: click to view message preview

Building Vim 6.4 for mSYS

Hello, Before I ask my question I should state that I realize the mSYS is not supposed to be a runtime environment. I don't have any sort of aspirations for building applications that require mSYS to run - if I'd want that I'd use cygwin. I am planning on building wxWindows applications using mSYS/minGW. Let me also state that I looked quite extensively through the mailing list archives and I did find a post about building vim (6.3) for mSYS, but there was no conclusive resolution. That being said I would like to learn how to build the latest vim (6.4) specifically for mSYS. Using minGW I have built windows native versions of gvim and a console version of vim (for the dos prompt) - this admittedly was quite simple since a special makefile Make_ming.mak is provided specially for this purpose... I am not familiar with building programs for the mSYS environment. I'm assuming that you first need to build a version of termcap for mSYS. I downloaded the source for termcap 1.3.1 and compiled it, although I must admit that I just used ./configure and then make, make install. After that I tried to run the configure script that came with vim (6.4) it finds the termcap library but says that it is not usable. I also might have my HOST, BUILD, TARGET variables set wrong. I am quite new to using GNU tools for development - I have purchased a GCC book and am working my way through it - but I realize that I have a long way to go. Any help at all in getting vim working inside of mSYS would be greatly appreciated. I am wiling to learn an invest time to get this working. P.S. I've been asked the question WHY would I want to do this? The short answer is because I'd like to learn more about software/compilers and unix systems. I guess curiosity might not be an acceptable answer - but I hope to use what I learn through this process in the future. Thanks, Robert Strube ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by