[opensuse-buildservice] Factory i586 strange behaviors (does not strip debuginfo package, and pthread ld link)
Hi, please seems through these packages. https://build.opensuse.org/package/live_build_log?arch=i586&package=kimtoy&project=home%3AMargueriteSu%3Abranches%3AM17N&repository=openSUSE_Factory it says: /usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line /lib/libpthread.so.0: could not read symbols: Invalid operation and this: https://build.opensuse.org/package/live_build_log?arch=i586&package=recorditnow&project=KDE%3ADistro%3AFactory&repository=openSUSE_Factory it gives many E: suse-filelist-forbidden-debuginfo. but their x86_64 branches works perfectly. so it's possibly not spec file or source code misbehavior ...since ld is a common action and automatically strip debuginfo is OBS's feature. any clues? thanks marguerite -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, May 04, 2012 at 07:43:51PM +0800, Marguerite Su wrote:
Hi, please seems through these packages.
it says:
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line /lib/libpthread.so.0: could not read symbols: Invalid operation
It is missing -lpthread in the final linkline. Or being linked with gcc -pthread
and this:
it gives many E: suse-filelist-forbidden-debuginfo.
but their x86_64 branches works perfectly. so it's possibly not spec file or source code misbehavior ...since ld is a common action and automatically strip debuginfo is OBS's feature.
Do not pack %{_libdir}/*, as it includes /usr/lib/debug/. Pack %{_libdir}/*.so* instead Ciao, Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, May 4, 2012 at 8:07 PM, Marcus Meissner <meissner@suse.de> wrote:
On Fri, May 04, 2012 at 07:43:51PM +0800, Marguerite Su wrote:
Hi, please seems through these packages.
it says:
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line /lib/libpthread.so.0: could not read symbols: Invalid operation
It is missing -lpthread in the final linkline.
Or being linked with gcc -pthread
I add LDFLAGS="-lpthread" and it still fails, so I report bug upstream. and they're working on a patch ( luckily it's my friends' work ).
and this:
it gives many E: suse-filelist-forbidden-debuginfo.
but their x86_64 branches works perfectly. so it's possibly not spec file or source code misbehavior ...since ld is a common action and automatically strip debuginfo is OBS's feature.
Do not pack %{_libdir}/*, as it includes /usr/lib/debug/.
Pack %{_libdir}/*.so* instead
Ciao, Marcus
this is just the reason. I'm too careless about it. Thanks Marguerite -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
El 04/05/12 18:40, Marguerite Su escribió:
On Fri, May 4, 2012 at 8:07 PM, Marcus Meissner<meissner@suse.de> wrote:
On Fri, May 04, 2012 at 07:43:51PM +0800, Marguerite Su wrote:
Hi, please seems through these packages.
it says:
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line /lib/libpthread.so.0: could not read symbols: Invalid operation
It is missing -lpthread in the final linkline.
Or being linked with gcc -pthread
I add LDFLAGS="-lpthread" and it still fails, so I report bug upstream.
Sure it will, compile AND link with -pthread instead, it is likely that including "-pthread" in CFLAGS and/or CXXFLAGS will do the trick. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Sat, May 5, 2012 at 8:44 AM, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
El 04/05/12 18:40, Marguerite Su escribió:
On Fri, May 4, 2012 at 8:07 PM, Marcus Meissner<meissner@suse.de> wrote:
On Fri, May 04, 2012 at 07:43:51PM +0800, Marguerite Su wrote:
Hi, please seems through these packages.
it says:
/usr/lib/gcc/i586-suse-linux/4.7/../../../../i586-suse-linux/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line /lib/libpthread.so.0: could not read symbols: Invalid operation
It is missing -lpthread in the final linkline.
Or being linked with gcc -pthread
I add LDFLAGS="-lpthread" and it still fails, so I report bug upstream.
Sure it will, compile AND link with -pthread instead, it is likely that including "-pthread" in CFLAGS and/or CXXFLAGS will do the trick.
Thanks Cristian, it works awesome (I use your fix) anyway it's an upstream bug...she must forgot something... marguerite
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Cristian Rodríguez
-
Marcus Meissner
-
Marguerite Su