You are not logged in.

#1 2015-11-02 14:23:49

reactormonk
Member
Registered: 2012-10-23
Posts: 28

[SOLVED] R CMD config --ldflags / make

R CMD config --ldflags

relies on a Makefile similar to

print: FORCE
	@echo $(VAR)
	@echo $($(VAR))
FORCE:

Which returns nothing when I call it via

make print VAR="foo"

Last edited by reactormonk (2015-11-05 17:03:08)

Offline

#2 2015-11-02 15:54:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [SOLVED] R CMD config --ldflags / make

I know nothing of R.  As far as I can tell you have not asked a question but rather you've made an assertion.

Can you provide a bit more detail?  Also, I believe this is a programming question.  Moving to "Programming and Scripting"


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-11-02 17:30:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] R CMD config --ldflags / make

reactormonk wrote:
R CMD config --ldflags

relies on a Makefile similar to...

True.  Kind of.  The second line does not exist in the Makefile.  The actual file is available at /usr/share/R/make/config.mk

But like ewaller I fail to see how this assertion is relevant to anything.

Using this makefile with `make VAR="foo"` one would expect it to echo nothing - so everything is as expected.  You can further test by having it not echo nothing:

$ make VAR="foo"

$ foo=bar make VAR="foo"
bar

Is your problem with understanding Makefiles, or is your problem with the output of R CMD config --ldflags?  Or is there not a problem at all?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2015-11-02 20:18:57

reactormonk
Member
Registered: 2012-10-23
Posts: 28

Re: [SOLVED] R CMD config --ldflags / make

It should print "foo", tested via IRC on someone elses Archlinux. But somehow on both of my machines, it doesn't print anything. When calling

make -s -f /usr/lib64/R/etc/Makeconf -f /usr/share/R/make/config.mk print R_HOME=/usr/lib64/R R_SHARE_DIR=/usr/share/R VAR=LIBR

it prints nothing, where it should print something, because the stock R is compiled with shared lib support. That's also what trips up

R CMD config --ldflags

Offline

#5 2015-11-02 23:58:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] R CMD config --ldflags / make

reactormonk wrote:

It should print "foo"

No.  It shouldn't.  It should print the *contents* of a variable named foo.  If it did print foo on someone else's box it is because they set an environment variable called foo to equal foo:

$ foo=foo make VAR=foo
foo

But I suppose this is an X-Y problem.  Are you asking about why that makefile doesn't print foo, or are you asking why R CMD config --ldflags doesn't produce the result you expect?  If it's the former, then there is nothing wrong, your system is working as expected.  If you are asking the latter question, you should have started with that rather than wasting all this time on the non-error of the foo thing.

If the command you posted in this very last post returns nothing, then it is not likely due to the makefile failing, but due to a problem with the Makeconf file.

EDIT: This is tiring.  I have no interest in continuing to play 20 questions to try to identify what your issue is - if you have an issue at all.  If you have a question, ask it.  If you are having a problem, state it.  If you do neither of these, expect that this thread will end in the dustbin.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2015-11-03 08:59:52

reactormonk
Member
Registered: 2012-10-23
Posts: 28

Re: [SOLVED] R CMD config --ldflags / make

The initial problem is compiling rJava. Via

git clone https://github.com/s-u/rJava
cd rJava && ./configure --enable-jri

If you're hitting https://bugs.archlinux.org/task/46945?p … _watched=1 (R CMD javareconf doesn't compile the test program successfully) , use the WA.

Workaround:
On line 218 in /usr/lib/R/bin/javareconf, replace

LD_LIBRARY_PATH=

with

LD_LIBRARY_PATH=/usr/lib/jvm/java-8-openjdk/jre/lib/amd64/server

The configure tells me

R was not built as a library
R was not built as a library
configure: error: R was not compiled with --enable-R-shlib

I took a look at the configure script and it checks for the ldflags.

R CMD config --ldflags R was not built as a library

I checked the PKGBUILD for r, which has --enable-R-shlib enabled, so it was built as a library. I traced the problem back to /usr/lib/R/bin/config, the $query variable on line 278 - I echoed said variable and got

make -s -f /usr/lib64/R/etc/Makeconf -f /usr/share/R/make/config.mk print R_HOME=/usr/lib64/R R_SHARE_DIR=/usr/share/R

Appending VAR=LIBR gives me nothing, even though the variable is set in Makeconf. It should give me the contents of LIBR instead.

I isolated the problem to

FOO = foo

print: FORCE
	@echo $(VAR)
	@echo $($(VAR))
