Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 27 Jan 2018 08:51:46 -0800 (PST)
From: Po-yi Wang <player@....bc.ca>
To: musl@...ts.openwall.com
Subject: Re: problem compiling bash-3.2.57 bash-4.4.12, seg fault



On Sat, 27 Jan 2018, Rich Felker wrote:

> On Sat, Jan 27, 2018 at 08:19:55AM -0800, Po-yi Wang wrote:
>> hi
>>
>> i am attempting to statically compile bash-3.2.57 or bash-4.4.12, with
>>  gcc-4.0.4 binutils-2.24 and musl-1.1.18 musl-gcc wrapper.
>> (seg fault occurred on arm target)(musl compiled with -g3)
>
> What configure command line did you use? By default bash uses (or at
> least used to use) its own broken malloc replacement that's
> incompatible with musl (and inherently UB). You need to disable that.
> Look at the build recipe from any distro using musl, like:

WGET_UNPACK bash-3.2.57.tar.xz
LDFLAGS="-static"  CC=musl-gcc ./configure --prefix=/usr/musl 
--enable-static-link --disable-nls --without-bash-malloc
LDFLAGS="-static"  CC=musl-gcc make


>
> https://git.alpinelinux.org/cgit/aports/tree/main/bash/APKBUILD?id=v3.7.0#n72
>
> Rich
>

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.