public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use
@ 2013-03-12 9:52 mail@waldemar-brodkorb.de
2013-03-12 9:56 ` [Bug bootstrap/56601] " mail@waldemar-brodkorb.de
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: mail@waldemar-brodkorb.de @ 2013-03-12 9:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56601
Bug #: 56601
Summary: OpenBSD lto-plugin fails to use
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mail@waldemar-brodkorb.de
Hi,
I am using OpenBSD 5.2 amd64 and try to use OpenWrt to build a cross-compiler.
This works fine on FreeBSD/Darwin and Linux, but fails on OpenBSD with
following
error message:
arm-openwrt-linux-uclibcgnueabi-gcc: fatal error: -fuse-linker-plugin, but
liblto_plugin.so not found
compilation terminated.
Indeed a liblto_plugin.so is not build, instead there is liblto_plugin.so.0.0
gmake[5]: Entering directory
`/home/wbx/openwrt/build_dir/toolchain-arm_v6k_gcc-
4.7.2_uClibc-0.9.33.2_eabi/gcc-4.7.2-initial/lto-plugin'
gmake[6]: Entering directory
`/home/wbx/openwrt/build_dir/toolchain-arm_v6k_gcc-
4.7.2_uClibc-0.9.33.2_eabi/gcc-4.7.2-initial/lto-plugin'
test -z
"/home/wbx/openwrt/staging_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc-0.9.33
.2_eabi/initial/libexec/gcc/arm-openwrt-linux-uclibcgnueabi/4.7.2" ||
/usr/local
/bin/gmkdir -p
"/home/wbx/openwrt/staging_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc
-0.9.33.2_eabi/initial/libexec/gcc/arm-openwrt-linux-uclibcgnueabi/4.7.2"
/bin/sh ./libtool --tag=disable-static --mode=install /usr/bin/install -c
li
blto_plugin.la
'/home/wbx/openwrt/staging_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc
-0.9.33.2_eabi/initial/libexec/gcc/arm-openwrt-linux-uclibcgnueabi/4.7.2'
libtool: install: /usr/bin/install -c .libs/liblto_plugin.so.0.0
/home/wbx/openw
rt/staging_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc-0.9.33.2_eabi/initial/libexec/
gcc/arm-openwrt-linux-uclibcgnueabi/4.7.2/liblto_plugin.so.0.0
libtool: install: /usr/bin/install -c .libs/liblto_plugin.lai
/home/wbx/openwrt/
staging_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc-0.9.33.2_eabi/initial/libexec/gcc
/arm-openwrt-linux-uclibcgnueabi/4.7.2/liblto_plugin.la
libtool: install: warning: remember to run `libtool --finish
/home/wbx/openwrt/s
taging_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc-0.9.33.2_eabi/libexec/gcc/arm-open
wrt-linux-uclibcgnueabi/4.7.2'
gcc is configured:
(cd
/home/wbx/openwrt/build_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc-0.9.33.2_eabi/gcc-4.7.2-minimal
&& rm -f config.cache; SHELL="/usr/local/bin/bash"
/home/wbx/openwrt/build_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc-0.9.33.2_eabi/gcc-4.7.2/configure
--prefix=/home/wbx/openwrt/staging_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc-0.9.33.2_eabi
--build=amd64-unknown-openbsd5.2 --host=amd64-unknown-openbsd5.2
--target=arm-openwrt-linux-uclibcgnueabi --with-gnu-ld --enable-target-optspace
--disable-libgomp --disable-libmudflap --disable-multilib --disable-nls
--with-host-libstdcxx=-lstdc++
--with-gmp=/home/wbx/openwrt/staging_dir/host
--with-mpfr=/home/wbx/openwrt/staging_dir/host --disable-decimal-float
--disable-libssp --disable-__cxa_atexit --with-arch=armv6k --with-newlib
--without-headers --enable-languages=c --disable-libssp --disable-shared
--disable-threads );
Complete build log is attached.
Any idea what goes wrong here?
Creating a symlink doesn't help.
thanks in advance for any hint.
Waldemar
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/56601] OpenBSD lto-plugin fails to use
2013-03-12 9:52 [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use mail@waldemar-brodkorb.de
@ 2013-03-12 9:56 ` mail@waldemar-brodkorb.de
2013-03-12 10:02 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mail@waldemar-brodkorb.de @ 2013-03-12 9:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56601
--- Comment #1 from mail@waldemar-brodkorb.de 2013-03-12 09:55:47 UTC ---
Build log is here
http://www.waldemar-brodkorb.de/log
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/56601] OpenBSD lto-plugin fails to use
2013-03-12 9:52 [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use mail@waldemar-brodkorb.de
2013-03-12 9:56 ` [Bug bootstrap/56601] " mail@waldemar-brodkorb.de
@ 2013-03-12 10:02 ` rguenth at gcc dot gnu.org
2013-03-12 10:20 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-03-12 10:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56601
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2013-03-12
Ever Confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-12 10:01:43 UTC ---
GCC doesn't find LTOPLUGINSONAME in the set of exec prefix paths. That's
created from the config.host entry for host_lto_plugin_soname which is
liblto_plugin.so by default.
Add -v to the command to see which paths are searched for executables
(and the plugin). Trace the driver with strace to see which files
it tries to open (yes, you do need the symlink). Also make sure the
plugin is readable/executable by you.
Note that you need the plugin for the _host_, not sure if we messed up
things for cross-compilers (I never tried LTO with a cross ...)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/56601] OpenBSD lto-plugin fails to use
2013-03-12 9:52 [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use mail@waldemar-brodkorb.de
2013-03-12 9:56 ` [Bug bootstrap/56601] " mail@waldemar-brodkorb.de
2013-03-12 10:02 ` rguenth at gcc dot gnu.org
@ 2013-03-12 10:20 ` rguenth at gcc dot gnu.org
2013-03-12 10:25 ` mail@waldemar-brodkorb.de
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-03-12 10:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56601
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-12 10:19:43 UTC ---
Seems to work for me with a quick test targeting arm-linux-gnueabi
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/56601] OpenBSD lto-plugin fails to use
2013-03-12 9:52 [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use mail@waldemar-brodkorb.de
` (2 preceding siblings ...)
2013-03-12 10:20 ` rguenth at gcc dot gnu.org
@ 2013-03-12 10:25 ` mail@waldemar-brodkorb.de
2014-01-16 6:59 ` mail@waldemar-brodkorb.de
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mail@waldemar-brodkorb.de @ 2013-03-12 10:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56601
--- Comment #4 from mail@waldemar-brodkorb.de 2013-03-12 10:25:23 UTC ---
Hi,
thanks for the fast response.
I ktrace't the driver and the log is here:
http://www.waldemar-brodkorb.de/kdump
30611 arm-openwrt-linu NAMI
"/home/wbx/openwrt/staging_dir/toolchain-arm_v6k_gcc-4.7.2_uClibc-0.9.33.2_eabi/libexec/gcc/arm-openwrt-linux-uclibcgnueabi/4.7.2/liblto_plugin.so"
It searches not in the source directory. That was my mistake.
Creating the symlinks in staging_dir does help.
So where does it creates the wrong filename?
thanks
Waldemar
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/56601] OpenBSD lto-plugin fails to use
2013-03-12 9:52 [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use mail@waldemar-brodkorb.de
` (3 preceding siblings ...)
2013-03-12 10:25 ` mail@waldemar-brodkorb.de
@ 2014-01-16 6:59 ` mail@waldemar-brodkorb.de
2022-01-09 9:25 ` [Bug target/56601] " pinskia at gcc dot gnu.org
2022-01-09 9:31 ` [Bug lto/56601] " pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: mail@waldemar-brodkorb.de @ 2014-01-16 6:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56601
--- Comment #5 from mail@waldemar-brodkorb.de ---
Hi,
following change fixed it for me:
diff -Nur gcc-4.7.3.orig/gcc/config.host gcc-4.7.3/gcc/config.host
--- gcc-4.7.3.orig/gcc/config.host Tue Oct 18 08:14:14 2011
+++ gcc-4.7.3/gcc/config.host Tue Jan 7 04:33:29 2014
@@ -292,6 +292,9 @@
out_host_hook_obj=host-solaris.o
host_xmake_file="${host_xmake_file} x-solaris"
;;
+ *-*-openbsd*)
+ host_lto_plugin_soname=liblto_plugin.so.0.0
+ ;;
*-*-linux*)
out_host_hook_obj=host-linux.o
host_xmake_file="${host_xmake_file} x-linux"
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/56601] OpenBSD lto-plugin fails to use
2013-03-12 9:52 [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use mail@waldemar-brodkorb.de
` (4 preceding siblings ...)
2014-01-16 6:59 ` mail@waldemar-brodkorb.de
@ 2022-01-09 9:25 ` pinskia at gcc dot gnu.org
2022-01-09 9:31 ` [Bug lto/56601] " pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-09 9:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56601
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to mail from comment #5)
> Hi,
>
> following change fixed it for me:
That is obvious not the correct fix. I suspect this is a libtool issue ....
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug lto/56601] OpenBSD lto-plugin fails to use
2013-03-12 9:52 [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use mail@waldemar-brodkorb.de
` (5 preceding siblings ...)
2022-01-09 9:25 ` [Bug target/56601] " pinskia at gcc dot gnu.org
@ 2022-01-09 9:31 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-09 9:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56601
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |lto
Status|WAITING |UNCONFIRMED
CC| |marxin at gcc dot gnu.org
Ever confirmed|1 |0
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-01-09 9:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-12 9:52 [Bug bootstrap/56601] New: OpenBSD lto-plugin fails to use mail@waldemar-brodkorb.de
2013-03-12 9:56 ` [Bug bootstrap/56601] " mail@waldemar-brodkorb.de
2013-03-12 10:02 ` rguenth at gcc dot gnu.org
2013-03-12 10:20 ` rguenth at gcc dot gnu.org
2013-03-12 10:25 ` mail@waldemar-brodkorb.de
2014-01-16 6:59 ` mail@waldemar-brodkorb.de
2022-01-09 9:25 ` [Bug target/56601] " pinskia at gcc dot gnu.org
2022-01-09 9:31 ` [Bug lto/56601] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).