bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/24389] New: can't link soft-float modules with double-float modu


From: address@hidden
Subject: [Bug ld/24389] New: can't link soft-float modules with double-float modules
Date: Tue, 26 Mar 2019 15:26:39 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24389

            Bug ID: 24389
           Summary: can't link soft-float modules with double-float
                    modules
           Product: binutils
           Version: 2.32
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: address@hidden
                CC: wilson at gcc dot gnu.org
  Target Milestone: ---
            Target: riscv*-*-*

The build of glib fails on riscv because it tries to link an "unflavored"
object into a normal binary:

<https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV/glib2/standard/riscv64>

[667/1055] ld -r -b binary gio/tests/test5.gresource -o
gio/tests/test_resources.o
[668/1055]
/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gio/glib-compile-resources
--target=gio/tests/test_resources.c
--sourcedir=/home/abuild/rpmbuild/BUILD/glib-2.60.0/gio/tests
--sourcedir=/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gio/tests
--generate-source --c-name _g_test1 ../gio/tests/test2.gresource.xml
[669/1055] objcopy --add-symbol _g_binary_test1_resource_data=.data:0
gio/tests/test_resources.o gio/tests/test_resources2.o
...
[673/1055] cc  -o gio/tests/async-close-output-stream
'gio/tests/bcb7ac7@@address@hidden/async-close-output-stream.c.o'
-Wl,--no-undefined -Wl,--as-needed -fmessage-length=0 -grecord-gcc-switches -O2
-Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g -Wl,--start-group
glib/libglib-2.0.so.0.6000.0 gmodule/libgmodule-2.0.so.0.6000.0
gobject/libgobject-2.0.so.0.6000.0 gio/libgio-2.0.so.0.6000.0 -Wl,--end-group
-pthread
'-Wl,-rpath,$ORIGIN/../../glib:$ORIGIN/../../gmodule:$ORIGIN/../../gobject:$ORIGIN/..'
-Wl,-rpath-link,/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/glib:/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gmodule:/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gobject:/home/abuild/rpmbuild/BUILD/gl[848/1055]
cc  -o gio/tests/resources gio/tests/test_resources2.o
'gio/tests/bcb7ac7@@address@hidden/meson-generated_.._test_resources.c.o'
'gio/tests/bcb7ac7@@address@hidden/meson-generated_.._test_resources2.c.o'
'gio/tests/bcb7ac7@@address@hidden/meson-generated_.._test_resources_binary.c.o'
'gio/tests/bcb7ac7@@address@hidden/meson-generated_.._digit_test_resources.c.o'
'gio/tests/bcb7ac7@@address@hidden/resources.c.o' -Wl,--no-undefined
-Wl,--as-needed -fmessage-length=0 -grecord-gcc-switches -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g -Wl,--start-group
glib/libglib-2.0.so.0.6000.0 gmodule/libgmodule-2.0.so.0.6000.0
gobject/libgobject-2.0.so.0.6000.0 gio/libgio-2.0.so.0.6000.0 -Wl,--end-group
-pthread
'-Wl,-rpath,$ORIGIN/../../glib:$ORIGIN/../../gmodule:$ORIGIN/../../gobject:$ORIGIN/..'
-Wl,-rpath-link,/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/glib:/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gmodule:/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gobject:/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gio
 
FAILED: gio/tests/resources 
cc  -o gio/tests/resources gio/tests/test_resources2.o
'gio/tests/bcb7ac7@@address@hidden/meson-generated_.._test_resources.c.o'
'gio/tests/bcb7ac7@@address@hidden/meson-generated_.._test_resources2.c.o'
'gio/tests/bcb7ac7@@address@hidden/meson-generated_.._test_resources_binary.c.o'
'gio/tests/bcb7ac7@@address@hidden/meson-generated_.._digit_test_resources.c.o'
'gio/tests/bcb7ac7@@address@hidden/resources.c.o' -Wl,--no-undefined
-Wl,--as-needed -fmessage-length=0 -grecord-gcc-switches -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g -Wl,--start-group
glib/libglib-2.0.so.0.6000.0 gmodule/libgmodule-2.0.so.0.6000.0
gobject/libgobject-2.0.so.0.6000.0 gio/libgio-2.0.so.0.6000.0 -Wl,--end-group
-pthread
'-Wl,-rpath,$ORIGIN/../../glib:$ORIGIN/../../gmodule:$ORIGIN/../../gobject:$ORIGIN/..'
-Wl,-rpath-link,/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/glib:/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gmodule:/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gobject:/home/abuild/rpmbuild/BUILD/glib-2.60.0/build/gio
 
/usr/lib64/gcc/riscv64-suse-linux/8/../../../../riscv64-suse-linux/bin/ld:
gio/tests/test_resources2.o: can't link soft-float modules with double-float
modules
/usr/lib64/gcc/riscv64-suse-linux/8/../../../../riscv64-suse-linux/bin/ld:
failed to merge target specific data of file gio/tests/test_resources2.o
collect2: error: ld returned 1 exit status

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]