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


Mumit Khan wrote:

>   3. Now build the target tools hosted on mingw.
> 
>      $ export PATH=$PATH:/usr/local/mingw/bin
>      $ mkdir <srcdir>/ppc-eabi; cd <srcdir>/ppc-eabi
>      $ ../configure --host=i386-mingw32 --target=ppc-eabi \
>        --build=i686-pc-linux-gnu --prefix=/usr/local/ppc-eabi
>      $ make
> 
> Bit over-simplified, but you get the idea.

I'm just trying to do this from Solaris, and I've run into the following
problem:
/tmp/egcs-1.1b/win32-eabi> ../configure --host=i486-mingw32
--target=powerpc-eabi --build=sparc-solaris2 --prefix=~/egcs-win32-eabi
--v
.. 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.

--
Adrian Cox, Transtech Parallel Systems
________________________________________________
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.