Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcl tk failure with R extension tkrplot #2749

Closed
verdurin opened this issue Mar 21, 2016 · 10 comments
Closed

tcl tk failure with R extension tkrplot #2749

verdurin opened this issue Mar 21, 2016 · 10 comments
Milestone

Comments

@verdurin
Copy link
Member

This is with R-3.2.3-foss-2015b.eb from 2.7.0:

* installing *source* package ‘tkrplot’ ...
** package ‘tkrplot’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for tclConfig.sh... no
checking for tclConfig.sh in library (sub)directories... no
checking for tkConfig.sh... no
checking for tkConfig.sh in library (sub)directories... no
checking for tcl.h... yes
checking for tk.h... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -std=gnu99 -I/srv/data/sw/eb/software/R/3.2.3-foss-2015b/lib64/R/include -DNDEBUG  -I/srv/data/sw/eb/software/OpenBLAS/0.2.14-GNU-4.9.3-2.25-LAPACK-3.5.0/include -I/srv/data/sw/eb/software/ScaLAPACK/2.0.2-gompi-2015b-OpenBLAS-0.2.14-LAPACK-3.5.0/include -I/srv/data/sw/eb/software/FFTW/3.3.4-gompi-2015b/include -I/srv/data/sw/eb/software/libreadline/6.3-foss-2015b/include -I/srv/data/sw/eb/software/ncurses/5.9-foss-2015b/include -I/srv/data/sw/eb/software/libpng/1.6.18-foss-2015b/include -I/srv/data/sw/eb/software/libjpeg-turbo/1.4.1-foss-2015b/include -I/srv/data/sw/eb/software/Java/1.8.0_72/include -I/srv/data/sw/eb/software/Tcl/8.6.4-foss-2015b/include -I/srv/data/sw/eb/software/Tk/8.6.4-foss-2015b-no-X11/include -I/srv/data/sw/eb/software/cURL/7.45.0-foss-2015b/include -I/srv/data/sw/eb/software/libxml2/2.9.2-foss-2015b/include -I/srv/data/sw/eb/software/GDAL/2.0.1-foss-2015b/include -I/srv/data/sw/eb/software/PROJ/4.8.0-foss-2015b/include -I/srv/data/sw/eb/software/cairo/1.14.2-foss-2015b/include    -fpic  -O2 -march=native  -c tcltkimg.c -o tcltkimg.o
gcc -std=gnu99 -shared -L/srv/data/sw/eb/software/R/3.2.3-foss-2015b/lib64/R/lib -L/srv/data/sw/eb/software/GCC/4.9.3-binutils-2.25/lib64 -L/srv/data/sw/eb/software/GCC/4.9.3-binutils-2.25/lib -L/srv/data/sw/eb/software/OpenBLAS/0.2.14-GNU-4.9.3-2.25-LAPACK-3.5.0/lib -L/srv/data/sw/eb/software/ScaLAPACK/2.0.2-gompi-2015b-OpenBLAS-0.2.14-LAPACK-3.5.0/lib -L/srv/data/sw/eb/software/FFTW/3.3.4-gompi-2015b/lib -L/srv/data/sw/eb/software/libreadline/6.3-foss-2015b/lib -L/srv/data/sw/eb/software/ncurses/5.9-foss-2015b/lib -L/srv/data/sw/eb/software/libpng/1.6.18-foss-2015b/lib -L/srv/data/sw/eb/software/libjpeg-turbo/1.4.1-foss-2015b/lib -L/srv/data/sw/eb/software/Java/1.8.0_72/lib -L/srv/data/sw/eb/software/Tcl/8.6.4-foss-2015b/lib -L/srv/data/sw/eb/software/Tk/8.6.4-foss-2015b-no-X11/lib -L/srv/data/sw/eb/software/cURL/7.45.0-foss-2015b/lib -L/srv/data/sw/eb/software/libxml2/2.9.2-foss-2015b/lib -L/srv/data/sw/eb/software/GDAL/2.0.1-foss-2015b/lib -L/srv/data/sw/eb/software/PROJ/4.8.0-foss-2015b/lib -L/srv/data/sw/eb/software/cairo/1.14.2-foss-2015b/lib -o tkrplot.so tcltkimg.o -L/srv/data/sw/eb/software/R/3.2.3-foss-2015b/lib64/R/lib -lR
installing to /srv/data/sw/eb/software/R/3.2.3-foss-2015b/lib64/R/library/tkrplot/libs
** R
** preparing package for lazy loading
Warning: S3 methods ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: Tcl/Tk support is not available on this system
Error : package ‘tcltk’ could not be loaded
ERROR: lazy loading failed for package ‘tkrplot’
 (at easybuild/tools/run.py:397 in parse_cmd_output)
@sjtbham
Copy link

sjtbham commented Mar 22, 2016

I noticed this on one of our builds, looking at previous issues, I added the tk-devel and tcl-devel packages and this then built. However, as there is a dev on Tcl and Tk, I'd expect those to provide the correct files?

@verdurin
Copy link
Member Author

Yes, there is a deeper problem here with the Tcl and Tk easyconfigs.

@stachon
Copy link

stachon commented Jun 2, 2016

+1 EB 2.8.0

@boegel boegel modified the milestones: v2.x, v2.9.0 Jun 2, 2016
@stachon
Copy link

stachon commented Jun 3, 2016

you need to add " --with-tcltk --with-tcl-config=$EBROOTTCL/lib/tclConfig.sh --with-tk-config=$EBROOTTK/lib/tkConfig.sh" to configopts for R.

This is already present in R-3.2.3-intel-2016a-libX11-1.6.3.eb, so maybe we should add it to all R versions that depend on Tcl/Tk? Not sure how it depends on X11, but without Tcl/Tk a lot of packages seem to fail.

@verdurin
Copy link
Member Author

@stachon - that did work, so I'll generate a PR with the change.

@stachon
Copy link

stachon commented Jun 16, 2016

this is probably related to #2261 #3079

@backelj
Copy link
Contributor

backelj commented Jul 21, 2016

I got the same issue with R-3.3.1-intel-2016b.eb :-(

It's not the first issue with the easyconfigs for toolchain 2016b, and its sad to see that these pass the jenkins testing.

Off course, this is probably due to the fact that system packages are installed and that EasyBuild is not capable of ignoring (all of) the installed libs.

@boegel
Copy link
Member

boegel commented Aug 17, 2016

@verdurin ping on the PR to add those configure flags?

@boegel
Copy link
Member

boegel commented Sep 19, 2016

I opened a PR for the R easyblock to add the missing --with-tcl-config and --with-tk-config configure options, see easybuilders/easybuild-easyblocks#995 .

@boegel
Copy link
Member

boegel commented Sep 19, 2016

considering this fixed with the updated easyblock easybuilders/easybuild-easyblocks#995 that will be included in EB v2.9.0...

@boegel boegel closed this as completed Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants