Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 457758 - dev-lang/R-2.15.2-r2 does hardcoded AR calls
Summary: dev-lang/R-2.15.2-r2 does hardcoded AR calls
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Denis Dupeyron (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 21:48 UTC by Denis M. (Phr33d0m)
Modified: 2013-02-18 19:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis M. (Phr33d0m) 2013-02-15 21:48:58 UTC
$ ▶ ./blatt.sh /var/tmp/portage/logs/dev-lang\:R-2.15.2-r2\:20130214-230347.log 
>>> dev-lang/R-2.15.2: ISSUES FOUND
> Hardcoded calls:
ar cr libtre.a regcomp.o regerror.o regexec.o tre-ast.o tre-compile.o tre-match-approx.o tre-match-backtrack.o tre-match-parallel.o tre-mem.o tre-parse.o tre-stack.o xmalloc.o
ar cr libappl.a bakslv.o binning.o cpoly.o cumsum.o fft.o fmin.o integrate.o interv.o lbfgsb.o machar.o maxcol.o pretty.o rcont.o rowsum.o stem.o strsignif.o tabulate.o uncmin.o zeroin.o ch2inv.o chol.o dchdc.o dpbfa.o dpbsl.o dpoco.o dpodi.o dpofa.o dposl.o dqrdc.o dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrco.o dtrsl.o eigen.o 
ar cr libnmath.a mlutils.o d1mach.o i1mach.o fmax2.o [...]



Reproducible: Always
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2013-02-16 00:55:02 UTC
Could you please translate in plain english?

Thanks,
Denis.
Comment 2 Denis M. (Phr33d0m) 2013-02-16 01:11:06 UTC
Hello, sorry I implied you knew what I was talking about.

In short, the build system is calling "ar" directly. It should NOT do that because it can lead to problems when cross-compiling. It should call it's full equivalent 'name', for example, "x86_64-pc-linux-gnu-ar".

Please, have a look at other reported bugs about hardcoded AR calls and see how other devs solve this.

In most cases using (from https://444082.bugs.gentoo.org/attachment.cgi?id=330320):
-	emake || die "compile fail"
+	emake AR="$(tc-getAR)" || die "compile fail"
Can fix this issue. Although there are a couple of other ways if this does not work.
Comment 3 Agostino Sarubbo gentoo-dev 2013-02-16 07:55:53 UTC
(In reply to comment #2)
> Hello, sorry I implied you knew what I was talking about.
> 
> In short, the build system is calling "ar" directly. It should NOT do that
> because it can lead to problems when cross-compiling. It should call it's
> full equivalent 'name', for example, "x86_64-pc-linux-gnu-ar".

Different AR does not cause issues during cross-compiling. But the buildsystem should respect the system AR.
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2013-02-18 19:47:27 UTC
Fixed, thanks.

Denis.