Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374355 - dev-libs/apr-1.4.5 fails with "libtool: unable to infer tagged configuration libtool: compile: specify a tag with `--tag'"
Summary: dev-libs/apr-1.4.5 fails with "libtool: unable to infer tagged configuration ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2011-07-07 13:58 UTC by Justin Lecher (RETIRED)
Modified: 2014-01-22 22:37 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (apr-1.4.5:20110707-135120.log,42.97 KB, text/plain)
2011-07-07 13:58 UTC, Justin Lecher (RETIRED)
Details
apr-1.4.4-BJA-cross.diff (apr-1.4.4-BJA-cross.diff,647 bytes, patch)
2011-10-05 19:01 UTC, Bertrand Jacquin
Details | Diff
apr-1.4.4.ebuild diff (apr-1.4.4-BJA-cross.diff,1.00 KB, patch)
2011-10-05 19:45 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-07-07 13:58:52 UTC
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
Comment 1 Rafał Mużyło 2011-07-07 16:38:11 UTC
apr has and odd build system - does rebuilding libtool help ?
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-07-08 06:23:04 UTC
no I am sorry.
Comment 3 Bertrand Jacquin 2011-10-05 19:01:48 UTC
Created attachment 288893 [details, diff]
apr-1.4.4-BJA-cross.diff

Here is a fix. The main goal is to use ${ROOT} libtool.
Comment 4 Bertrand Jacquin 2011-10-05 19:03:56 UTC
(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.
Comment 5 Bertrand Jacquin 2011-10-05 19:45:05 UTC
Created attachment 288897 [details, diff]
apr-1.4.4.ebuild diff

Here is a proper fix imho
Comment 6 Arfrever Frehtes Taifersar Arahesis 2011-10-05 20:05:11 UTC
(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.
Comment 7 Bertrand Jacquin 2011-10-05 20:24:45 UTC
(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
Comment 8 JRandolph 2011-11-27 13:25:34 UTC
I have this same problem, but is there a patch for 1.4.5?
Comment 9 jinleileiking 2012-06-05 03:50:21 UTC
I have the same problem with apr 1.4.5 & 1.4.6

Thread:
http://forums.gentoo.org/viewtopic-t-925850-highlight-.html
Comment 10 jinleileiking 2012-06-06 01:11:50 UTC
Reemerge libtool fix this problem
Comment 11 SpanKY gentoo-dev 2012-06-23 01:48:48 UTC
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_*.
Comment 12 Roland Haeder 2012-09-23 11:24:43 UTC
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
Comment 13 Roland Haeder 2012-09-23 21:15:16 UTC
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".
Comment 14 Sergey 'L29Ah' Alirzaev 2014-01-17 08:22:43 UTC
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.
Comment 15 SpanKY gentoo-dev 2014-01-22 21:22:47 UTC
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
Comment 16 Rafał Mużyło 2014-01-22 22:26:43 UTC
(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.
Comment 17 SpanKY gentoo-dev 2014-01-22 22:37:13 UTC
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