Re: undefined reference to `__stack_chk_guard'
Marcus Meissner <[email protected]> Mon, 20 Apr 2015 13:35:02 +0200
| Newsgroups | gmane.linux.suse.ppc |
|---|---|
| Organization | SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) |
| Message-ID | <[email protected]> |
On Wed, Apr 15, 2015 at 03:42:17AM +0300, Dmitriy Perlow wrote: > Hello! > > I've been buiding my simple C app for all Factory arch's for some > time. Now I've maid fputc_unclocked→fread_unclocked code migrations. > So ppc64 target became failed with "undefined reference to > `__stack_chk_guard'" error message. I use cmake and clang to build > my app. > > Any tips please? > > https://build.opensuse.org/package/live_build_log/home:DarkSS/HuffmanArchiver/openSUSE_Factory_PowerPC/ppc64 > https://github.com/DAP-DarkneSS/HuffmanArchiver/commit/402e10574eee1e478583a44bf40c5f27ac6e9e54 > > PS Please CC my mail too, no answer from > [email protected], sorry. But it looks good currently in home:DarkSS/HuffmanArchiver ? This error could be due to mixing up static vs dynamic linking, or potentially due to -flto which needs to be passed to both compiler _and_ linker (LDFLAGS). Ciao, Marcsu -- To unsubscribe, e-mail: [email protected] To contact the owner, e-mail: [email protected]