Closed shivshankardayal closed 7 years ago
mine have always been copied to the install directories and authorized, so I've never faced that problem before?
also if you look inside "${prefix}/bin/usp_translator $1.usp;" usp_compile.sh expects just the filename, without the extension.
I see log of make install and see a problem:
/bin/bash ../../../../../../libtool --mode=install /usr/bin/install -c usp_translator '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/usp_translator /usr/local/bin/usp_translator
/usr/bin/install: cannot stat '.libs/usp_translator': No such file or directory
Makefile:432: recipe for target 'install-binPROGRAMS' failed
make[3]: *** [install-binPROGRAMS] Error 1
make[3]: Leaving directory '/home/shiv/Downloads/ULib/src/ulib/net/server/plugin/usp'
Makefile:618: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/shiv/Downloads/ULib/src/ulib/net/server/plugin/usp'
Makefile:826: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/shiv/Downloads/ULib/src/ulib/net/server/plugin'
Makefile:559: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
shiv@shiv:~/Downloads/ULib$
Why it would look for usp_translator
in .libs
. Seems a typo in some configure generation which propagates in makefiles.
It seems my toolchain is messed up. I have too new gcc. I will rollback and check this again.
i'm using GCC 7.2 and all the latest versions of all the build tools, and they all work fine (just fyi)
I cleaned up and rebuilt. While running make install I have following:
libtool: warning: relinking 'server_plugin_rpc.la'
libtool: install: (cd /home/shiv/Downloads/ULib/src/ulib/net/server/plugin; /bin/bash "/home/shiv/Downloads/ULib/libtool" --silent --tag CXX --mode=relink g++ -I/usr/local/include -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno-check-new -fno-enforce-eh-specs -Wno-deprecated -Wdelete-non-virtual-dtor -Wodr -Wterminate -Wlto-type-mismatch -Wsubobject-linkage -Wplacement-new -Wvirtual-inheritance -Wnamespaces -module -shared -export-dynamic -avoid-version -L/usr/local/lib -Wl,-O1 -Wl,--as-needed -Wl,-z,now,-O1,--hash-style=gnu,--sort-common -Wl,--as-needed -o server_plugin_rpc.la -rpath /usr/local/libexec mod_rpc.lo ../../../../../src/ulib/libulib.la -luuid -lexpat -lpcre -lssl -lcrypto -lz -Wl,--no-as-needed -lpthread -lnuma -lrt -ldl -lc )
lto1: fatal error: bytecode stream generated with LTO version 5.1 instead of the expected 4.1
compilation terminated.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
libtool: error: error: relink 'server_plugin_rpc.la' with the above command before installing it
Since I do not know what it is I will need to investigate.
BTW I am running GCC 6.3.0
First problem is that usp_compile.sh, usp_translator are not copied to INSTALL_PREFIX which is
/usr/local/
in my case. Second minor issue is that +x is not set forusp_compile.sh
.