public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* flexdll error: cannot relocate RELOC_REL32
@ 2020-03-01 18:35 Cao Qinxiang
  2020-03-02  7:58 ` Brian Inglis
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Cao Qinxiang @ 2020-03-01 18:35 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: flexdll error: cannot relocate RELOC_REL32
  2020-03-01 18:35 flexdll error: cannot relocate RELOC_REL32 Cao Qinxiang
  2020-03-02  7:58 ` Brian Inglis
@ 2020-03-02  7:58 ` Brian Inglis
       [not found]   ` <CAKAoUeasRTycj61MOn6KWWUhhc_3COrQ4-WcoyJKcJZV4HHqRA@mail.gmail.com>
  2020-03-02 17:16 ` Achim Gratz
  2 siblings, 1 reply; 8+ messages in thread
From: Brian Inglis @ 2020-03-02  7:58 UTC (permalink / raw)
  To: cygwin; +Cc: Cao Qinxiang

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.

-- 
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: flexdll error: cannot relocate RELOC_REL32
  2020-03-01 18:35 flexdll error: cannot relocate RELOC_REL32 Cao Qinxiang
@ 2020-03-02  7:58 ` Brian Inglis
  2020-03-02 13:19   ` Cao Qinxiang
  2020-03-02  7:58 ` Brian Inglis
  2020-03-02 17:16 ` Achim Gratz
  2 siblings, 1 reply; 8+ messages in thread
From: Brian Inglis @ 2020-03-02  7:58 UTC (permalink / raw)
  To: cygwin; +Cc: Cao Qinxiang

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: flexdll error: cannot relocate RELOC_REL32
  2020-03-02  7:58 ` Brian Inglis
@ 2020-03-02 13:19   ` Cao Qinxiang
  0 siblings, 0 replies; 8+ messages in thread
From: Cao Qinxiang @ 2020-03-02 13:19 UTC (permalink / raw)
  To: Brian.Inglis; +Cc: cygwin

Dear Brian,

Thank you for you reply.

But it does not solve my problem. When I run "rebase-trigger full", I get
the following message:
-----
Note: _autorebase will do a full rebase the next time setup is run.
-----

If I check /var/cache/rebase/fullrebase at this time, it contains the
follow information:
-----
# _autorebase will do a rebuild of the rebase database if this file
# exists and then rename it to fullrebase.done
-----

Then I closed Cygwin and checked Task Manager Details (found no exe in
cygwin folder). Then I run Cygwin setup. But after I rerun Cygwin again, I
get the same error message about dllunix.so. BTW, in
/var/cache/rebase/rebase_all, I found nothing related to dllunix.so. Is a
the reason? I put my /var/cache/rebase/ folder in this git repo "
https://github.com/QinxiangCao/CygwinDebug" and hope it can help detect
the problem.

Thank you very much!

Best regards,
Qinxiang Cao
Shanghai Jiao Tong University, John Hopcroft Center
Room 1110-2, SJTUSE Building
800 Dongchuan Road, Shanghai, China, 200240



On Mon, Mar 2, 2020 at 3:58 PM Brian Inglis <Brian.Inglis@shaw.ca> wrote:

> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: flexdll error: cannot relocate RELOC_REL32
       [not found]   ` <CAKAoUeasRTycj61MOn6KWWUhhc_3COrQ4-WcoyJKcJZV4HHqRA@mail.gmail.com>
@ 2020-03-02 16:45     ` Brian Inglis
  2020-03-02 17:32       ` Achim Gratz
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Inglis @ 2020-03-02 16:45 UTC (permalink / raw)
  To: cygwin; +Cc: Cao Qinxiang


On 2020-03-02 05:57, Cao Qinxiang wrote:
> On Mon, Mar 2, 2020 at 3:58 PM Brian Inglis wrote:
>> On 2020-03-01 11:35, Cao Qinxiang wrote:
>>> 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 <http://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 <http://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.

