This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Specs file


On Wed, 11 Nov 1998, Adrian Cox wrote:

> .. Stuff happens...
> /tmp/egcs-1.1b/win32-eabi> gmake LANGUAGES="c c++"
> .. Stuff happens...
> i486-mingw32-gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H
> -DHAIFA  -o collect2.exe collect2.o tlink.o hash.o \
>   cplus-dem.o underscore.o version.o choose-temp.o mkstemp.o
> obstack.o     -ladvapi32
> collect2.o: In function `handler':
> /tmp/egcs-1.1b/win32-eabi/gcc/../../gcc/collect2.c:455: undefined
> reference to `kill'
> collect2.o: In function `collect_wait':
> /tmp/egcs-1.1b/win32-eabi/gcc/../../gcc/collect2.c:1570: undefined
> reference to `wait'
> ... more posix functions, and the end of the build ...
> 
> Anybody seen this? I haven't tried to build a Canadian cross of egcs
> including C++ before, and I'm a little puzzled why collect2 is being so
> POSIX dependent. I think it expects to have __CYGWIN32__ defined, and
> doesn't seem happy about being built for mingw32.

Hmmm ... collect2 is disabled for mingw32, so it shouldn't even try to 
build it. There might be a simple, but subtle, bug in the config files 
somewhere; I'll check into the config. 

In the meantime, a simple workaround is to comment out the 
  USE_COLLECT2=collect2
or something similar in gcc/Makefile and just re-run make.

Regards,
Mumit


________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.