X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_NV X-Spam-Check-By: sourceware.org Received-SPF: pass (google.com: domain of hiyuh DOT root AT gmail DOT com designates 10.42.147.199 as permitted sender) client-ip=10.42.147.199; Authentication-Results: mr.google.com; spf=pass (google.com: domain of hiyuh DOT root AT gmail DOT com designates 10.42.147.199 as permitted sender) smtp.mail=hiyuh DOT root AT gmail DOT com; dkim=pass header.i=hiyuh DOT root AT gmail DOT com MIME-Version: 1.0 In-Reply-To: References: <4F4114D6 DOT 4030104 AT gmail DOT com> Date: Tue, 21 Feb 2012 02:53:21 +0900 Message-ID: Subject: Re: LLVM ERROR: Program used external function '...' which could not be resolved! From: KIMURA Masaru To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q1KHs1Ww005562 Hi, 2012/2/20 KIMURA Masaru : > And more Google'ing, I found this post on LLVMdev ML: > >  http://lists.cs.uiuc.edu/pipermail/llvmdev/2005-June/004364.html > >  > 2. The LLI test failures occur because the dlsym function on cygwin can >  > only find symbols in a loaded DLL. If the symbol is in the .EXE file >  > then the symbol doesn't get found. Since LLI links in things like >  > printf, strcat, and some other fundamental functions, they don't get >  > found on Cygwin. A similar thing happens on MacOS but for a much >  > smaller set of files for which we hand code a workaround. The set >  > of functions on Cygwin is basically a large fraction of glibc, too >  > much to do by hand. > > But this is back in 2005, I don't know this is still correct in 2012, > LLVM-3.0 and Cygwin-1.7. I've tried to build nvc w/ stub DLL, the errors are gone and it works fine. I guess this issue still stands. (maybe upstream WONTFIX?) anyway, thank you to marco for trying help. and sorry for noise again. Peace, -- 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