ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@basealt.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] Q: /usr/lib64/ocaml/libasmrun.a -> textrel in ocaml on armh and x86
Date: Thu, 24 Dec 2020 13:27:37 +0300
Message-ID: <68139234-9edf-6b16-0bdb-5a6879ffd74c@basealt.ru> (raw)
In-Reply-To: <20201223195447.GA14555@altlinux.org>

On 23.12.2020 22:54, Dmitry V. Levin wrote:
> On Wed, Dec 23, 2020 at 10:38:07PM +0300, Anton Farygin wrote:
> [...]
>> А пока я так не сделал - вариант с проверкой наличия _is_ilp32 возможен ?
> Возможен, и даже лучше, поскольку исключение требуется для всех 32-битных
> архитектур, а не только для armh и x86, насколько я понимаю.
>
>> Ну, т.е. что-то вроде
>>
>> %_verify_elf_method %{?_is_ilp32:textrel=relaxed} %{!?_is_ilp32:default}
> Да, так будет работать (пробел лишний, но это не важно).
>
>
Да, с этим изменением дошло до сборки ppxlib на armh и бахнуло уже так, 
что я точно не знаю что с этим делать (на тестах, правда, но в ld):
http://git.altlinux.org/tasks/263310/build/13140/armh/log


[00:01:20] :(.data+0x49eb0): dangerous relocation: unsupported relocation
[00:01:20] :(.data+0x49ebc): dangerous relocation: unsupported relocation
[00:01:20] :(.data+0x49ec8): dangerous relocation: unsupported relocation
[00:01:20] :(.data+0x49ed4): dangerous relocation: unsupported relocation
[00:01:20] :(.data+0x49ee0): dangerous relocation: unsupported relocation
[00:01:20] :(.data+0x49eec): dangerous relocation: unsupported relocation
[00:01:20] /usr/bin/ld.default: warning: creating DT_TEXTREL in a PIE
[00:01:20] collect2: error: ld returned 1 exit status
[00:01:20] File "caml_startup", line 1:

Проблема в том, что ocaml-ppxlib слишком важный пакет, что бы его можно было просто не собирать на armh. анализ делал на Sisyphus:

ocaml-ppxlib
ocaml-ppx_here
ocaml-ppx_cold
ocaml-ppx_let
ocaml-ppx_fixed_literal
ocaml-ppx_sexp_conv
ocaml-cstruct
ocaml-ipaddr
ocaml-ppx_pipebang
ocaml-ppx_compare
ocaml-ppx_optional
ocaml-ppx_js_style
ocaml-ppx_fields_conv
ocaml-ppx_enumerate
ocaml-ppx_optcomp
ocaml-ppx_variants_conv
ocaml-ppx_typerep_conv
ocaml-ppx_custom_printf
ocaml-yaml
ocaml-uri
ocaml-conduit
ocaml-cohttp
ocaml-ppx_sexp_message
ocaml-ppx_sexp_value
ocaml-ppx_hash
ocaml-ppx_assert
ocaml-ppx_base
ocaml-ppx_string
ocaml-jst-config
ocaml-time_now
ocaml-ppx_inline_test
ocaml-ppx_expect
js_of_ocaml
ocaml-ptime
ocaml-syndic
ocaml-ppx_module_timer

По хорошему мне бы нативный чрут с armh, в котором можно было бы поотлаживать эту историю. Но наша сборочница в Обнинске ведёт себя нестабильно и на ней падает ядро.





  reply	other threads:[~2020-12-24 10:27 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 16:55 [devel] Q: /usr/lib64/ocaml/libasmrun.a Dmitry V. Levin
2020-12-04 19:13 ` Anton Farygin
2020-12-04 19:56   ` Dmitry V. Levin
2020-12-04 22:39     ` Anton Farygin
2020-12-06  8:31     ` Anton Farygin
2020-12-06 10:43       ` Yuri Sedunov
2020-12-06 14:08         ` Anton Farygin
2020-12-06 14:20           ` Dmitry V. Levin
2020-12-06 17:19             ` Anton Farygin
2020-12-06 17:32               ` Dmitry V. Levin
2020-12-06 17:34                 ` Anton Farygin
2020-12-06 18:03                   ` [devel] xen and gcc-10 Anton Farygin
2020-12-06 18:18                     ` Dmitry V. Levin
2020-12-07  6:01                     ` Andrey Cherepanov
2020-12-23 11:48                   ` [devel] Q: /usr/lib64/ocaml/libasmrun.a Yuri Sedunov
2020-12-23 12:16                     ` [devel] Q: /usr/lib64/ocaml/libasmrun.a -> textrel in ocaml on armh and x86 Anton Farygin
2020-12-23 13:08                       ` Alexey Gladkov
2020-12-23 13:31                         ` Anton Farygin
2020-12-23 13:42                           ` Yuri Sedunov
2020-12-23 15:37                             ` Anton Farygin
2020-12-23 16:49                               ` Dmitry V. Levin
2020-12-23 18:40                                 ` Anton Farygin
2020-12-23 18:57                                   ` Dmitry V. Levin
2020-12-23 19:12                                     ` Dmitry V. Levin
2020-12-23 19:38                                       ` Anton Farygin
2020-12-23 19:54                                         ` Dmitry V. Levin
2020-12-24 10:27                                           ` Anton Farygin [this message]
2020-12-24 10:50                                             ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68139234-9edf-6b16-0bdb-5a6879ffd74c@basealt.ru \
    --to=rider@basealt.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git