FORCE:

which should produce (according to my ubuntu box)

$ make print VAR=FOO
FOO
foo

But on my Archlinux box it produces

$ make print VAR=FOO

(nothing)

So I wonder if there's a weird setting affecting my make.

Last edited by reactormonk (2015-11-03 09:04:02)

Offline

#7 2015-11-03 10:28:33

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] R CMD config --ldflags / make

reactormonk wrote:

The initial problem is compiling rJava. Via

git clone https://github.com/s-u/rJava
cd rJava && ./configure --enable-jri

Well, it works fine on my machine.

reactormonk wrote:

I traced the problem back to /usr/lib/R/bin/config, the $query variable on line 278

Ehm, is that a typo by any chance? Is your system fully updated? On my system the line 278 of the file /usr/lib/R/bin/config is just a comment:

/usr/lib/R/bin/config (whit line numbers) wrote:
...
268   if test "${var_ok}" = yes; then
269     eval "${query} VAR=${var}"
270   else
271     echo "ERROR: no information for variable '${var}'"
272     exit 1
273   fi
274   
275   ### Local Variables: ***
276   ### mode: sh ***
277   ### sh-indentation: 2 ***
278   ### End: ***

What is the output of the following commands?

$ which R
$ R --version
$ pacman -Qkki r
$ which make
$ make --version
$ pacman -Qkki make

PS:

reactormonk wrote:

I isolated the problem to

FOO = foo

print: FORCE
	@echo $(VAR)
	@echo $($(VAR))
FORCE:

On my system, that gives indeed

$ make print VAR=FOO
FOO
foo

About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#8 2015-11-03 10:46:13

reactormonk
Member
Registered: 2012-10-23
Posts: 28

Re: [SOLVED] R CMD config --ldflags / make

mauritiusdadd wrote:
reactormonk wrote:

The initial problem is compiling rJava. Via

git clone https://github.com/s-u/rJava
cd rJava && ./configure --enable-jri

Well, it works fine on my machine.

So it's possible. good to know.

mauritiusdadd wrote:
reactormonk wrote:

I traced the problem back to /usr/lib/R/bin/config, the $query variable on line 278

Ehm, is that a typo by any chance? Is your system fully updated? On my system the line 278 of the file /usr/lib/R/bin/config is just a comment:

/usr/lib/R/bin/config (whit line numbers) wrote:
...
268   if test "${var_ok}" = yes; then
269     eval "${query} VAR=${var}"
270   else
271     echo "ERROR: no information for variable '${var}'"
272     exit 1
273   fi
274   
275   ### Local Variables: ***
276   ### mode: sh ***
277   ### sh-indentation: 2 ***
278   ### End: ***

Oops. 148.

mauritiusdadd wrote:

What is the output of the following commands?

$ which R
$ R --version
$ pacman -Qkki r
$ which make
$ make --version
$ pacman -Qkki make
$ which R
/usr/bin/R

$ R --version
R version 3.2.2 (2015-08-14) -- "Fire Safety"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.

$ pacman -Qkki r
Name           : r
Version        : 3.2.2-1
Description    : Language and environment for statistical computing and graphics
Architecture   : x86_64
URL            : http://www.r-project.org/
Licenses       : GPL
Groups         : None
Provides       : None
Depends On     : blas  lapack  bzip2  libpng  libjpeg  libtiff  ncurses  pcre  readline  zlib  perl  gcc-libs  libxt  libxmu  pango  xz  desktop-file-utils  zip  unzip
Optional Deps  : tk: tcl/tk interface [installed]
                 texlive-bin: latex sty files [installed]
Required By    : emacs-ess
Optional For   : cantor  graphviz
Conflicts With : None
Replaces       : None
Installed Size :  52.68 MiB
Packager       : Antonio Rojas <arojas@archlinux.org>
Build Date     : Mon 12 Oct 2015 10:07:39 PM CEST
Install Date   : Mon 02 Nov 2015 02:37:59 PM CET
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature

warning: r: /usr/lib/R/bin/javareconf (Modification time mismatch)
warning: r: /usr/lib/R/bin/javareconf (Size mismatch)
warning: r: /usr/lib/R/etc/Makeconf (File type mismatch)
warning: r: /usr/lib/R/etc/ldpaths (File type mismatch)
warning: r: /usr/share/R/make/config.mk (Modification time mismatch)
r: 1906 total files, 4 altered files

$ which make

/usr/bin/make

