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=ek0rm6/G63wMlB0y0SDQQZq87PLrEQiLmK9mjhzSVL0=; b=a3wELWSagXb7zg7OwoH3q2mf/TooFjbiYBU54gRAQQ/G9DkJ5rPcahBZ425vI03HvG oeb6AxPcU/2FbMpH51SQL3optjFPPlJB0l85BXWToQ6e1SayrqDRN50Twq6W3cq/fSdQ 1kd6u4d7gV6VOvFgoZ+BG280ECCuDnVvMxfkV+V5EAIkB+YCrrTEXExJZEaaqGDV91J0 nE2hUibu/ZS5yCykO/3B3jkvDhpWMGbHhIVRinSmTPGGIsADgw7UIvOQi77xRvsN4qYr RpTwe2r4q4Yj/b+U/XXaTzg7pRReO6BFRHRko+9YYCg3ejvGmNmQwbImjTy9ZIDEo3g4 T/Nw== 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=ek0rm6/G63wMlB0y0SDQQZq87PLrEQiLmK9mjhzSVL0=; b=JExdUuQWKruLMBrpnauF/8Sx4nMl1iDHIE7h948tMbAcJTBslYj9Nl9rkIcL1nHi+7 ZylqnESc7psfxCUDqgv5SDEQP5mSGzpWjEUK3jh5OdObPFVPSAr0QnKmD6KJpKToG80J /J5UkhronpwsCFzCaNzXWpc3PdAVphmYLyFSHUfWEa3gh6Ilq4+aOol/5dZutKx23CZd 28spIVaFTw0yuKHtrQJrEBUNF/xnTDMlFE2iNPthKA5lAjeeTXAt08I2Ar6s9TGVjmqk v57+B/I8XoSV1iOBrkhVArEX4PTdc156er9jgpZQ8P+8U1p8BXcx5A/P7sGFoY+K6KBZ fYpg== X-Gm-Message-State: AIkVDXJVgHW7KKsq2n18O4IqlbpfKCpeajq874i6UagvOo/bavRgOs8/VQ8s/6+GmGAZLGLwk2GNYOGCSEAnqQ== X-Received: by 10.107.59.193 with SMTP id i184mr33544707ioa.86.1485357526383; Wed, 25 Jan 2017 07:18:46 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <36a727e1-bebe-4332-9ac6-b52fc2d18ef3@googlegroups.com> References: <54e4e15b-fb44-453a-9b1a-0c774a47b307 AT googlegroups DOT com> <36a727e1-bebe-4332-9ac6-b52fc2d18ef3 AT googlegroups DOT com> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Wed, 25 Jan 2017 18:18:45 +0300 Message-ID: Subject: Re: micropython djgpp build To: djgpp AT delorie DOT com Content-Type: text/plain; charset=UTF-8 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 Precedence: bulk On 1/25/17, multisosnooley AT gmail DOT com [via 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] >> 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