> Thank you for you reply.
> But it does not solve my problem. When I run "rebase-trigger full", I get the
> following message:
> Note: _autorebase will do a full rebase the next time setup is run.
> If I check /var/cache/rebase/fullrebase at this time, it contains the follow
> information:
> # _autorebase will do a rebuild of the rebase database if this file
> # exists and then rename it to fullrebase.done
> Then I closed Cygwin and checked Task Manager Details (found no exe in
> cygwin folder). Then I run Cygwin setup. But after I rerun Cygwin again, I
> get the same error message about dllunix.so. BTW, in
> /var/cache/rebase/rebase_all, I found nothing related to dllunix.so. Is a the
> reason? I attached my /var/cache/rebase/ folder to this email and hope it can
> help detect the problem.
Try what's documented in /usr/share/doc/Cygwin/_autorebase.README for DLLs under
non-standard system paths:

create a file /var/lib/rebase/dynpath.d/ocaml containing your .so directory path
/usr/lib/ocaml/stublibs/:

	$ echo /usr/lib/ocaml/stublibs/ > /var/lib/rebase/dynpath.d/ocaml

then rebase-trigger full, shutdown all Cygwin processes, rerun setup, and your
Cygwin setup should be properly rebased including your added DLLs/SOs.

If you were testing as a user, you should add your build paths to
/var/lib/rebase/user.d/$USER e.g.

	$ echo $HOME/src/build/lib/ocam/stublibs/ > /var/lib/rebase/user.d/$USER

and do the above to pick up the added paths and include them in the Cygwin
rebase database.

-- 
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: flexdll error: cannot relocate RELOC_REL32
  2020-03-01 18:35 flexdll error: cannot relocate RELOC_REL32 Cao Qinxiang
  2020-03-02  7:58 ` Brian Inglis
  2020-03-02  7:58 ` Brian Inglis
@ 2020-03-02 17:16 ` Achim Gratz
  2 siblings, 0 replies; 8+ messages in thread
From: Achim Gratz @ 2020-03-02 17:16 UTC (permalink / raw)
  To: cygwin

Cao Qinxiang writes:
> 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:

The dynamic objects for OCaml must not be rebased, they simply stop
working if you try.  They are specifically exempted from getting picked
up by autorebase for this very reason.  If you rebased them manually or
somehow managed to overwrite them with other versions (opam sometimes
does this and it seems you are trying some sort of OCaml build whenjh
this happens, which may have done this), you should re-installl all
OCaml packages of your installation.

> ----------------
> 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
> ----------------

All of these solutions are wrong, IMHO (even on 32bit).

> 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
> ----------------

This is a very low load address and that indicates there is either BLODA
involved or you've managed to have two different versions of dllunix.so
loaded into memroy at the same time.  Again, it seems you are trying to
do a build with OCaml, you must ensure it doesn't create libraries you
already have installed from Cygwin packages and certainly to not
overwrite them.


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: flexdll error: cannot relocate RELOC_REL32
  2020-03-02 16:45     ` Brian Inglis
@ 2020-03-02 17:32       ` Achim Gratz
  2020-03-06 19:03         ` Cao Qinxiang
  0 siblings, 1 reply; 8+ messages in thread
From: Achim Gratz @ 2020-03-02 17:32 UTC (permalink / raw)
  To: cygwin

Brian Inglis writes:
> Try what's documented in /usr/share/doc/Cygwin/_autorebase.README for DLLs under
> non-standard system paths:

…which 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: flexdll error: cannot relocate RELOC_REL32
  2020-03-02 17:32       ` Achim Gratz
@ 2020-03-06 19:03         ` Cao Qinxiang
  0 siblings, 0 replies; 8+ messages in thread
From: Cao Qinxiang @ 2020-03-06 19:03 UTC (permalink / raw)
  To: cygwin, Achim Gratz, Brian Inglis

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=detect_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 <Stromeko@nexgo.de> wrote:

> Brian Inglis writes:
> > Try what's documented in /usr/share/doc/Cygwin/_autorebase.README for
> DLLs under
> > non-standard system paths:
>
> …which 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-06 17:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-01 18:35 flexdll error: cannot relocate RELOC_REL32 Cao Qinxiang
2020-03-02  7:58 ` Brian Inglis
2020-03-02 13:19   ` Cao Qinxiang
2020-03-02  7:58 ` Brian Inglis
     [not found]   ` <CAKAoUeasRTycj61MOn6KWWUhhc_3COrQ4-WcoyJKcJZV4HHqRA@mail.gmail.com>
2020-03-02 16:45     ` Brian Inglis
2020-03-02 17:32       ` Achim Gratz
2020-03-06 19:03         ` Cao Qinxiang
2020-03-02 17:16 ` Achim Gratz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).