ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Антон Мидюков" <midyukov-anton@ya.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] Странная ошибка при сборке на i586
Date: Sat, 4 Feb 2017 08:46:19 +0700
Message-ID: <93b34c1f-e09d-de43-0932-5db75b1d040a@ya.ru> (raw)
In-Reply-To: <20170203134453.GG9009@glebfm.cloud.tilaa.com>

03.02.2017 20:44, Gleb Fotengauer-Malinovskiy пишет:
> On Fri, Feb 03, 2017 at 08:15:08PM +0700, Антон Мидюков wrote:
>> 03.02.2017 18:20, Антон Мидюков пишет:
>>> 03.02.2017 18:05, Gleb Fotengauer-Malinovskiy пишет:
>>>> On Fri, Feb 03, 2017 at 03:49:17PM +0700, Антон Мидюков wrote:
>>>>> При сборке linuxcnc на i586 возникает странная ошибка:
>>>>> Linking ../rtlib/clarke2.so
>>>>> `__x86.get_pc_thunk.dx' referenced in section `.text' of
>>>>> objects/clarke2.tmp: defined in discarded section
>>>>> `.text.__x86.get_pc_thunk.dx[__x86.get_pc_thunk.dx]' of
>>>>> objects/clarke2.tmp
>>>>> http://git.altlinux.org/tasks/177559/build/40/i586/log
>>>> Наверное, вот тут:
>>>> http://git.altlinux.org/people/antohami/packages/linuxcnc.git?p=linuxcnc.git;a=blob;f=src/Makefile.modinc.in;h=5ee051cf0f8f5438f12af778084c56bab80bcd50;hb=383fb038551de80b59d1bbef000f840aef49cccd#l123
>>>>
>>>> нужно сказать objcopy копировать ещё и __x86.get_pc_thunk.dx .
>>>>
>>>> См. также https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59842#c4 .
>>>> Последний абзац стоит показать апстриму.  objcopy -- довольно интересный
>>>> способ решения этой задачи.
>>> Спасибо, Глеб, сейчас попробую.
>>>
>> Вставил в 123 строку src/Makefile.modinc.in
> Там есть и в src/Makefile такие хаки.  Видимо, туда (тоже?) нужно
> добавить.
>
>> -G __x86.get_pc_thunk.dx
>> Выглядит теперь так
>> $(Q)if ! $(IS_POWERPC); then objcopy -G __x86.get_pc_thunk.bx -G
>> __i686.get_pc_thunk.bx  -G __x86.get_pc_thunk.dx `xargs -r0n1 echo -G <
>> $*.exp | grep -ve '^-G $$' | sort -u` $*.tmp; fi
>>
>> Ошибка та же. Я неправильно сделал или не помогло?
Действительно нужно. Собралось.
Тем временем выяснилось, что в ветке master проблема была пофикшена ещё 
в феврале прошлого года :-) Сейчас тот коммит бэкпортировали в ветку 2.7 
и просят протестировать, чем и занимаюсь.
Ещё раз спасибо за помощь.

-- 
С уважением Антон Мидюков <antohami@altlinux.org>



      reply	other threads:[~2017-02-04  1:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-03  8:49 Антон Мидюков
2017-02-03 11:05 ` Gleb Fotengauer-Malinovskiy
2017-02-03 11:20   ` Антон Мидюков
2017-02-03 13:15     ` Антон Мидюков
2017-02-03 13:44       ` Gleb Fotengauer-Malinovskiy
2017-02-04  1:46         ` Антон Мидюков [this message]

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=93b34c1f-e09d-de43-0932-5db75b1d040a@ya.ru \
    --to=midyukov-anton@ya.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