From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by sourceware.org (Postfix) with ESMTPS id A8FF73858D3C for ; Mon, 27 Dec 2021 12:31:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A8FF73858D3C Received: by mail-yb1-xb2c.google.com with SMTP id d201so20461573ybc.7 for ; Mon, 27 Dec 2021 04:31:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BfgzhJ7pY9XxJsqpVF1PkMoSXAk6vyDx0l2BR1VtHD4=; b=2KGApMT8RX0XsE9dtIIjWcQa3b0nLgu1zLfbT+VBuLBUoFTKdTq2B1rJc58Tp/Q8++ I3ORmgqfp1Fxi8DmeURevhfW0XvskNSZeEz8B2TQxec9iRsvcgI7IgqSVUcLjxFYYeIH UbbIX6/WKH37wW4VNcyOP2xdeJoSAgsclGHnkuXGtzG6/VeV31N08QHZUj0/+5J9C3Wo 1h8c1TTX1M6p5vA++4EUpAu6rp7z41w2e5OEwOmdV7Hr7EwoTveTNFbBq1eWc7j06FSm Bj7F3nNSydemlODIu27IGhsSwx0FH0+PHthlAlww2q+R/juN9eYUHU843nJcW+kmVusg mhxA== X-Gm-Message-State: AOAM530necjvlhuXBH4rhPiQYkvEWZkYtBlwSQuUjko4APUngZ3eunyW rR1fFfaJEqKwuj5rc+5SyP0S9QPkkGHKCljbVsfxG9LPHnM= X-Google-Smtp-Source: ABdhPJx76Fd+zA8eQJdUUClcPMbpBwjWc8rSja0DLD9n49/+VN9mUg7sxvesvY3JHkEe+xf/hS6yUsIfE2+3fKtYVqE= X-Received: by 2002:a05:6902:1003:: with SMTP id w3mr22655597ybt.391.1640608275179; Mon, 27 Dec 2021 04:31:15 -0800 (PST) MIME-Version: 1.0 From: Tiberiu Chibici Date: Mon, 27 Dec 2021 14:30:39 +0200 Message-ID: Subject: Chew segmentation fault while building on Ubuntu/Debian To: binutils@sourceware.org X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2021 12:31:17 -0000 Hello, I've been trying to build a cross compiler the last few days, and I keep getting this build error: /bin/bash: line 1: 31514 Segmentation fault (core dumped) ./chew -f ../../../binutils-2.37/bfd/doc/doc.str < ../../../binutils-2.37/bfd/doc/../corefile.c > core.tmp /bin/bash: line 1: 31508 Segmentation fault (core dumped) ./chew -f ../../../binutils-2.37/bfd/doc/doc.str < ../../../binutils-2.37/bfd/doc/../archures.c > archures.tmp /bin/bash: line 1: 31510 Segmentation fault (core dumped) ./chew -f ../../../binutils-2.37/bfd/doc/doc.str < ../../../binutils-2.37/bfd/doc/../bfd.c > bfd.tmp /bin/bash: line 1: 31507 Segmentation fault (core dumped) ./chew -f ../../../binutils-2.37/bfd/doc/doc.str < ../../../binutils-2.37/bfd/doc/../archive.c > archive.tmp make[4]: *** [Makefile:998: core.stamp] Error 139 /bin/bash: line 1: 31504 Segmentation fault (core dumped) ./chew -f ../../../binutils-2.37/bfd/doc/doc.str < ../../../binutils-2.37/bfd/doc/../aoutx.h > aoutx.tmp /bin/bash: line 1: 31513 Segmentation fault (core dumped) ./chew -f ../../../binutils-2.37/bfd/doc/doc.str < ../../../binutils-2.37/bfd/doc/../coffcode.h > coffcode.tmp make[4]: *** Waiting for unfinished jobs.... /bin/bash: line 1: 31512 Segmentation fault (core dumped) ./chew -f ../../../binutils-2.37/bfd/doc/doc.str < ../../../binutils-2.37/bfd/doc/../cache.c > cache.tmp I started with a clean Ubuntu 20.04 machine using WSL2. I tried all the binutils versions from 2.34 to 2.37. I also tried this on Debian, and a clean Ubuntu 20.04 LTS VM (after updating all the packages). Using latest Fedora Workstation, I was able to build successfully, so the issue seems to be related to Debian and Ubuntu. These are the packages I installed right after setting up the machines (trying to follow this guide from the OSDEV wiki: https://wiki.osdev.org/GCC_Cross-Compiler#Installing_Dependencies ): sudo apt install build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo \ nasm mtools And here is the build script I'm using: https://github.com/chibicitiberiu/nanobyte_os/blob/master/build_scripts/toolchain.mk Is this something you've encountered before? Could anyone help me figure out what the problem is? Thank you very much, I hope this is the right channel for asking this type of stuff. -- Best regards, Chibici Tiberiu