delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2017/01/31/08:54:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=CRv4rtpIvCz/1/yg1T6B2JokL37gPAPuiZjjudgznMM=;
b=ibJc3W52J0gjcm9Dc3IjO0zUYX9SnyJ5cQB9prpFZk/nhFjPC0ChYu6r/lT3iIQd7q
5DU7eUZjDxAC3xP5yfMzX4A4yzOzAImlNdibA76SBQ22GX2vxn+DFOOR8LmlOIatc60z
MxuY3inPBoSEruvnvkJwQuxHm74C0L6uhkD00FJrQltM04b6F/UM2PP70+kNCBPS6vYf
k3t9J4PnIUD5ZC1UP2ls9T7cJi49VvOkU2ui2vyqyCg9Zc/DvQci2qABmWXxSSM1fCOc
eIHJ7CL05IJoIPF+vkvEDKsUb63Nr7azOvk8+njbV0PKynjiIF2zdC121uLoAV3SxJ8G
DUMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=CRv4rtpIvCz/1/yg1T6B2JokL37gPAPuiZjjudgznMM=;
b=rUsNfrjaDb/gVe9gj8rfjfsS9fjcie7Y5Hb/FAYCf+KeoH6E6MJykFJfjjQBRSYA2u
skClF797CnmJINVAxEl8VJnegOpq6jvuhDXafqYrZ1+qSDRYLRLEH0gBa2vihCqnRkzg
sBhG4lvO8MYGsqPtppNGXwew/CWbqzcu6kCfUiDhFGxi3yZiVkGiuR5bF7x7Wns9Evvb
HxMqSy6aVF8tEo0ddz2KdicDF+09hzIzyBrsWLF5FP7HmK3XcE6o7nc7CbvQ0Uq7Y0Wc
/z4Bh8vxVk5shxEZFwEmtxqdTyUttWxWbm3Lg/7RPlooGBGKleGlZ6VBeWSc6Br9IguV
szLw==
X-Gm-Message-State: AIkVDXKUFTTHxr/xbRcANpY4Acx1dYnGOLL8MHX6HThM0BxbmWQU15lvi52vCqyzRsAn7xKfZ9CWjmmtcrjYxQ==
X-Received: by 10.107.184.6 with SMTP id i6mr24248620iof.153.1485870846257;
Tue, 31 Jan 2017 05:54:06 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <8c52ad4f-0846-4437-b88a-3d97f1df8091@googlegroups.com>
References: <54e4e15b-fb44-453a-9b1a-0c774a47b307 AT googlegroups DOT com>
<CAA2C=vA+Zj1+ZfG9hmzOxPugyti1Sv8wOrROavObqMiaQCeuAg AT mail DOT gmail DOT com>
<36a727e1-bebe-4332-9ac6-b52fc2d18ef3 AT googlegroups DOT com> <CAA2C=vBjDbEcwz8Ybe2kc0vN_yadJjhMFxg5k_CHKgj9crBNsQ AT mail DOT gmail DOT com>
<6835ad4a-5978-42dc-8ccf-587040458abb AT googlegroups DOT com> <8c52ad4f-0846-4437-b88a-3d97f1df8091 AT googlegroups DOT com>
From: "Louis Santillan (lpsantil AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Date: Tue, 31 Jan 2017 05:54:05 -0800
Message-ID: <CAB9Rao95OA+ZimKVRCxv-frKREw-7Y=U=Uaxu11kVeUNDWxMCQ@mail.gmail.com>
Subject: Re: micropython djgpp build
To: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Can you replace CFLAGS/LDFLAGS to exclude the `--gc-sections`?