$ make --version
GNU Make 4.1
Built for x86_64-unknown-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ pacman -Qkki make
Name           : make
Version        : 4.1-1
Description    : GNU make utility to maintain groups of programs
Architecture   : x86_64
URL            : http://www.gnu.org/software/make
Licenses       : GPL3
Groups         : base-devel
Provides       : None
Depends On     : glibc  sh  guile
Optional Deps  : None
Required By    : dkms  libreoffice-still-sdk
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size : 1445.00 KiB
Packager       : Allan McRae <allan@archlinux.org>
Build Date     : Mon 06 Oct 2014 03:22:22 AM CEST
Install Date   : Mon 02 Nov 2015 02:56:13 PM CET
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature

make: 90 total files, 0 altered files
mauritiusdadd wrote:

PS:

reactormonk wrote:

I isolated the problem to

FOO = foo

print: FORCE
	@echo $(VAR)
	@echo $($(VAR))
FORCE:

On my system, that gives indeed

$ make print VAR=FOO
FOO
foo

Ok, good to know. So that's how it should behave.

Last edited by reactormonk (2015-11-03 10:46:36)

Offline

#9 2015-11-03 11:39:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] R CMD config --ldflags / make

*headdesk* definitely an X-Y problem.  Thank you for finally actually stating the problem.  The makefile also works fine here.  The R CMD config options all work fine here - and I am pretty well verse in Makefiles, R, and some compiling of R packages - but I have absolutely no knowledge of java, so I can't help with what this problem actually is despite being drawn in by the fake version of the problem in your first posts.

Please do not do this in the future.  State your problem with the actual error messages in your first post.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2015-11-03 13:05:05

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] R CMD config --ldflags / make

reactormonk wrote:
warning: r: /usr/lib/R/bin/javareconf (Modification time mismatch)
warning: r: /usr/lib/R/bin/javareconf (Size mismatch)
warning: r: /usr/lib/R/etc/Makeconf (File type mismatch)
warning: r: /usr/lib/R/etc/ldpaths (File type mismatch)
warning: r: /usr/share/R/make/config.mk (Modification time mismatch)
r: 1906 total files, 4 altered files

So, it seems that some files have been altered...  try reinstalling R and after that see if "R CMD config --ldflags" works as expected.


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#11 2015-11-03 15:59:51

reactormonk
Member
Registered: 2012-10-23
Posts: 28

Re: [SOLVED] R CMD config --ldflags / make

mauritiusdadd wrote:
reactormonk wrote:
warning: r: /usr/lib/R/bin/javareconf (Modification time mismatch)
warning: r: /usr/lib/R/bin/javareconf (Size mismatch)
warning: r: /usr/lib/R/etc/Makeconf (File type mismatch)
warning: r: /usr/lib/R/etc/ldpaths (File type mismatch)
warning: r: /usr/share/R/make/config.mk (Modification time mismatch)
r: 1906 total files, 4 altered files

So, it seems that some files have been altered...  try reinstalling R and after that see if "R CMD config --ldflags" works as expected.

No, doesn't help :-( Still the same error message.

Offline

#12 2015-11-03 16:40:37

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] R CMD config --ldflags / make

And does pacman still say that there are altered files?

--edit[0]:

can you also please post the output of

$ uname -a
$ env

?

--edit[1]

Always using the test Makefile you posted above, can you post also the output of the following commands?

$ make --trace VAR=FOO
$ strace make VAR=FOO

Last edited by mauritiusdadd (2015-11-03 17:29:08)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#13 2015-11-03 19:31:20

reactormonk
Member
Registered: 2012-10-23
Posts: 28

Re: [SOLVED] R CMD config --ldflags / make

No more altered files afterwards, but I ran javareconf again, so the files are again altered. Required so the java part of the configure script passes.

$ uname -a
Linux exia 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64 GNU/Linux

