From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90740 invoked by alias); 6 Mar 2020 17:39:03 -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 90718 invoked by uid 89); 6 Mar 2020 17:39:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,GIT_PATCH_2,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=unsubscribesimple, unsubscribe-simple, Room, cao X-HELO: mail-ot1-f42.google.com Received: from mail-ot1-f42.google.com (HELO mail-ot1-f42.google.com) (209.85.210.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Mar 2020 17:38:56 +0000 Received: by mail-ot1-f42.google.com with SMTP id x19so3213134otp.7 for ; Fri, 06 Mar 2020 09:38:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=6bpI59r5qGIickpAuvB8sOFcv/QsFouVvFJ4DaKd2yI=; b=qQ8QaW6ejjtzWJPeij6JzcXRNeIpDRycpIjsd+CzV1oEmuKHYIeJ7t7u3yfxg+4aSD raPIJ+GD2gP1UdSZ2MrocfptyEU/HU98RLoUVcKeb3K5/O4ZxkXspiCwalgU2x49btaI 9heXXxMAxjiF6mciWN7BPtz5mbbsEAYHYRdVdnb0Qo+PPMFZ1kqRJMjJieCWjyzZoNVx wXoVUFPuWQ+Y8rlkA0EJJ6NOLUekyR9mKUZZuGE2z2SFgnYClzOqEmhmZCaWI+xUwLRl DSi2rs/4dr63b4guqQZwOfFuXVPFSBnPoP/z91S1dDSQQim0IJ/1IFfOFIPq+jgAKaM0 LWMw== MIME-Version: 1.0 References: <6f465767-08af-cb75-8d32-6ba3e6254e72@SystematicSw.ab.ca> <87blpepsqp.fsf@Rainer.invalid> In-Reply-To: <87blpepsqp.fsf@Rainer.invalid> From: Cao Qinxiang Date: Fri, 06 Mar 2020 19:03:00 -0000 Message-ID: Subject: Re: flexdll error: cannot relocate RELOC_REL32 To: cygwin@cygwin.com, Achim Gratz , Brian Inglis Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2020-03/txt/msg00096.txt Dear Achim and Brian, Thank you very much for you suggestions. And as Achim guessed, I was trying to build a ocaml based library: Menhir. Currently, my problem is still not solved. If I try: ------- echo /usr/lib/ocaml/stublibs/ > /var/lib/rebase/dynpath.d/ocaml ------- and then rebase, I get the following error: ------- Fatal error: cannot load shared library dllunix Reason: flexdll error: cannot relocate RELOC_REL32, target is too far: 0xfffffffc02088b5f 0x2088b5f ------- I also tried to check whether BLODA is involved. I use ------- export CYGWIN=3Ddetect_bloda ------- But when I compile menhir, I get the same error message about fork() and dllunix.so, but no bloda is detected. Also, if I try to search "dllunix.so", I find the following instances: ------- /lib/ocaml/stublibs/dllunix.so /usr/lib/ocaml/stublibs/dllunix.so /proc/sys/KernelObjects/HighCommitCondition/dllunix.so /proc/sys/KernelObjects/HighMemoryCondition/dllunix.so /proc/sys/KernelObjects/LowCommitCondition/dllunix.so /proc/sys/KernelObjects/LowMemoryCondition/dllunix.so /proc/sys/KernelObjects/MaximumCommitCondition/dllunix.so /proc/sys/KernelObjects/MemoryErrors/dllunix.so /proc/sys/KernelObjects/PhysicalMemoryChange/dllunix.so -------- Is there a duplication there? I don't think I manually add any of these. Best, Qinxiang Cao Shanghai Jiao Tong University, John Hopcroft Center Room 1110-2, SJTUSE Building 800 Dongchuan Road, Shanghai, China, 200240 On Tue, Mar 3, 2020 at 1:33 AM Achim Gratz wrote: > Brian Inglis writes: > > Try what's documented in /usr/share/doc/Cygwin/_autorebase.README for > DLLs under > > non-standard system paths: > > =E2=80=A6which by some extension means you shouldn't add system paths. > > > create a file /var/lib/rebase/dynpath.d/ocaml containing your .so > directory path > > /usr/lib/ocaml/stublibs/: > > Don't. The OCaml stublibs must not be rebased. > > > Regards, > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > > SD adaptation for Waldorf rackAttack V1.04R1: > http://Synth.Stromeko.net/Downloads.html#WaldorfSDada > > -- > 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 > > -- 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