EGCS support
Mark Keates
markk@dendrite.co.uk
Mon May 21 01:51:00 GMT 2001
(Originally posted to the gnu-help mailing list)
> I'm building a cross m68k-unknown-linux gcc on an i586-pc-cygwin32 host
> (egcs-1.1.2).
> The 'make cross' process runs upto a point of configuring
> m68k-unknown-linux/libiberty.
> (see the attached log file). I have some questions on the results I get
> from xgcc:
> 1) (See specs attachment) I'm suspicious of *startfile, what derives this
> and how is it interpreted?
> 2) (See print-search-dirs attachment) Is something corrupting the search
> paths?
> Can this be fixed or doesn't it matter as they refer to the build area?
>
> I have made changes to the gcc/Makefile (listed in diffs attachment).
> I'm guessing that because of the linux requirements I need to have glibc
> built/installed
> for the target? Hence the addition of -Dinhibit-libc to the LIBGCC2 flags.
>
> Bad idea, should I remove this and get glibc working?
>
> I have been able to successfully build an cross m68k-coff by including
> newlib after setting up a symbolic link and using the configuration option
> "--with-newlib".
> This gets around the chicken/egg issue, so any ideas of how to get glibc
> built
> for the m68k-unknown-linux? I've used:
> ../glibc-2.2.2/configure --verbose --target=m68k-unknown-linux
> --prefix=/gnu
> but this returns that *** The GNU C library is currently not available for
> this platform.
or:
../glibc-2.2.2/configure --verbose --build=m68k-unknown-linux --prefix=/gnu
creating cache ./config.cache
checking host system type... i586-pc-cygwin
checking sysdep dirs... configure: error: Operating system cygwin is not
supported.
Do I need a different glibc or can I patch the configure files to accept
cygwin?
> Thanks,
>
> Mark
>
> <<config.log>> <<print-search-dirs>> <<specs>> <<diffs>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-c
Size: 2220 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20010521/700bc5e3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diffs
Type: text/x-diff
Size: 5557 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20010521/700bc5e3/attachment-0001.bin>
-------------- next part --------------
install: /gnu/lib/gcc-lib/m68k-unknown-linux\egcs-2.91.66\
programs: \ngu\egcs\gcc\m68k-unknown-linux\egcs-2.91.66\;\ngu\egcs\gcc\;\gnu\lib\gcc-lib\m68k-unknown-linux\egcs-2.91.66\;\gnu\lib\gcc-lib\m68k-unknown-linux\;\usr\lib\gcc\m68k-unknown-linux\egcs-2.91.66\;\usr\lib\gcc\m68k-unknown-linux\;\gnu\m68k-unknown-linux\bin\m68k-unknown-linux\egcs-2.91.66\;\gnu\m68k-unknown-linux\bin\
libraries: \ngu\egcs\gcc\m68k-unknown-linux\egcs-2.91.66\;\ngu\egcs\gcc\;\gnu\lib\gcc-lib\m68k-unknown-linux\egcs-2.91.66\;\usr\lib\gcc\m68k-unknown-linux\egcs-2.91.66\;\gnu\m68k-unknown-linux\lib\m68k-unknown-linux\egcs-2.91.66\;\gnu\m68k-unknown-linux\lib\
-------------- next part --------------
*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{m68040} %{m68060:-m68040}
*asm_final:
%|
*cpp:
%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!msoft-float:-D__HAVE_68881__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}
*cc1:
%{profile:-p}
*cc1plus:
*endfile:
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
*link:
-m m68kelf %{shared} %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} %{static}}
*lib:
%{shared: -lc} %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} %{profile:-lc_p} %{!profile: -lc}}
*libgcc:
-lgcc
*startfile:
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
*switches_need_spaces:
*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}
*predefines:
-D__ELF__ -Dunix -Dmc68000 -Dmc68020 -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(m68k) -Amachine(m68k)
*cross_compile:
1
*version:
egcs-2.91.66
*multilib:
. ;
*multilib_defaults:
*multilib_extra:
*multilib_matches:
*linker:
collect2
More information about the crossgcc
mailing list