Building problem with Vagrant on macOS

18 views
Skip to first unread message

me...@bedatadriven.com

unread,
Mar 7, 2019, 9:57:08 AM3/7/19
to Renjin
I am trying to build renjin from the source ([latest](https://github.com/bedatadriven/renjin/tree/3ee023a89d7190d2870ea90c155faf66fb2f7b7c)) on macOS with Vagrant (inside a case-sensitive volume as described in the Building documentation) but I get the following error.

What can be the cause for this?

```
(...)
FileProviderTest
nonAsciiCharacterTest(org.renjin.util.ClasspathFileProviderTest)  Time elapsed: 0.013 sec  <<< ERROR!
org.apache.commons.vfs2.FileSystemException: Badly formed URI "res:t?l?chargements.txt".
        at org.renjin.util.ClasspathFileProvider.findFile(ClasspathFileProvider.java:71)
        at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:693)
        at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:649)
        at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:605)
        at org.renjin.util.ClasspathFileProviderTest.nonAsciiCharacterTest(ClasspathFileProviderTest.java:38)

Running org.renjin.util.HeapsortTandemTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.338 sec - in org.renjin.util.HeapsortTandemTest
Running org.renjin.util.NamesBuilderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.renjin.util.NamesBuilderTest
Running org.renjin.util.NestedResourceProviderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.renjin.util.NestedResourceProvider
Test

Results :

Tests in error:
  ClasspathFileProviderTest.nonAsciiCharacterTest:38 ? FileSystem Badly formed U...

Tests run: 1321, Failures: 0, Errors: 1, Skipped: 37

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Renjin Parent ...................................... SUCCESS [ 44.950 s]
[INFO] Renjin Tools ....................................... SUCCESS [  1.736 s]
[INFO] Renjin GCC Bridge Parent ........................... SUCCESS [  1.292 s]
[INFO] Renjin GCC Runtime ................................. SUCCESS [ 19.013 s]
[INFO] Renjin Common Math Routines ........................ SUCCESS [  0.832 s]
[INFO] Renjin GCC Bridge Compiler ......................... SUCCESS [01:39 min]
[INFO] Renjin GCC Bridge Maven Plugin ..................... SUCCESS [ 18.228 s]
[INFO] Renjin BLAS Library ................................ SUCCESS [ 19.192 s]
[INFO] renjin-appl ........................................ SUCCESS [ 11.132 s]
[INFO] Renjin nmath Library ............................... SUCCESS [ 34.948 s]
[INFO] Renjin Lapack Library .............................. SUCCESS [ 46.628 s]
[INFO] Renjin Core ........................................ FAILURE [02:21 min]
[INFO] Renjin GNU-R Runtime ............................... SKIPPED
[INFO] Renjin Packages Parent ............................. SKIPPED
[INFO] Renjin Read-Eval-Print-Loop ........................ SKIPPED
[INFO] Renjin GNU R Installation .......................... SKIPPED
[INFO] Renjin GNU R Native Sources Compiler ............... SKIPPED
[INFO] Renjin Packager .................................... SKIPPED
[INFO] Renjin Maven Plugin ................................ SKIPPED
[INFO] hamcrest ........................................... SKIPPED
[INFO] grDevices .......................................... SKIPPED
[INFO] utils .............................................. SKIPPED
[INFO] graphics ........................................... SKIPPED
[INFO] stats .............................................. SKIPPED
[INFO] tools .............................................. SKIPPED
[INFO] datasets ........................................... SKIPPED
[INFO] methods ............................................ SKIPPED
[INFO] compiler ........................................... SKIPPED
[INFO] Renjin Script Engine ............................... SKIPPED
[INFO] Renjin Test Packages Parent ........................ SKIPPED
[INFO] Dummy Renjin Package Alpha ......................... SKIPPED
[INFO] Dummy Renjin Package Beta .......................... SKIPPED
[INFO] renjin-aether-package-loader ....................... SKIPPED
[INFO] grid ............................................... SKIPPED
[INFO] splines ............................................ SKIPPED
[INFO] parallel ........................................... SKIPPED
[INFO] stats4 ............................................. SKIPPED
[INFO] Renjin Command Line Interface ...................... SKIPPED
[INFO] Renjin AppEngine Support Classes ................... SKIPPED
[INFO] Dummy third party package .......................... SKIPPED
[INFO] Renjin Integration Tests ........................... SKIPPED
[INFO] Dummy third party package with conflicting name .... SKIPPED
[INFO] Dummy CRAN package with periods in the name ........ SKIPPED
[INFO] Test S3 package .................................... SKIPPED
[INFO] Test S4 package .................................... SKIPPED
[INFO] Dummy Renjin Package with Explict source order ..... SKIPPED
[INFO] Dummy Renjin Package with Implicit source order .... SKIPPED
[INFO] Test package with data ............................. SKIPPED
[INFO] Test Package with native code ...................... SKIPPED
[INFO] Test Package with native code and prefix ........... SKIPPED
[INFO] Test Package with native code, not using registration SKIPPED
[INFO] Test Package linking against another package ....... SKIPPED
[INFO] tcltk .............................................. SKIPPED
[INFO] Renjin Studio ...................................... SKIPPED
[INFO] Renjin Standalone Platform-independent distribution  SKIPPED
[INFO] Renjin ............................................. SKIPPED
[INFO] Renjin GNU R Package ............................... SKIPPED
[INFO] Renjin Math Parent ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:19 min
[INFO] Finished at: 2019-03-07T14:48:19+00:00
[INFO] Final Memory: 72M/481M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project renjin-core: There are test failures.
[ERROR]
[ERROR] Please refer to /home/ubuntu/renjin/core/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :renjin-core
Connection to 127.0.0.1 closed.
```

Metin Yazici

unread,
Mar 7, 2019, 12:32:49 PM3/7/19
to Renjin
I describe more about the problem and add a solution that worked for me so that can be a reference for anyone who is dealing with similar issues.

Wrong character encoding causes the problem... As the vagrant ssh starts with the following warning, the issue might be related with [this](https://github.com/Varying-Vagrant-Vagrants/VVV/issues/1507) issue.

```
_____________________________________________________________________
WARNING! Your environment specifies an invalid locale.
 The unknown environment variables are:
   LC_CTYPE=UTF-8 LC_ALL=
 This can affect your user experience significantly, including the
 ability to manage packages. You may install the locales by running:

   sudo apt-get install language-pack-UTF-8
     or
   sudo locale-gen UTF-8

To see all available language packs, run:
   apt-cache search "^language-pack-[a-z][a-z]$"
To disable this message for all users, run:
   sudo touch /var/lib/cloud/instance/locale-check.skip
_____________________________________________________________________
```

First of all, tried to upgrade to the latest Vagrant version (from 2.2.2 to 2.2.4) and updated the `ubuntu/xenial64` box (from '20190221.0.0' to '20190306.0.0'); however, these did not resolve anything.

The **working solution** is to set `ENV["LC_ALL"] = "en_US.UTF-8"` locale setting inside the Vagrantfile; source [here](https://www.vagrantup.com/docs/vagrantfile/tips.html#overwrite-host-locale-in-ssh-session).

So it may occur on machines which locale is not set to `en_US.UTF-8` because host locale environment variables are usually passed to guest.
Reply all
Reply to author
Forward
0 new messages