| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Date: | Fri, 25 Feb 2005 14:51:20 +0100 (MET) |
| From: | "Rolf Ebert" <rolf DOT ebert DOT gcc AT gmx DOT de> |
| To: | cygwin AT cygwin DOT com |
| MIME-Version: | 1.0 |
| Subject: | exp. gcc-ada-3.4.1-1 does not support -mno-cygwin |
| X-Authenticated: | #17334807 |
| Message-ID: | <5416.1109339480@www58.gmx.net> |
| X-Flags: | 0001 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |