Created attachment 8115 [details] Patch proposal Build both with -msse and -Werror causes build error: cc1: all warnings being treated as errors dl-runtime.c:1:0: error: SSE instruction set disabled, using 387 arithmetics [-Werror]
(In reply to Vyacheslav Barinov from comment #0) > Created attachment 8115 [details] > Patch proposal > > Build both with -msse and -Werror causes build error: > > cc1: all warnings being treated as errors > dl-runtime.c:1:0: error: SSE instruction set disabled, using 387 > arithmetics [-Werror] Adding -Wno-error is not the correct fix. You need to determine why this warning happens. It's valid to use -msse and -mno-sse together, they do not generate a warning. It seems like you're compiling with -msse for a target that doesn't support SSE and thus getting a warning. What are you configure options? What does your config.log say?
-msse -mno-sse works fine however Error happens when one used -mfpmath=sse in CFLAGS, Since we are explicitly disabling SSE we very well might disable SSE for fpmath as well. a patch like this works for me diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile index 19f5eca..827ea71 100644 --- a/sysdeps/x86/Makefile +++ b/sysdeps/x86/Makefile @@ -1,6 +1,6 @@ ifeq ($(subdir),elf) CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\ - -mno-sse -mno-mmx) + -mno-sse -mno-mmx -mfpmath=387) tests-special += $(objpfx)tst-ld-sse-use.out $(objpfx)tst-ld-sse-use.out: ../sysdeps/x86/tst-ld-sse-use.sh $(objpfx)ld.so
Hello, I'm very sorry, just found an e-mail under the mount of others. The environment is Tizen 3.0: https://build.tizen.org/package/show?package=glibc&project=devel%3Aarm_toolchain%3AMobile%3ATizen_Common I've imported patch from Khem Raj and it worked perfectly. Thank you for answers. Best Regards, Slava Barinov. On Thu, Feb 19, 2015 at 6:23 AM, raj.khem at gmail dot com <sourceware-bugzilla@sourceware.org> wrote: > https://sourceware.org/bugzilla/show_bug.cgi?id=17950 > > Khem Raj <raj.khem at gmail dot com> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |raj.khem at gmail dot com > > --- Comment #2 from Khem Raj <raj.khem at gmail dot com> --- > -msse -mno-sse works fine however > Error happens when one used -mfpmath=sse in CFLAGS, Since we are explicitly > disabling SSE we very well might disable SSE for fpmath as well. > > a patch like this works for me > > diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile > index 19f5eca..827ea71 100644 > --- a/sysdeps/x86/Makefile > +++ b/sysdeps/x86/Makefile > @@ -1,6 +1,6 @@ > ifeq ($(subdir),elf) > CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\ > - -mno-sse -mno-mmx) > + -mno-sse -mno-mmx -mfpmath=387) > > tests-special += $(objpfx)tst-ld-sse-use.out > $(objpfx)tst-ld-sse-use.out: ../sysdeps/x86/tst-ld-sse-use.sh $(objpfx)ld.so > > -- > You are receiving this mail because: > You reported the bug.
pushed Khem's patch into master now