From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15594 invoked by alias); 2 Nov 2017 12:13:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15581 invoked by uid 89); 2 Nov 2017 12:13:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Exec, world!, mystery, atzeri X-HELO: mail-lf0-f50.google.com Received: from mail-lf0-f50.google.com (HELO mail-lf0-f50.google.com) (209.85.215.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Nov 2017 12:13:51 +0000 Received: by mail-lf0-f50.google.com with SMTP id 90so6197162lfs.13 for ; Thu, 02 Nov 2017 05:13:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=i7MwHmU7+3kKpAZ44TW3Zp9QlHCy9VBorS+cczts0B0=; b=MWhzDimwUsW/X19AA94IDypxXD5qFgSJT+SNKaC5GZC3aoMBaycx5q26EeU86bdg8p mvaIXFU/l5GrCvnC8VrCbA8f5SFFDV7ZYfResHWChpfPUlYulceBYfiXeyajDmDe8BC+ xrfautyF3jHRayxdgfI3vqtLQUYpXxnyE11Bv1C2HfSAnJjRFX+j+dk1AYhoBS7yyOD+ ZcJIMp9mes7qk/Yh3nOr443Xp+AHE2UZ2ztMTU8y4/tyRg/jAbNO6/XydIUUCePV31mQ BhyKdY+SvyL8evCkGeZJOS3GFFsCm9oKZNOhX/zsQ6IyvSeKVDd4frQsrazXtstYXx+J XogQ== X-Gm-Message-State: AMCzsaWEaAIRQ+rhi4XV480uMz2ZOLNIuWrnk56JPtxwDGj5kVU9blse Ho0yhI4V40EJ8OPTMSXpfP6Rvw== X-Google-Smtp-Source: ABhQp+QPRmfwqWV/28Dv+NKdtI7j/iB7yyJ4dRhpnE/FoESQHSCTaIcLIGkqeC8oLrAgbOWxtVmSeA== X-Received: by 10.46.69.6 with SMTP id s6mr1511721lja.76.1509624829018; Thu, 02 Nov 2017 05:13:49 -0700 (PDT) Received: from [192.168.0.5] ([151.60.20.88]) by smtp.googlemail.com with ESMTPSA id c74sm514377lfb.96.2017.11.02.05.13.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 05:13:48 -0700 (PDT) Subject: Re: ada gnat import library missing ? To: cygwin@cygwin.com References: <8bd3f78e-fa4c-8726-8ef9-c2d3f0fb3f42@gmail.com> <0ba20891-0a19-140c-b61a-930c1a7d5be0@gmail.com> <1cffc095-fa94-1439-fb2d-aefa4b4eb680@gmail.com> <4296fc8c-6737-3a3f-02c8-6042a093c42d@gmail.com> From: Marco Atzeri Message-ID: Date: Thu, 02 Nov 2017 12:13:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <4296fc8c-6737-3a3f-02c8-6042a093c42d@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-11/txt/msg00027.txt.bz2 On 02/11/2017 11:28, JonY wrote: > On 11/01/2017 04:07 PM, Marco Atzeri wrote: >> On 31/10/2017 00:17, JonY wrote: >> >>> -2 with the appropriate import libraries should be coming along by the >>> end of the week if all goes well. >> >> It is up but I see the same >> >> $ ./hello.exe >>  -bash: ./hello.exe: cannot execute binary file: Exec format error >> >> Does it work for you ? >> > > I think I solved the mystery, this generates a dll instead of an exe, > see the verbose output calling the compiler. > you are right; "-shared" should be used only on the 2nd step not on the third. $ gcc -c hello.adb $ gnatbind -v -shared hello gnatbind -v -shared hello GNATBIND 6.4.0 Copyright (C) 1995-2016, Free Software Foundation, Inc. Binding: hello.ali No errors $ gnatlink -v hello GNATLINK 6.4.0 Copyright (C) 1995-2016, Free Software Foundation, Inc. gcc -c -mtune=generic -march=x86-64 -gnatA -gnatWb -gnatiw -gnatws /tmp/ada/b~hello.adb /usr/bin/gcc.exe b~hello.o ./hello.o -o hello.exe -L./ -L/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/adalib/ -lgnat-6 -Wl,--stack=0x2000000 -shared-libgcc $ ./hello.exe Hello WORLD! $ cygcheck ./hello.exe |grep -v Windows E:\cygwin64\tmp\ada\hello.exe E:\cygwin64\bin\cygwin1.dll E:\cygwin64\bin\cyggnat-6.dll E:\cygwin64\bin\cyggcc_s-seh-1.dll Thanks Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple