Commit Graph

410 Commits

Author SHA1 Message Date
Frederich Munch
0153f63690 Windows: Make sure to export type_info globals. 2016-12-20 12:59:08 +01:00
Axel Naumann
400c6402c9 Use -force_load instead of -all_load.
-(no)all_load is not position sensitive, and -noall_load triggers a warning.
2016-12-20 12:44:09 +01:00
Axel Naumann
43fe0be0a0 From Roman Zulak: Flush stdout less (cling). 2016-12-19 13:59:11 +01:00
Frederich Munch
075f4ffa83 Add cling output streams to cling/Utils/Output.h 2016-12-19 13:59:11 +01:00
Bertrand Bellenot
f98f5a0096 Should fix cling.exp : error LNK2001: unresolved external symbol "char const * const cling::valuePrinterInternal::kEmptyCollection" 2016-12-01 17:14:05 +01:00
Maarten Scholl
0a1bab6bd8 Fixed c++17 version name in kernel file
I encountered the following error and the above change fixed it

Nov 22 22:37:47 thesis jupyter[2811]: [I 22:37:47.646 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8888/
Nov 22 22:37:47 thesis jupyter[2811]: [I 22:37:47.646 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Nov 22 22:38:20 thesis jupyter[2811]: [I 22:38:20.303 NotebookApp] Kernel started: e416bf37-4f24-4aee-8e25-45c6fbbb85e6
Nov 22 22:38:21 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:21 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:23 thesis jupyter[2811]: [I 22:38:23.308 NotebookApp] KernelRestarter: restarting kernel (1/5)
Nov 22 22:38:24 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:24 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:26 thesis jupyter[2811]: [I 22:38:26.326 NotebookApp] KernelRestarter: restarting kernel (2/5)
Nov 22 22:38:27 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:27 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:29 thesis jupyter[2811]: [I 22:38:29.332 NotebookApp] KernelRestarter: restarting kernel (3/5)
Nov 22 22:38:30 thesis jupyter[2811]: [W 22:38:30.348 NotebookApp] Timeout waiting for kernel_info reply from e416bf37-4f24-4aee-8e25-45c6fbbb85e6
Nov 22 22:38:30 thesis jupyter[2811]: [I 22:38:30.365 NotebookApp] New terminal with specified name: 1
Nov 22 22:38:30 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:30 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:32 thesis jupyter[2811]: [I 22:38:32.338 NotebookApp] KernelRestarter: restarting kernel (4/5)
Nov 22 22:38:32 thesis jupyter[2811]: WARNING:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted
Nov 22 22:38:32 thesis jupyter[2811]: [W 22:38:32.664 NotebookApp] Session not found: session_id='19509685-b888-480b-897b-be2cc8fed1cc'
Nov 22 22:38:32 thesis jupyter[2811]: [W 22:38:32.665 NotebookApp] 404 DELETE /api/sessions/19509685-b888-480b-897b-be2cc8fed1cc (192.168.0.24) 3.67ms referer=http://192.168.0.31:8888/notebooks/Untitled.ipynb?kernel_name=cling-c++17
Nov 22 22:38:33 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | Bad config encountered during initialization:
Nov 22 22:38:33 thesis jupyter[2811]: [ClingKernelApp] CRITICAL | The 'std' trait of a ClingKernel instance must be any of ['c++11', 'c++14', 'c++17'], but a value of 'c++1z' <class 'str'> was specified.
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.349 NotebookApp] KernelRestarter: restart failed
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.350 NotebookApp] Kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 died, removing from map.
Nov 22 22:38:35 thesis jupyter[2811]: ERROR:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted failed!
Nov 22 22:38:35 thesis jupyter[2811]: ERROR:root:kernel e416bf37-4f24-4aee-8e25-45c6fbbb85e6 restarted failed!
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.368 NotebookApp] Kernel deleted before session
Nov 22 22:38:35 thesis jupyter[2811]: [W 22:38:35.369 NotebookApp] 410 DELETE /api/sessions/ff344691-8fd6-4207-902e-01c944bdf7ae (192.168.0.24) 2.13ms referer=http://192.168.0.31:8888/notebooks/Untitled.ipynb
2016-11-23 08:59:46 +01:00
erlanger
c5216dd7b8 fix bug with os.readlink and regular files
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
20420081cf support for c++17 (c++1z) in jupyter
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
34460a3907 jupyter C++14/11: missing files in prev commit
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
erlanger
be4ad78245 Support for C++11/C++14 in jupyter
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-22 18:36:13 +01:00
Roman Zulak
1e004e9d3a Fix printing of collections. Make it impossible for a collection with 1 element to match the string of an empty collection. Avoid checking if comma needs to be added in loop. Make an empty tuple print same as empty collection: '{}'.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Axel Naumann
2e7ac15af4 Add missing optimizer libs. 2016-11-15 16:44:32 +01:00
erlanger
293931e1d5 Try APPLE instead of XCODE
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-26 15:10:30 +02:00
erlanger
c262858fb2 XCODE fix for unresolved symbols
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-26 15:10:30 +02:00
erlanger
84b96e5980 Include all symbols from interpreter in jupyter shared lib
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-26 15:10:30 +02:00
Pedro Henriques dos Santos Teixeira
615beb1def Does not ignore IPKernelApp.init_io
In latest jupyter versions this fixes AttributeError 'ClingKernelApp object has no attribute displayhook'
2016-09-22 16:21:01 +02:00
Vassil Vassilev
5431895caa Download the nsis compiler only when we pack cling. 2016-09-17 13:14:53 +02:00
Vassil Vassilev
95f07ec272 Cling standalone cmake builds on Windows require cmake 3.6.2.
We need to export symbols from cling's executable which was not possible until
the accepted in cmake patch by Bertrand.
2016-09-17 12:38:03 +02:00
Roman Zulak
5c8feeeb11 CPT: Fix optional argument being used as string. 2016-09-16 10:27:58 +02:00
Bertrand Bellenot
63514775af Fix problem of tar file creation on Windows (slash vs backslash issue) 2016-08-26 09:44:15 +02:00
Bertrand Bellenot
52839d827f Revert last change 2016-08-25 12:14:21 +02:00
Bertrand Bellenot
ba7c310d93 Try to fix the "WindowsError: [Error 2] The system cannot find the file specified" 2016-08-24 17:44:20 +02:00
Roman Zulak
dda75d5636 CPT: Add 'compiler' argument.
Explicitly passing the compiler from Travis or Appveyor allows it to be printed in the log more apparently.
Can further be extended to mark dependencies when building packages, or even copy C++ headers into install.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
6da7148d77 CPT: Add Build class and initial support for libc++ on Windows.
Build class can handle differences between Windows and Unix CMake.
libc++ on Windows is thoroughly untested.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
d28809327d CPT: Add --current_dev:branch[es] flag to build specific branches.
This makes it easier for contributors to use cling's Travis config while
testing changes they would like to submit.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
5f90efb317 CPT: Add ability to build libc++ with cling.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
7703d89956 CPT: Add --with-cmake-flags to pass explicit flags to CMake.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
2fd045e85f CPT: Disable fancy box printing on OS X, it's breaking Travis now.
Perhaps the file encoding has changed?

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
f3e49bca33 CPT: Run cling showing include paths after build on Travis.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
f7983e7751 Travis: Move logic into local functions.
Run ccache and build from the same block to control the result code.
Set CLING_BUILD_TIMEOUT in timeout. (+1 squashed commit)
Add ability to view / export CCACHE_LOGFILE.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
abbd7814d5 CPT: Only limit cpus if building on Travis.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
a7276f0df0 CPT: Fix Problems with exceptions
Failure in an exec_subprocess call will trigger cleanup,
but cleanup calls exec_subprocess, resulting in recursion.

Possible uninitialized variable in exec_subprocess_check_output.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
eb624b555e CPT: Fix DLLVM_HOST_TRIPLE for Travis on OS X.
CMake thinks that the default output on OS X should be 32 bit.
Not sure if this is related to ccache or the env/virtualization they run.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Frederich Munch
3e65a6fee0 CPT: Fix git log hanging.
git log can hang waiting for stdin unless --no-pager argument is given.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-15 11:54:05 +02:00
Frederich Munch
6e13c66259 When building on Travis, use clone that Travis has already done. Saves some time, and necessary for pull-requests.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-13 19:44:21 +02:00
Vassil Vassilev
6e23bb5f1e Optionally, don't cleanup after build, helps debugging.
Debug file dumps should be done outside cpt.
2016-08-12 15:14:10 +02:00
Vassil Vassilev
ec1a6fec18 Typo. 2016-08-12 09:44:16 +02:00
Vassil Vassilev
c5b99ae797 Make the json findable when we only download and call cpt.py. 2016-08-11 12:30:28 +02:00
Vassil Vassilev
d18e9ecdba We shouldn't force using libcxx. 2016-08-10 19:06:40 +02:00
Vassil Vassilev
d48e229db4 Only import pip if needed.
It requires installing a package on the system.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
5877f3acb2 Revert "Disable llvm's terminal support."
We need this for colored diagnostics.
2016-08-09 12:29:32 +02:00
Vassil Vassilev
0f5ab9641f Disable llvm's terminal support.
We have our own terminal library. Not linking against libs like tinfo and ncurses
makes our binaries more platform independent.
2016-08-09 12:29:32 +02:00
Bertrand Bellenot
1fe0bf1ad0 Enable stack trace & suppress error dialog on Windows.
Suppressing the error dialog on Windows prevent hangs on build nodes. One can also use an environment variable (Cling_GuiOnAssert) to enable/disable the error dialogs.
2016-08-08 12:14:09 +02:00
Vassil Vassilev
fa7e1b69bd Use the tag which is currently building. Keep the assert. 2016-08-07 23:48:58 +02:00
Vassil Vassilev
819708255e Tag can start with letter other than v. 2016-08-07 23:28:45 +02:00
Anirudha Bose
29341720f9 CPT: Use assets from locally cloned cling 2016-08-05 18:14:07 +02:00
Anirudha Bose
97a92f7d5f CPT: Use dmgbuild to generate DMG files 2016-08-05 18:14:07 +02:00
Anirudha Bose
4dfb99bb45 CPT: OSX fixes and better filtering of dist files
The Cling build system can use CPT, instead of directly
reading tools/packaging/dist-files.mk
2016-08-05 18:14:07 +02:00
Vassil Vassilev
6da56fb4e9 Rely on clang on osx. GCC is long gone. 2016-08-05 18:14:07 +02:00
Vassil Vassilev
c36e71769d Fix cmake invocation on osx. 2016-08-05 15:26:37 +02:00