From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33471 invoked by alias); 22 Jul 2016 12:54:20 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 31597 invoked by uid 89); 22 Jul 2016 12:54:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*R:U*cygwin-xfree, Watts, watts, H*F:D*org.uk X-HELO: out5-smtp.messagingengine.com Received: from out5-smtp.messagingengine.com (HELO out5-smtp.messagingengine.com) (66.111.4.29) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 22 Jul 2016 12:54:04 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A817A206A1; Fri, 22 Jul 2016 08:54:02 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 22 Jul 2016 08:54:02 -0400 Received: from [192.168.1.102] (host86-179-112-245.range86-179.btcentralplus.com [86.179.112.245]) by mail.messagingengine.com (Postfix) with ESMTPA id 34D35F2A03; Fri, 22 Jul 2016 08:54:02 -0400 (EDT) Subject: Re: SIGSEGV in XopenDisplay in Cygwin64 X11 To: cygwin-xfree@cygwin.com References: <1d256cae-f585-b6e8-1d01-6bbd6551c11e@isoparix.com> From: Jon Turney Reply-To: cygwin-xfree@cygwin.com Cc: john_watts@isoparix.com Message-ID: <7885f26b-f128-6a4f-518d-c3c62ca3737f@dronecode.org.uk> Date: Fri, 22 Jul 2016 12:54:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1d256cae-f585-b6e8-1d01-6bbd6551c11e@isoparix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-07/txt/msg00002.txt.bz2 On 21/07/2016 17:25, John Watts wrote: > cygcheck.out [...] > gamin 0.1.10-15 OK > gawk 4.1.3-1 OK > gdb 7.10.1-1 OK [...] > mingw64-x86_64-binutils 2.25.0.1.23f238d-1 OK > mingw64-x86_64-gcc-core 4.9.2-2 OK > mingw64-x86_64-gcc-fortran 4.9.2-2 OK > mingw64-x86_64-gcc-g++ 4.9.2-2 OK > mingw64-x86_64-headers 4.0.6-1 OK > mingw64-x86_64-runtime 4.0.6-1 OK > mingw64-x86_64-windows-default-manifest 6.4-1 OK > mingw64-x86_64-winpthreads 4.0.6-1 OK So, I don't see that you have cygwin gfortran installed, so I assume the gfortran below is mingw64-x86_64 targeted one? > # Compile code with following flags > > gfortran -g -fdollar-ok -c testxod.f > gfortran -g -I/cygdrive/c/cygwin64/usr/include -I/cygdrive/c/cygwin64/usr/include/X11 -c isox11.c > gfortran testxod.o isox11.o defmap.o bmp_comms.o read_cmap_params.o isoflush.o -o ../ISOPARIX/testxod.exe -L/cygdrive/c/cygwin64/lib -lX11 So this doesn't seem right. Linking the cygwin libX11 with objects built with a mingw64 targeted compiler isn't going to work correctly. I'm afraid we don't provide packages for mingw64 X libraries, so I guess your alternatives are to build those yourself, or to build everything using a cygwin targeted compiler. -- Jon Turney Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/