$ env
LANGUAGE=
KDE_MULTIHEAD=false
KDE_SESSION_VERSION=4
KONSOLE_PROFILE_NAME=Shell
KONSOLE_DBUS_SERVICE=:1.31
LOGNAME=tass
WINDOWPATH=7
GTK_MODULES=canberra-gtk-module
XDG_VTNR=7
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/tass/.gtkrc-2.0:/home/tass/.kde4/share/config/gtkrc-2.0
KDE_FULL_SESSION=true
SHLVL=2
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
PATH=/home/tass/.opam/4.01.0/bin:/home/tass/dev/nim/nim/compiler/c2nim:/home/tass/dev/nim/nim/bin:/home/tass/bin/:/home/tass/.nimble/bin:/home/tass/.gem/ruby/2.2.0/bin:/home/tass/.nimble/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/tass/node_modules/.bin
USER=tass
HG=/usr/bin/hg
LANG=en_US.utf8
GTK_RC_FILES=/etc/gtk/gtkrc:/home/tass/.gtkrc:/home/tass/.kde4/share/config/gtkrc
WINDOWID=31457307
MAIL=/var/spool/mail/tass
XDG_SEAT=seat0
XDM_MANAGED=method=classic
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
DM_CONTROL=/var/run/xdmctl
_=/usr/bin/env
DISPLAY=:0
PWD=/home/tass
XDG_SESSION_ID=c1
GS_LIB=/home/tass/.fonts
COLORFGBG=15;0
XDG_RUNTIME_DIR=/run/user/1000
KDE_SESSION_UID=1000
SSH_AGENT_PID=10669
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_CURRENT_DESKTOP=KDE
MAVEN_OPTS=-Xmx512m
TERM=xterm
PROFILEHOME=
SESSION_MANAGER=local/exia:@/tmp/.ICE-unix/10713,unix/exia:/tmp/.ICE-unix/10713
QT_PLUGIN_PATH=/home/tass/.kde4/lib/kde4/plugins/:/usr/lib/kde4/plugins/
ANT_HOME=/usr/share/apache-ant
SSH_AUTH_SOCK=/tmp/ssh-W7EkWp8hEDGa/agent.10668
KONSOLE_DBUS_SESSION=/Sessions/7
DESKTOP_SESSION=kde-plasma
SHELL_SESSION_ID=bc21172b3ab540009d80e1d32f1da0a7
HOME=/home/tass
SHELL=/bin/zsh
OLDPWD=/home/tass
BROWSER=chromium
EDITOR=emacsclient
VISUAL=emacsclient
SBT_OPTS=-XX:ReservedCodeCacheSize=256M -XX:MaxPermSize=256M -Xmx3500M -Xss2M -Dfile.encoding=UTF-8
VIEW_PDF=kde-open
PAGER=less
WORKON_HOME=/home/tass/.virtualenvs
VIRTUALENVWRAPPER_PROJECT_FILENAME=.project
VIRTUALENVWRAPPER_WORKON_CD=1
VIRTUALENVWRAPPER_SCRIPT=/usr/bin/virtualenvwrapper.sh
VIRTUALENVWRAPPER_HOOK_DIR=/home/tass/.virtualenvs
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LESS=-R -M +g
LESS_TERMCAP_me=
LESS_TERMCAP_se=
LESS_TERMCAP_ue=
LESS_TERMCAP_mb=
LESS_TERMCAP_md=
LESS_TERMCAP_us=
LESS_TERMCAP_so=
LESSCOLORIZER=code2color
ACK_COLOR_MATCH=bold red
SUDO_PROMPT=[sudo] password for %u@%h (-> %U): 
GIT_PAGER=less +g
VIRTUAL_ENV_DISABLE_PROMPT=1
OCAML_TOPLEVEL_PATH=/home/tass/.opam/4.01.0/lib/toplevel
PERL5LIB=/home/tass/.opam/4.01.0/lib/perl5:
MANPATH=:/home/tass/.opam/4.01.0/man
CAML_LD_LIBRARY_PATH=/home/tass/.opam/4.01.0/lib/stublibs

$ make --trace VAR=FOO
Makefile:4: update target 'print' due to: FORCE
echo FOO
echo foo

