undefined reference to `__stack_chk_guard'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

undefined reference to `__stack_chk_guard'

Dmitriy Perlow
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  
[hidden email], sorry.

--
Best regards,
Dmitriy DA(P).DarkneSS Perlow @ Linux x64
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: undefined reference to `__stack_chk_guard'

Dmitriy Perlow
Dmitriy Perlow <[hidden email]>  Wed, 15 Apr 2015 03:42:17 +0300:

> 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

Thanks to k0da: https://bugzilla.opensuse.org/show_bug.cgi?id=927268

--
Best regards,
Dmitriy DA(P).DarkneSS Perlow @ Linux x64
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: undefined reference to `__stack_chk_guard'

Marcus Meissner
In reply to this post by Dmitriy Perlow
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
> [hidden email], 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: [hidden email]
To contact the owner, e-mail: [hidden email]

Loading...