From unlikely.combination at gmail.com  Fri Aug 14 16:19:26 2015
From: unlikely.combination at gmail.com (Joe S)
Date: Fri, 14 Aug 2015 16:19:26 +0200
Subject: [Rd] Build R on Haiku
Message-ID: <CAPs52TqRajW5Rvb8KPGXsSE3i809gS-98QiS=mZjHbXXR-c7pg@mail.gmail.com>

Hi R-devel,
I'm trying to get R 3.2.1 working on Haiku (an open source OS inspired by
BeOS, not Linux based) on i586. With a few small changes to library paths
and ifdefs I am able to get a seemingly working R binary. The build process
stops with the 'tools' package. The last lines from make are below.

Does anyone have any tips? I'm rather new to debugging at this low level.

Are there any checks I can do to the R binary to test if it works properly?

Cheers
Joe

***********************************************************************
make[3]: Entering directory `/Store/buildr/src/library/tools'
building package 'tools'
make[4]: Entering directory `/Store/buildr/src/library/tools'
all.R is unchanged
make[4]: Leaving directory `/Store/buildr/src/library/tools'
make[4]: Entering directory `/Store/buildr/src/library/tools'
make[5]: Entering directory `/Store/buildr/src/library/tools/src'
make[6]: Entering directory `/Store/buildr/src/library/tools/src'
../../../../library/tools/libs/tools.so is unchanged
make[6]: Leaving directory `/Store/buildr/src/library/tools/src'
make[5]: Leaving directory `/Store/buildr/src/library/tools/src'
make[4]: Leaving directory `/Store/buildr/src/library/tools'
make[4]: Entering directory `/Store/buildr/src/library/tools'
installing 'sysdata.rda'
export
ADDON_PATH="%A/add-ons:/boot/home/config/non-packaged/add-ons:/boot/home/config/add-ons:/boot/system/non-packaged/add-ons:/boot/system/add-ons"
export
BEINCLUDES="/boot/system/develop/headers;/boot/system/develop/headers/be;/boot/system/develop/headers/posix;/boot/system/develop/headers/glibc;/boot/system/develop/headers/cpp;/boot/system/develop/headers/be/app;/boot/system/develop/headers/be/device;/boot/system/develop/headers/be/interface;/boot/system/develop/headers/be/locale;/boot/system/develop/headers/be/media;/boot/system/develop/headers/be/midi;/boot/system/develop/headers/be/midi2;/boot/system/develop/headers/be/net;/boot/system/develop/headers/be/kernel;/boot/system/develop/headers/be/storage;/boot/system/develop/headers/be/support;/boot/system/develop/headers/be/game;/boot/system/develop/headers/be/opengl;/boot/system/develop/headers/be/drivers;/boot/system/develop/headers/gnu;/boot/system/develop/headers/be/mail;/boot/system/develop/headers/be/translation;/boot/system/develop/headers/be/devel;/boot/system/develop/headers/be/add-ons/graphics;/boot/system/develop/headers/be/be_apps/Deskbar;/boot/system/develop/headers/be/be_apps/NetPositive;/boot/system/develop/headers/be/be_apps/Tracker"
export BE_HOST_CPU="x86"
export BUILDHOME="/boot/system/develop"
export GROUP="root"
export HISTCONTROL="ignoredups"
export HISTFILESIZE="500"
export HOME="/boot/home"
export JAVA_HOME="/packages/openjdk-1.7_2013_11_08-2/.self/lib/openjdk"
export LC_ALL="C"
export LC_COLLATE="en.UTF-8"
export LC_CTYPE="en.UTF-8"
export LC_MESSAGES="en.UTF-8"
export LC_MONETARY="en.UTF-8"
export LC_NUMERIC="en.UTF-8"
export LC_TIME="en.UTF-8"
export LC_TYPE="en_US.UTF-8"
export
LIBRARY_PATH="%A/lib:/boot/home/config/non-packaged/lib:/boot/home/config/lib:/boot/system/non-packaged/lib:/boot/system/lib:/Store/buildr/lib"
export
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;43: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:"
export MAKEFLAGS="w"
export MAKELEVEL="5"
export MFLAGS="-w"
export OLDPWD
export
PATH=".:/boot/home/config/non-packaged/bin:/boot/home/config/bin:/boot/system/non-packaged/bin:/bin:/boot/system/apps:/boot/system/preferences"
export PWD="/Store/buildr/src/library/tools"
export R_DEFAULT_PACKAGES="NULL"
export R_DOC_DIR="/Store/buildr/doc"
export R_ENVIRON=""
export R_ENVIRON_USER=""
export R_HOME="/Store/buildr"
export R_INCLUDE_DIR="/Store/buildr/include"
export R_PROFILE=""
export R_PROFILE_USER=""
export R_SHARE_DIR="/Store/buildr/share"
export SAFEMODE="no"
export SED="/bin/sed"
export SHLVL="7"
export TERM="xterm"
export TTY="/dev/tt/p1"
export TTYPE="UTF-8"
export USER="user"
export XDG_CACHE_HOME="/boot/home/config/cache"
export XDG_CONFIG_DIRS="/boot/system/settings"
export XDG_CONFIG_HOME="/boot/home/config/settings"
export XDG_DATA_DIRS="/boot/system/non-packaged/data:/boot/system/data"
export XDG_DATA_HOME="/boot/home/config/non-packaged/data"
Error in .Call(PS_sigs, 1L) :
  first argument must be a string (of length 1) or native symbol reference
Error: unable to load R code in package 'tools'
Execution halted
make[4]: *** [sysdata] Error 1
make[4]: Leaving directory `/Store/buildr/src/library/tools'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/Store/buildr/src/library/tools'
make[2]: *** [R] Error 1
make[2]: Leaving directory `/Store/buildr/src/library'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/Store/buildr/src'
make: *** [R] Error 1

	[[alternative HTML version deleted]]



[Rd] Build R on Haiku
Joe S