$ strace make VAR=FOO
execve("/usr/bin/make", ["make", "VAR=FOO"], [/* 78 vars */]) = 0
brk(0)                                  = 0xc86000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=434620, ...}) = 0
mmap(NULL, 434620, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f537ada0000
close(3)                                = 0
open("/usr/lib/libguile-2.0.so.22", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\213\4\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1592896, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f537ad9f000
mmap(NULL, 3742240, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f537a858000
mprotect(0x7f537a9ad000, 2097152, PROT_NONE) = 0
mmap(0x7f537abad000, 196608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x155000) = 0x7f537abad000
mmap(0x7f537abdd000, 51744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f537abdd000
close(3)                                = 0
open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=14576, ...}) = 0
mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f537a654000
mprotect(0x7f537a657000, 2093056, PROT_NONE) = 0
mmap(0x7f537a856000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f537a856000
close(3)                                = 0
open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@a\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=146608, ...}) = 0
mmap(NULL, 2213008, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f537a437000
mprotect(0x7f537a44f000, 2093056, PROT_NONE) = 0
mmap(0x7f537a64e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f537a64e000
mmap(0x7f537a650000, 13456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f537a650000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\7\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1991416, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f537ad9e000
mmap(NULL, 3815984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f537a093000
mprotect(0x7f537a22e000, 2093056, PROT_NONE) = 0
mmap(0x7f537a42d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a000) = 0x7f537a42d000
mmap(0x7f537a433000, 14896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f537a433000
close(3)                                = 0
open("/usr/lib/libgc.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300_\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=155768, ...}) = 0
mmap(NULL, 2522016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5379e2b000
mprotect(0x7f5379e50000, 2093056, PROT_NONE) = 0
mmap(0x7f537a04f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24000) = 0x7f537a04f000
mmap(0x7f537a051000, 269216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f537a051000
close(3)                                = 0
open("/usr/lib/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\33\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=35216, ...}) = 0
mmap(NULL, 2131688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5379c22000
mprotect(0x7f5379c2a000, 2093056, PROT_NONE) = 0
mmap(0x7f5379e29000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f5379e29000
close(3)                                = 0
open("/usr/lib/libunistring.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\30\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1507400, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f537ad9d000
mmap(NULL, 3606824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f53798b1000
mprotect(0x7f5379a1d000, 2097152, PROT_NONE) = 0
mmap(0x7f5379c1d000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16c000) = 0x7f5379c1d000
mmap(0x7f5379c21000, 2344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5379c21000
close(3)                                = 0
open("/usr/lib/libgmp.so.10", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\2\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=598952, ...}) = 0
mmap(NULL, 2694176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f537961f000
mprotect(0x7f53796af000, 2097152, PROT_NONE) = 0
mmap(0x7f53798af000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x90000) = 0x7f53798af000
close(3)                                = 0
open("/usr/lib/libltdl.so.7", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200%\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=39480, ...}) = 0
mmap(NULL, 2134736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5379415000
mprotect(0x7f537941e000, 2093056, PROT_NONE) = 0
mmap(0x7f537961d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f537961d000
close(3)                                = 0
open("/usr/lib/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\v\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=39168, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f537ad9c000
mmap(NULL, 2322944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f53791dd000
mprotect(0x7f53791e5000, 2097152, PROT_NONE) = 0
mmap(0x7f53793e5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x7f53793e5000
mmap(0x7f53793e7000, 184832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f53793e7000
close(3)                                = 0
open("/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20U\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1038688, ...}) = 0
mmap(NULL, 3133720, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5378edf000
mprotect(0x7f5378fdc000, 2093056, PROT_NONE) = 0
mmap(0x7f53791db000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xfc000) = 0x7f53791db000
close(3)                                = 0
open("/usr/lib/libatomic_ops.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\10\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=10152, ...}) = 0
mmap(NULL, 2105792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5378cdc000
mprotect(0x7f5378cdd000, 2097152, PROT_NONE) = 0
mmap(0x7f5378edd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f5378edd000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f537ad9b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f537ad9a000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f537ad98000
arch_prctl(ARCH_SET_FS, 0x7f537ad98740) = 0
mprotect(0x7f537a42d000, 16384, PROT_READ) = 0
mprotect(0x7f5378edd000, 4096, PROT_READ) = 0
mprotect(0x7f53791db000, 4096, PROT_READ) = 0
mprotect(0x7f53793e5000, 4096, PROT_READ) = 0
mprotect(0x7f537a856000, 4096, PROT_READ) = 0
mprotect(0x7f537961d000, 4096, PROT_READ) = 0
mprotect(0x7f53798af000, 4096, PROT_READ) = 0
mprotect(0x7f5379c1d000, 12288, PROT_READ) = 0
mprotect(0x7f5379e29000, 4096, PROT_READ) = 0
mprotect(0x7f537a64e000, 4096, PROT_READ) = 0
mprotect(0x7f537a04f000, 4096, PROT_READ) = 0
mprotect(0x7f537abad000, 73728, PROT_READ) = 0
mprotect(0x631000, 4096, PROT_READ)     = 0
mprotect(0x7f537ae0b000, 4096, PROT_READ) = 0
munmap(0x7f537ada0000, 434620)          = 0
set_tid_address(0x7f537ad98a10)         = 2496
set_robust_list(0x7f537ad98a20, 24)     = 0
rt_sigaction(SIGRTMIN, {0x7f537a43cbe0, [], SA_RESTORER|SA_SIGINFO, 0x7f537a447d60}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f537a43cc70, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f537a447d60}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}) = 0
brk(0)                                  = 0xc86000
brk(0xca7000)                           = 0xca7000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1633840, ...}) = 0
mmap(NULL, 1633840, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5378b4d000
close(3)                                = 0
rt_sigaction(SIGHUP, {0x40a4c0, [HUP], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x40a4c0, [QUIT], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x40a4c0, [INT], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x40a4c0, [TERM], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXCPU, {0x40a4c0, [XCPU], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXFSZ, {0x40a4c0, [XFSZ], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [], 0}, 8) = 0
fcntl(1, F_GETFL)                       = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fcntl(1, F_SETFL, O_RDWR|O_APPEND|O_LARGEFILE) = 0
fcntl(2, F_GETFL)                       = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fcntl(2, F_SETFL, O_RDWR|O_APPEND|O_LARGEFILE) = 0
getcwd("/tmp", 4096)                    = 5
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 11), ...}) = 0
readlink("/proc/self/fd/1", "/dev/pts/11", 4095) = 11
stat("/dev/pts/11", {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 11), ...}) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
fstat(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 11), ...}) = 0
readlink("/proc/self/fd/2", "/dev/pts/11", 4095) = 11
stat("/dev/pts/11", {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 11), ...}) = 0
stat("/usr/include", {st_mode=S_IFDIR|0755, st_size=49926, ...}) = 0
stat("/usr/gnu/include", 0x7ffc0b9fc5b0) = -1 ENOENT (No such file or directory)
stat("/usr/local/include", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
stat("/usr/include", {st_mode=S_IFDIR|0755, st_size=49926, ...}) = 0
rt_sigaction(SIGCHLD, {0x4139d0, [CHLD], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, 8) = 0
rt_sigaction(SIGUSR1, {0x416f30, [USR1], SA_RESTORER|SA_RESTART, 0x7f537a0c6680}, {SIG_DFL, [], 0}, 8) = 0
brk(0xcc8000)                           = 0xcc8000
stat(".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=720, ...}) = 0
stat(".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=720, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFDIR|S_ISVTX|0777, st_size=720, ...}) = 0
getdents(3, /* 36 entries */, 32768)    = 1360
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
open("Makefile", O_RDONLY)              = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f537ae0a000
read(3, "FOO = foo\n\nprint: FORCE\n\t@echo $"..., 4096) = 62
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f537ae0a000, 4096)            = 0
stat("RCS", 0x7ffc0b9fc560)             = -1 ENOENT (No such file or directory)
stat("SCCS", 0x7ffc0b9fc560)            = -1 ENOENT (No such file or directory)
stat("Makefile", {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
stat("print", 0x7ffc0b9fa390)           = -1 ENOENT (No such file or directory)
stat("FORCE", 0x7ffc0b9fa390)           = -1 ENOENT (No such file or directory)
pipe([3, 4])                            = 0
close(4)                                = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f537ad98a10) = 2497
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2497
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2497, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 2497
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f537ad98a10) = 2498
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2498
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2498, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 2498
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("print", 0x7ffc0b9fa460)           = -1 ENOENT (No such file or directory)
chdir("/tmp")                           = 0
close(1)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Offline

#14 2015-11-04 07:56:24

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] R CMD config --ldflags / make

So it seems that make actually tries to invoke echo, but it prints nothing.... is the echo command working? What is the output of

$ echo "test"
$ which echo
$ file /usr/bin/echo
$ pacman -Qkki coreutils

?
I also noticed you are using zsh as your shell... can you test the Makefile using bash? can you also test it not using a terminal emulator (eg, directly in a tty)?

Last edited by mauritiusdadd (2015-11-04 07:57:26)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#15 2015-11-04 12:32:08

reactormonk
Member
Registered: 2012-10-23
Posts: 28

Re: [SOLVED] R CMD config --ldflags / make

mauritiusdadd wrote:
$ which echo
$ which echo
/home/tass/bin/echo

Found it. Thanks. Wtf was I thinking on that?

Offline

#16 2015-11-04 15:50:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [SOLVED] R CMD config --ldflags / make

reactormonk wrote:

Wtf was I thinking on that?

image-1.jpg smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#17 2015-11-04 19:56:46

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] R CMD config --ldflags / make

@ewaller: lol

@reactormonk: Ok, does everything work fine now? If so, please remember to mark the thread as [SOLVED]: https://bbs.archlinux.org/viewtopic.php?id=130309

Last edited by mauritiusdadd (2015-11-04 20:26:36)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

Board footer

Powered by FluxBB