X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:cc:from :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=jjQVQWSBs04Gh4AK pePb1X4VDELoLOlgrgkNnJipKH/SOYxld8jNo9d/aC+AzLXXoDyrUr9HUReE+v9V yAik3z7+EGbStqzUIcfvGOuvstDkIh26HOB4ulEi21LHBfJB6Rftii6j5eCyT+xv RclRXkT33moyHGqaMhugmDiyfVs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:cc:from :message-id:date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=QrviZfbTu3L+r/aouCNHI9 Uld1E=; b=wnnIJ+wQ/isHZ+OTlanqsp0Z8WLNDino8USOHiPLctQ0rcs6K+vp+X VAPphLdadB7zvNFZ4vpbrDfl4Zbrb01EW9OtYxassiCMQSwrW/dbkN5gTBFUY8U7 FHlYE24vylVSpYKuHH6A1XZwH3ruRMofZFYkOzw+e07LMTfNwX/VI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=H*Ad:D*ca, disturbing, online, dear X-HELO: smtp-out-no.shaw.ca DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shaw.ca; s=s20180605; t=1583135913; bh=kbs1O7u7c1gtX/QzJZdOInV+u2vjEH6IHVtwvjY+4DA=; h=Reply-To:Subject:To:References:Cc:From:Date:In-Reply-To; b=cjfjXjDczgH3RJlZhMuNcezaLVQMKuGd/L9wMn5fyfpNExC0pDHOia5+OnFmUqR9D Jt7s4vahNKhRnawkxq1A8Kj9YByHsg3dOmvrXlwxgB3uG0U46dDIFZPdtoZ7OP5ZGa a26eDo1xaL1zaCCzyYJAPYVHh1xyO560zYbllix4oKsek0FhUAHWbxGqoCLs21zqV9 1400tKWjMdbTlQTKexH09KEzM4zu5qSzhu/MwoP2Wv79mvgZoSYQpsnXdNh6DvHHCs hgD6F8sU8T9deUria/dRQIzJtof4EPcVnmjFXv5Roa9ADEyNEGfR/v2gg3oXY//qhP cTHGhCGJY/5KQ== Reply-To: Brian DOT Inglis AT Shaw DOT ca Subject: Re: flexdll error: cannot relocate RELOC_REL32 To: cygwin AT cygwin DOT com References: Cc: Cao Qinxiang From: Brian Inglis Message-ID: <798a55b4-8511-1999-75cd-9ac781ebc8a3@Shaw.ca> Date: Mon, 2 Mar 2020 00:58:31 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 2020-03-01 11:35, Cao Qinxiang wrote: > Dear Cygwin development team and Cygwin experts, > > I use Cygwin-64 on windows and get a fork problem when I try to manually > install menhir package. > > ---------------- > 0 [main] ocamlrun 1615 child_info_fork::abort: address space needed by > 'dllunix.so' (0x400000) is already occupied > /usr/bin/ocamldep.opt -modules menhir.ml > menhir.ml.depends > 0 [main] ocamlrun 1616 child_info_fork::abort: address space needed > by 'dllunix.so' (0x400000) is already occupied > /cygdrive/g/Cygwin/menhir-20190924/src/_stage1/myocamlbuild: "fork" failed: > Resource temporarily unavailable > ---------------- > > I follow online suggestion to run "/usr/bin/rebaseall -v" using ash.exe. > However, I get another program after that: > > > ---------------- > Fatal error: cannot load shared library dllunix > Reason: flexdll error: cannot relocate RELOC_REL32, target is too far: > 0xfffffffc02088b5f 0x2088b5f > ---------------- > > I searched solutions for this new problem. Most solutions are to manually > rebase dllunix to a lower number like 0x06440000. However, I cannot > do that. Here is what I get in Cygwin: > > ---------------- > $ rebase -b 0x06440000 /usr/lib/ocaml/stublibs/dllunix.so > rebase: Invalid Baseaddress 0x06440000, must be > 0x200000000 > ---------------- > > So, what should I do to this problem? > > Also, if I did not use "/usr/bin/rebaseall -v" using ash.exe, but follow > FAQ's suggestion (run "rebase-trigger fullrebase" in Cygwin), then I cannot > solve the fork problem and still get > ---------------- > 0 [main] ocamlrun 1615 child_info_fork::abort: address space needed by > 'dllunix.so' (0x400000) is already occupied > /usr/bin/ocamldep.opt -modules menhir.ml > menhir.ml.depends > 0 [main] ocamlrun 1616 child_info_fork::abort: address space needed > by 'dllunix.so' (0x400000) is already occupied > /cygdrive/g/Cygwin/menhir-20190924/src/_stage1/myocamlbuild: "fork" failed: > Resource temporarily unavailable > ---------------- Run rebase-trigger full then shut down *ALL* Cygwin processes: check Task Manager Details tab Image path name column for process paths under Cygwin root and kill. If rebase-trigger full fails, create /var/cache/rebase/fullrebase. Then download and run Cygwin setup and let all the postinstall scripts complete. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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