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:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=GJtdNNn8XI5eAz8UQXm2dfLIwdOR1 HygmK/g33RKC9EUwnMMgzJ8dA5IwnR6xUjuVLrTm8kJt1CorzhU7DSTRj9hCcTYx RJBbQEtWaiVKmB1K4aHhs83AqsiYs3gDI1Jx/vu0D/L1JHIGJ+1SQgEN3LpKhAS9 jfyyHhZfk9RKgs= 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:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=nZRN7/iqgnqr6gUGPPsG13emjgk=; b=N45 9EX0Jjcm5m7r0ujH4Ozg+FClAhuBK6KMsy0awDsX/oyhMKT8YFI2fNFz4/G6194S znqUF1vd04RHTB0/1BoszOR4YaiHV46tTHXM160pIry/maqR8NTYadTrSskOfjfy Fa9x5uWhyu02dhlKZ0yyqKE2vMOUV/PwFy03jUso= 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=-1.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,GIT_PATCH_2,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=shanghai, Shanghai, Center, Room X-HELO: mail-oi1-f175.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=gGSspnkCKZzrEoNziB/aYseS4GCNhb/gRtQLMmY0pXc=; b=QoIZJFI3yaVOd+xb/rv1vhq/+tknZdKste/h/5N7424BzlfhdUFi5VstuRHFi8Iz39 bgAj/jZfpfVuA3PwzE947s+EnaJUlkAUtHgfIc+TPTN+Fvh2jVlLO0pkax7MNE+H9Puu eaeWRM4NtP3H5bctiF75gaT0mWfLhuO5ifjUPJ2+TDUzE4ypEwisHJ0nHU0gIk2+3c2C qvW8RThVVQfBqx02dKv4i48b05htnfmWyXqdABEQC+CHD9ifnX7KS6OmVrSnymyL7Wlq l5MTSUakKza/V+dsxS10uvx2EMO1ZTGOXRf+vb+YjiAAHzuajzJfIFn4BbQfaf8f9mjD LmEQ== MIME-Version: 1.0 From: Cao Qinxiang Date: Mon, 2 Mar 2020 02:35:08 +0800 Message-ID: Subject: flexdll error: cannot relocate RELOC_REL32 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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 ---------------- Thank you very much! Qinxiang Cao Shanghai Jiao Tong University, John Hopcroft Center Room 1110-2, SJTUSE Building 800 Dongchuan Road, Shanghai, China, 200240 -- 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