gentoo / musl

[MIRROR] musl development overlay
https://gitweb.gentoo.org/proj/musl.git
99 stars 59 forks source link

sys-boot/syslinux: fix patch for musl #457

Closed 0181532686cf4a31163be0bf3e6bb6732bf closed 2 years ago

0181532686cf4a31163be0bf3e6bb6732bf commented 2 years ago

This allows proper build on musl

0181532686cf4a31163be0bf3e6bb6732bf commented 2 years ago

cc: @SJLC @blueness @thesamesam

thesamesam commented 2 years ago

Hm, a similar (larger) patch didn't seem to be sufficient here.

0181532686cf4a31163be0bf3e6bb6732bf commented 2 years ago

I got it compiling with default musl stage3:

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-gentoo-linux-musl/11.2.0/lto-wrapper
Target: x86_64-gentoo-linux-musl
Configured with: /var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/configure --host=x86_64-gentoo-linux-musl --build=x86_64-gentoo-linux-musl --prefix=/usr --bindir=/usr/x86_64-gentoo-linux-musl/gcc-bin/11.2.0 --includedir=/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.0/include --datadir=/usr/share/gcc-data/x86_64-gentoo-linux-musl/11.2.0 --mandir=/usr/share/gcc-data/x86_64-gentoo-linux-musl/11.2.0/man --infodir=/usr/share/gcc-data/x86_64-gentoo-linux-musl/11.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.0/include/g++-v11 --with-python-dir=/share/gcc-data/x86_64-gentoo-linux-musl/11.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 11.2.0 p1' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-multilib --with-multilib-list=m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --disable-libsanitizer --enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (Gentoo 11.2.0 p1) 
0181532686cf4a31163be0bf3e6bb6732bf commented 2 years ago

I believe it's some typo in proposed patch from the ticket you've linked, since build error is the same