Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890555 - media-gfx/graphite2-1.3.14_p20210810-r2 - direct_machine.cpp:(.text+0x110): undefined reference to `__stack_chk_fail_local'
Summary: media-gfx/graphite2-1.3.14_p20210810-r2 - direct_machine.cpp:(.text+0x110): u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2023-01-11 23:37 UTC by ernsteiswuerfel
Modified: 2023-02-03 19:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (graphite2-1.3.14_p20210810-r2:20230111-232852.log,37.21 KB, text/plain)
2023-01-11 23:37 UTC, ernsteiswuerfel
Details
emerge --info (file_890555.txt,6.84 KB, text/plain)
2023-01-11 23:37 UTC, ernsteiswuerfel
Details
graphite2-1.35-fix-gcc-linking.patch (graphite2-1.35-fix-gcc-linking.patch,652 bytes, patch)
2023-01-15 22:01 UTC, ernsteiswuerfel
Details | Diff
graphite2-1.3.14-fix-nodefaultlibs.patch (graphite2-1.3.14_p20210810-r2:20230104-112610.log,37.21 KB, patch)
2023-01-15 22:01 UTC, ernsteiswuerfel
Details | Diff
graphite2-1.35-fix-gcc-linking.patch (graphite2-1.35-fix-gcc-linking.patch,651 bytes, patch)
2023-01-15 22:10 UTC, ernsteiswuerfel
Details | Diff
graphite2-1.3.14-fix-nodefaultlibs.patch (graphite2-1.3.14-fix-nodefaultlibs.patch,1.14 KB, patch)
2023-01-15 22:11 UTC, ernsteiswuerfel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-01-11 23:37:07 UTC
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):
Comment 1 ernsteiswuerfel archtester 2023-01-11 23:37:40 UTC
Created attachment 848295 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-11 23:42:44 UTC
Not again! :(
Comment 3 ernsteiswuerfel archtester 2023-01-15 22:01:20 UTC
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.
Comment 4 ernsteiswuerfel archtester 2023-01-15 22:01:54 UTC
Created attachment 848631 [details, diff]
graphite2-1.3.14-fix-nodefaultlibs.patch
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-15 22:03:10 UTC
(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!)
Comment 6 ernsteiswuerfel archtester 2023-01-15 22:10:48 UTC
Created attachment 848633 [details, diff]
graphite2-1.35-fix-gcc-linking.patch
Comment 7 ernsteiswuerfel archtester 2023-01-15 22:11:09 UTC
Created attachment 848635 [details, diff]
graphite2-1.3.14-fix-nodefaultlibs.patch
Comment 8 Larry the Git Cow gentoo-dev 2023-02-03 19:52:02 UTC
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(+)