Re: [gentoo-user] cannot emerge dev-qt/qtcore, undefined reference to `__stack_chk_fail'

2015-02-01 Thread Justin Findlay
On 01/13/2015 06:51 PM, Mike Gilbert wrote:
 On Mon, Jan 12, 2015 at 12:39 AM, Justin Findlay jfind...@gmail.com wrote:
 I am having a problem emerging dev-qt/qtcore that I have been unable to
 solve myself yet.  The system is amd64 and I have ABI_X86='32 64' so
 that pipelight will work.  I think the error is coming from somewhere
 within glibc's multilib compatability.
 
 You should file a bug. ^_^

Here's the bug in question (I didn't file it, though) in the case that
someone else finds this thread first:

https://bugs.gentoo.org/show_bug.cgi?id=503500

There are some linker flag suggestions there that I'll try.  If I have
success I'll update here what I've done.


Justin



Re: [gentoo-user] cannot emerge dev-qt/qtcore, undefined reference to `__stack_chk_fail'

2015-02-01 Thread Justin Findlay
On 02/01/2015 01:44 PM, Justin Findlay wrote:
 On 01/13/2015 06:51 PM, Mike Gilbert wrote:
 On Mon, Jan 12, 2015 at 12:39 AM, Justin Findlay jfind...@gmail.com wrote:
 I am having a problem emerging dev-qt/qtcore that I have been unable to
 solve myself yet.  The system is amd64 and I have ABI_X86='32 64' so
 that pipelight will work.  I think the error is coming from somewhere
 within glibc's multilib compatability.

 You should file a bug. ^_^
 
 Here's the bug in question (I didn't file it, though) in the case that
 someone else finds this thread first:
 
 https://bugs.gentoo.org/show_bug.cgi?id=503500
 
 There are some linker flag suggestions there that I'll try.  If I have
 success I'll update here what I've done.

This worked for me:

LDFLAGS=-Wl,-O1 -Wl,--no-as-needed emerge -v1 qtcore


Justin



Re: [gentoo-user] cannot emerge dev-qt/qtcore, undefined reference to `__stack_chk_fail'

2015-01-14 Thread Justin Findlay
On 01/13/2015 06:51 PM, Mike Gilbert wrote:
 On Mon, Jan 12, 2015 at 12:39 AM, Justin Findlay jfind...@gmail.com wrote:
 I am having a problem emerging dev-qt/qtcore that I have been unable to
 solve myself yet.  The system is amd64 and I have ABI_X86='32 64' so
 that pipelight will work.  I think the error is coming from somewhere
 within glibc's multilib compatability.
 
 You should file a bug. ^_^

Thank you very much for your help and investigation walt and Mike.  I
know about x32, but am dubious about the aims and benefits of it.  I was
going to file a bug, but doing triage for an open source project with a
large community, I wanted to ask the list first to help me decide if
this a real bug or whether I have missed something essential.


Justin



Re: [gentoo-user] cannot emerge dev-qt/qtcore, undefined reference to `__stack_chk_fail'

2015-01-13 Thread Mike Gilbert
On Mon, Jan 12, 2015 at 12:39 AM, Justin Findlay jfind...@gmail.com wrote:
 I am having a problem emerging dev-qt/qtcore that I have been unable to
 solve myself yet.  The system is amd64 and I have ABI_X86='32 64' so
 that pipelight will work.  I think the error is coming from somewhere
 within glibc's multilib compatability.

You should file a bug. ^_^



[gentoo-user] cannot emerge dev-qt/qtcore, undefined reference to `__stack_chk_fail'

2015-01-11 Thread Justin Findlay
I am having a problem emerging dev-qt/qtcore that I have been unable to
solve myself yet.  The system is amd64 and I have ABI_X86='32 64' so
that pipelight will work.  I think the error is coming from somewhere
within glibc's multilib compatability.

# ebuild $(equery which qtcore) merge



d Existing ${T}/environment for 'qtcore-4.8.6-r1' will be sourced. Run
 'clean' to start with a fresh environment.
 Checking qt-everywhere-opensource-src-4.8.6.tar.gz's mtime...
 WORKDIR is up-to-date, keeping...
 * checking ebuild checksums ;-) ...


   [ ok ]
 * checking auxfile checksums ;-) ...


   [ ok ]
 * checking miscfile checksums ;-) ...


   [ ok ]
 It appears that 'pretend' has already executed for
'qtcore-4.8.6-r1'; skipping.
 Remove '/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/.pretended' to force
pretend.
 It appears that 'setup' has already executed for 'qtcore-4.8.6-r1';
skipping.
 Remove '/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/.setuped' to force
setup.
 It appears that 'unpack' has already executed for 'qtcore-4.8.6-r1';
skipping.
 Remove '/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/.unpacked' to force
unpack.
 It appears that 'prepare' has already executed for
'qtcore-4.8.6-r1'; skipping.
 Remove '/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/.prepared' to force
prepare.
 It appears that 'configure' has already executed for
'qtcore-4.8.6-r1'; skipping.
 Remove '/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/.configured' to
force configure.
 Compiling source in
/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6
...
 * abi_x86_32.x86: running multilib-minimal_abi_src_compile
 * Running emake in src/tools/bootstrap
make -j3 -l4
make: Nothing to be done for 'first'.
 * Running emake in src/tools/moc
make -j3 -l4
make: Nothing to be done for 'first'.
 * Running emake in src/tools/rcc
make -j3 -l4
make: Nothing to be done for 'first'.
 * Running emake in src/tools/uic
make -j3 -l4
make: Nothing to be done for 'first'.
 * Running emake in src/corelib
make -j3 -l4
make: Nothing to be done for 'first'.
 * Running emake in src/network
make -j3 -l4
make: Nothing to be done for 'first'.
 * Running emake in src/xml
make -j3 -l4
rm -f libQtXml.so.4.8.6 libQtXml.so libQtXml.so.4 libQtXml.so.4.8
x86_64-pc-linux-gnu-g++ -m32 -Wl,-O1 -Wl,--as-needed
-Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib
-Wl,--no-undefined -shared -Wl,-Bsymbolic-functions
-Wl,-soname,libQtXml.so.4 -o libQtXml.so.4.8.6
.obj/release-shared/qdom.o .obj/release-shared/qxml.o
-L/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib
-L/usr/lib32/qt4 -lQtCore
-L/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib
-lpthread
/usr/lib32/libc_nonshared.a(stack_chk_fail_local.oS): In function
`__stack_chk_fail_local':
stack_chk_fail_local.c:(.text+0x20): undefined reference to
`__stack_chk_fail'
collect2: error: ld returned 1 exit status
Makefile:122: recipe for target '../../lib/libQtXml.so.4.8.6' failed
make: *** [../../lib/libQtXml.so.4.8.6] Error 1
 * ERROR: dev-qt/qtcore-4.8.6-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info
'=dev-qt/qtcore-4.8.6-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv
'=dev-qt/qtcore-4.8.6-r1::gentoo'`.
 * The complete build log is located at
'/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/temp/environment'.
 * Working directory:
'/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/src/xml'
 * S:
'/var/tmp/portage/dev-qt/qtcore-4.8.6-r1/work/qt-everywhere-opensource-src-4.8.6'


Here's more information on the problem:
https://gist.github.com/jfindlay/3bb0a4c8a0a6d1eafcd5, thanks.


Justin