Summary: | dev-libs/apr-1.4.5 fails with "libtool: unable to infer tagged configuration libtool: compile: specify a tag with `--tag'" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Justin Lecher (RETIRED) <jlec> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Adrian.Bassett, bertrand, jeremy.randolph, junghans, vapier |
Priority: | Normal | Keywords: | NeedPatch |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=385775 https://bugs.gentoo.org/show_bug.cgi?id=204485 https://bugs.gentoo.org/show_bug.cgi?id=81260 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
apr-1.4.4-BJA-cross.diff apr-1.4.4.ebuild diff |
apr has and odd build system - does rebuilding libtool help ? no I am sorry. Created attachment 288893 [details, diff]
apr-1.4.4-BJA-cross.diff
Here is a fix. The main goal is to use ${ROOT} libtool.
(In reply to comment #3) > Created attachment 288893 [details, diff] > apr-1.4.4-BJA-cross.diff > > Here is a fix. The main goal is to use ${ROOT} libtool. This is for 1.4.4 but should apply for 1.4.5, also resolv cross compilation of apr. Created attachment 288897 [details, diff]
apr-1.4.4.ebuild diff
Here is a proper fix imho
(In reply to comment #5) apr_rules.mk and apr-1-config are installed and are used by some other packages. ${ROOT} variable shouldn't be used in src_*() phases. (In reply to comment #6) > (In reply to comment #5) > > apr_rules.mk and apr-1-config are installed and are used by some other > packages. > ${ROOT} variable shouldn't be used in src_*() phases. My libtool knowledge are really limited, you may have a better solution I have this same problem, but is there a patch for 1.4.5? I have the same problem with apr 1.4.5 & 1.4.6 Thread: http://forums.gentoo.org/viewtopic-t-925850-highlight-.html Reemerge libtool fix this problem Comment on attachment 288897 [details, diff]
apr-1.4.4.ebuild diff
the original reporter here is not cross-compiling. ignoring that, this patch is wrong -- you should never execute tools from $ROOT in src_*.
libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [passwd/apr_getpass.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [strings/apr_cpystrn.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [strings/apr_fnmatch.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5' make: *** [all-recursive] Error 1 * ERROR: dev-libs/apr-1.4.5 failed (compile phase): * emake failed I can confirm that remerging libtool fixes this bug: ------------------------------ >>> Emerging (1 of 39) dev-libs/apr-1.4.5 >>> Installing (1 of 39) dev-libs/apr-1.4.5 ------------------------------ This confirms that the compilation went fine. :) Here is what I did: emerge --unmerge libtool # Confirm all questions, as you want to remerge it emerge --deep libtool This already worked here. Thank you to the poster of comment #10 for this "fix". I've got this on 1.5.0. Recompiling libtool didn't help. It compiles fine if i just extract the tarball and hit ./configure && make. should be all set now in the tree; thanks for the report! Commit message: Generate & use local libtool http://sources.gentoo.org/dev-libs/apr/apr-1.5.0-r1.ebuild?rev=1.1 http://sources.gentoo.org/dev-libs/apr/files/apr-1.5.0-libtool.patch?rev=1.1 (In reply to SpanKY from comment #15) > should be all set now in the tree; thanks for the report! > > Commit message: Generate & use local libtool > http://sources.gentoo.org/dev-libs/apr/apr-1.5.0-r1.ebuild?rev=1.1 > http://sources.gentoo.org/dev-libs/apr/files/apr-1.5.0-libtool.patch?rev=1.1 Just a thought: if it now generates libtool script on its own, perhaps that hack from src_install should be replace with proper '$(use_enable static-libs static)' in src_configure ? Also, there's a decent probability, that CONFIG_SHELL workaround will no longer be necessary. should be all set now in the tree; thanks for the report! Commit message: Drop old static-libs hacks now that we use local libtool http://sources.gentoo.org/dev-libs/apr/apr-1.5.0-r1.ebuild?r1=1.3&r2=1.4 |
Created attachment 279331 [details] build.log /bin/bash /usr/bin/libtool --silent --mode=compile gcc -pthread -O2 -pipe -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wdisabled-optimization -Wimplicit-function-declaration -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I./include -I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix -I./include/arch/unix -I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include/arch/unix -I/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5/include -o atomic/unix/solaris.lo -c atomic/unix/solaris.c && touch atomic/unix/solaris.lo libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [strings/apr_strings.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [atomic/unix/ppc.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [passwd/apr_getpass.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [strings/apr_strtok.lo] Error 1 make[1]: *** [atomic/unix/s390.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [strings/apr_cpystrn.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [tables/apr_hash.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [strings/apr_strnatcmp.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [atomic/unix/mutex.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [tables/apr_tables.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [strings/apr_snprintf.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [atomic/unix/builtins.lo] Error 1 make[1]: *** [strings/apr_fnmatch.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [atomic/unix/ia32.lo] Error 1 libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [atomic/unix/solaris.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/apr-1.4.5/work/apr-1.4.5' make: *** [all-recursive] Error 1 emake failed * ERROR: dev-libs/apr-1.4.5 failed (compile phase): * emake failed