This is the mail archive of the
cygwin
mailing list for the Cygwin project.
exp. gcc-ada-3.4.1-1 does not support -mno-cygwin
- From: "Rolf Ebert" <rolf dot ebert dot gcc at gmx dot de>
- To: cygwin at cygwin dot com
- Date: Fri, 25 Feb 2005 14:51:20 +0100 (MET)
- Subject: exp. gcc-ada-3.4.1-1 does not support -mno-cygwin
When compiling Ada programs without cygwin1.dll one can use -mno-cygwin with
the standard gcc (currently 3.3.1-3).
This does not work anymore with gcc-3.4.1-1. I get lots of unresolved
externals.
gnatlink harness.ali -g -mno-cygwin
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(sysdep.o)(.text+0x6a):
undefined reference to `_tcgetattr'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(sysdep.o)(.text+0x91):
undefined reference to `_tcsetattr'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(sysdep.o)(.text+0x14c):
undefined reference to `_tcsetattr'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(sysdep.o)(.text+0x25):
undefined reference to `_ttyname'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(sysdep.o)(.text+0x1f5):
undefined reference to `_localtime_r'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(s-osprim.o)(.text+0x1c):
undefined reference to `_gettimeofday'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(s-osprim.o)(.text+0x1cc):
undefined reference to `_nanosleep'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(raise.o)(.text+0x2c1):
undefined reference to `___getreent'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(raise.o)(.text+0x2e1):
undefined reference to `___getreent'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(raise.o)(.text+0x345):
undefined reference to `___getreent'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(cio.o)(.text+0x7):
undefined reference to `___getreent'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(cio.o)(.text+0x47):
undefined reference to `___getreent'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(cio.o)(.text+0x77): more
undefined references to `___getreent' follow
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0x5e1):
undefined reference to `_getppid'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0x63f):
undefined reference to `_link'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0x884):
undefined reference to `_lstat'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0x8c3):
undefined reference to `_fork'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0x8e5):
undefined reference to `_waitpid'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0x940):
undefined reference to `_fork'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0x9a2):
undefined reference to `_waitpid'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0x9e1):
undefined reference to `_waitpid'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0xa5):
undefined reference to `_readlink'
/usr/lib/gcc/i686-pc-cygwin/3.4.1/adalib/libgnat.a(adaint.o)(.text+0xb5):
undefined reference to `_symlink'
collect2: ld returned 1 exit status
Despite using -mno-cygwin the linker tries to link with the native cygwin
libgnat.a and not with the mingw libgnat.a.
Is that a problem of gcc itself (and I should report that as a bug in the
gcc problem database) or is it a configuration problem (and a cygwin
problem) or is it a user problem (i.e. I did something wrong, most
probably)?
Rolf
$ cygcheck -s -v -r | grep gcc
gcc 3.4.1-1
gcc-ada 3.4.1-1
gcc-core 3.4.1-1
gcc-g++ 3.4.1-1
gcc-mingw 20040810-1
gcc-mingw-ada 20040822-1
gcc-mingw-core 20040822-1
gcc-mingw-g++ 20040822-1
--
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/