Created attachment 848293 [details] build.log [...] FAILED: src/libgraphite2.so.3.2.1 : && /usr/bin/powerpc-gentoo-linux-musl-gcc -fPIC -Os -mcpu=7450 -mtune=7450 -pipe -Wl,-O1 -Wl,--as-needed -nodefaultlibs -lssp_nonshared -shared -Wl,-soname,libgraphite2.so.3 -o src/libgraphite2.so.3.2.1 src/CMakeFiles/graphite2.dir/direct_machine.cpp.o src/CMakeFiles/graphite2.dir/gr_char_info.cpp.o src/CMakeFiles/graphite2.dir/gr_features.cpp.o src/CMakeFiles/graphite2.dir/gr_face.cpp.o src/CMakeFiles/graphite2.dir/gr_font.cpp.o src/CMakeFiles/graphite2.dir/gr_logging.cpp.o src/CMakeFiles/graphite2.dir/gr_segment.cpp.o src/CMakeFiles/graphite2.dir/gr_slot.cpp.o src/CMakeFiles/graphite2.dir/CmapCache.cpp.o src/CMakeFiles/graphite2.dir/Code.cpp.o src/CMakeFiles/graphite2.dir/Collider.cpp.o src/CMakeFiles/graphite2.dir/Decompressor.cpp.o src/CMakeFiles/graphite2.dir/Face.cpp.o src/CMakeFiles/graphite2.dir/FeatureMap.cpp.o src/CMakeFiles/graphite2.dir/Font.cpp.o src/CMakeFiles/graphite2.dir/GlyphFace.cpp.o src/CMakeFiles/graphite2.dir/GlyphCache.cpp.o src/CMakeFiles/graphite2.dir/Intervals.cpp.o src/CMakeFiles/graphite2.dir/Justifier.cpp.o src/CMakeFiles/graphite2.dir/NameTable.cpp.o src/CMakeFiles/graphite2.dir/Pass.cpp.o src/CMakeFiles/graphite2.dir/Position.cpp.o src/CMakeFiles/graphite2.dir/Segment.cpp.o src/CMakeFiles/graphite2.dir/Silf.cpp.o src/CMakeFiles/graphite2.dir/Slot.cpp.o src/CMakeFiles/graphite2.dir/Sparse.cpp.o src/CMakeFiles/graphite2.dir/TtfUtil.cpp.o src/CMakeFiles/graphite2.dir/UtfCodec.cpp.o src/CMakeFiles/graphite2.dir/FileFace.cpp.o -lc -lgcc && : /usr/lib/gcc/powerpc-gentoo-linux-musl/12/../../../../powerpc-gentoo-linux-musl/bin/ld: src/CMakeFiles/graphite2.dir/direct_machine.cpp.o: in function `(anonymous namespace)::direct_run(bool, void* const*, unsigned char const*, int*, graphite2::Slot**&, unsigned char, graphite2::vm::Machine::status_t&, graphite2::SlotMap*)': direct_machine.cpp:(.text+0x110): undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/powerpc-gentoo-linux-musl/12/../../../../powerpc-gentoo-linux-musl/bin/ld: src/CMakeFiles/graphite2.dir/direct_machine.cpp.o: in function `graphite2::vm::Machine::getOpcodeTable()': direct_machine.cpp:(.text+0x16bc): undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/powerpc-gentoo-linux-musl/12/../../../../powerpc-gentoo-linux-musl/bin/ld: src/CMakeFiles/graphite2.dir/gr_face.cpp.o: in function `gr_make_face_with_ops': gr_face.cpp:(.text+0x114): undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/powerpc-gentoo-linux-musl/12/../../../../powerpc-gentoo-linux-musl/bin/ld: src/CMakeFiles/graphite2.dir/gr_face.cpp.o: in function `gr_make_face': gr_face.cpp:(.text+0x1cc): undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/powerpc-gentoo-linux-musl/12/../../../../powerpc-gentoo-linux-musl/bin/ld: src/CMakeFiles/graphite2.dir/gr_face.cpp.o: in function `gr_make_face_with_seg_cache': gr_face.cpp:(.text+0x27c): undefined reference to `__stack_chk_fail_local' /usr/lib/gcc/powerpc-gentoo-linux-musl/12/../../../../powerpc-gentoo-linux-musl/bin/ld: src/CMakeFiles/graphite2.dir/gr_font.cpp.o:gr_font.cpp:(.text+0x160): more undefined references to `__stack_chk_fail_local' follow collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. * ERROR: media-gfx/graphite2-1.3.14_p20210810-r2::gentoo failed (compile phase):
Created attachment 848295 [details] emerge --info
Not again! :(
Created attachment 848629 [details, diff] graphite2-1.35-fix-gcc-linking.patch These 2 patches are still needed for building graphite2 on musl ppc: graphite2-1.35-fix-gcc-linking.patch graphite2-1.3.14-fix-nodefaultlibs.patch despite having been thrown out with: https://gitweb.gentoo.org/repo/gentoo.git/commit/media-gfx/graphite2?id=ac733551256da143fbfd66d1f2c70c5513d50292 I adapted them so they apply on graphite2-1.3.14_p20210810-r2.
Created attachment 848631 [details, diff] graphite2-1.3.14-fix-nodefaultlibs.patch
(In reply to ernsteiswuerfel from comment #4) > Created attachment 848631 [details, diff] [details, diff] > graphite2-1.3.14-fix-nodefaultlibs.patch wrong attachment for this one? (also thank you!)
Created attachment 848633 [details, diff] graphite2-1.35-fix-gcc-linking.patch
Created attachment 848635 [details, diff] graphite2-1.3.14-fix-nodefaultlibs.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2802d2b9bdc8e101d3ae64be74f2ab695d3bf967 commit 2802d2b9bdc8e101d3ae64be74f2ab695d3bf967 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-03 19:48:44 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-03 19:50:33 +0000 media-gfx/graphite2: include musl patches again Closes: https://bugs.gentoo.org/890555 Thanks-to: ernsteiswuerfel <erhard_f@mailbox.org> Signed-off-by: Sam James <sam@gentoo.org> .../files/graphite2-1.3.14-fix-nodefaultlibs.patch | 26 +++++ .../files/graphite2-1.3.5-fix-gcc-linking.patch | 17 +++ .../graphite2/graphite2-1.3.14_p20210810-r3.ebuild | 125 +++++++++++++++++++++ 3 files changed, 168 insertions(+)