On Tue, Jan 31, 2017 at 2:48 AM, multisosnooley AT gmail DOT com [via
djgpp AT delorie DOT com] <djgpp AT delorie DOT com> wrote:
> On Thursday, January 26, 2017 at 3:13:00 AM UTC+3, multiso DOT  DOT  DOT  AT gmail DOT com wrote:
>> On Wednesday, January 25, 2017 at 6:19:02 PM UTC+3, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote:
>> > On 1/25/17, multisosnooley AT gmail DOT com [via djgpp AT delorie DOT com]
>> > <djgpp AT delorie DOT com> wrote:
>> > > On Wednesday, January 25, 2017 at 3:07:30 PM UTC+3, Ozkan Sezer
>> > > (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote:
>> > >> On 1/25/17, multisosnooley AT gmail DOT com [via djgpp AT delorie DOT com]
>> > >> <djgpp AT delorie DOT com> wrote:
>> > >> > Hi!
>> > >> >
>> > >> > We have a problem with building micropython with djgpp with
>> > >> > '--gc-sections'
>> > >> > flag active. It segfaults on linking.
>> > >> > More info:
>> > >> > https://github.com/micropython/micropython/issues/2560
>> > >> > https://github.com/micropython/micropython/pull/2644
>> > >> >
>> > >>
>> > >> Possibly related to this?
>> > >> https://sourceware.org/bugzilla/show_bug.cgi?id=20401
>> > >>
>> > >> Which binutils version are you using?
>> > >
>> > > I don't exactly now which version of binutils was used in previous cases,
>> > > but right now newest available is
>> > > http://www.delorie.com/pub/djgpp/deleted/v2gnu/bnu226sr3.zip and in bug you
>> > > reference fix comes in 2.27, but it is not released yet. Or?
>> > >
>> >
>> > There is a djgpp port of 2.27:
>> > http://www.delorie.com/pub/djgpp/current/v2gnu/bnu227s.zip
>> > http://www.delorie.com/pub/djgpp/current/v2gnu/bnu227b.zip
>> > Besides, the fix is (should be) applicable to 2.26 too.
>> >
>> > Looking at the links you provided:
>> > https://github.com/micropython/micropython/issues/2560#issuecomment-260157891
>> > mentions binutils 2.20.1.20100303: if that is version giving you the
>> > segfault then I don't know, because but as far as I remember the
>> > --gc-sections support for coff and pe targets began with
>> > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0f088b2a
>> > and that corresponds to either 2.25.1 or 2.26
>>
>> Just tested:
>>
>> [poh ~/tmp/upython]$ cat test.c
>> int main () { return 0; }
>> [poh ~/tmp/upython]$ djgpp-6.2.0/bin/i586-pc-msdosdjgpp-gcc -Wl,--gc-sections test.c
>> collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
>> compilation terminated.
>> [poh ~/tmp/upython]$ djgpp-6.2.0/bin/i586-pc-msdosdjgpp-gcc --version
>> i586-pc-msdosdjgpp-gcc (GCC) 6.2.0
>> Copyright (C) 2016 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>> [poh ~/tmp/upython]$ djgpp-6.2.0/bin/i586-pc-msdosdjgpp-ld --version
>> GNU ld (GNU Binutils) 2.26.20160125
>> Copyright (C) 2015 Free Software Foundation, Inc.
>> This program is free software; you may redistribute it under the terms of
>> the GNU General Public License version 3 or (at your option) a later version.
>> This program has absolutely no warranty.
>>
>> Will try to test with 2.27
>
> Unfortunately, building djgpp with 2.27s failed with:
> ../bfd/.libs/libbfd.a(coff-go32.o): In function `coff_swap_scnhdr_in':
> /home/broomrider/tmp/upython/build-djgpp/build/bnu227s/gnu/binutils-2.27/bfd/coffswap.h:775: undefined reference to `coff_64k_relocation_enabled'
> ../bfd/.libs/libbfd.a(coff-go32.o): In function `coff_swap_scnhdr_out':
> /home/broomrider/tmp/upython/build-djgpp/build/bnu227s/gnu/binutils-2.27/bfd/coffswap.h:815: undefined reference to `coff_64k_relocation_enabled'
> ../bfd/.libs/libbfd.a(coff-go32.o): In function `coff_set_alignment_hook':
> /home/broomrider/tmp/upython/build-djgpp/build/bnu227s/gnu/binutils-2.27/bfd/coffcode.h:1990: undefined reference to `coff_64k_relocation_enabled'
> ../bfd/.libs/libbfd.a(coff-stgo32.o): In function `_bfd_go32_mkobject':
> /home/broomrider/tmp/upython/build-djgpp/build/bnu227s/gnu/binutils-2.27/bfd/coff-stgo32.c:454: undefined reference to `coff_64k_relocation_enabled'
>
> I found this:
> https://groups.google.com/d/msg/comp.os.msdos.djgpp/mUOzbTpE1Sk/ODqAENwlAgAJ
> But, as I realized, there is no solution right now.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019