++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
    CMakeFiles/xacc.dir/build.make:62: recipe for target 'CMakeFiles/xacc.dir/XACC.cpp.o' failed
    make[5]: *** [CMakeFiles/xacc.dir/XACC.cpp.o] Error 4
    make[5]: *** Waiting for unfinished jobs....
    CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/xacc.dir/all' failed
    make[4]: *** [CMakeFiles/xacc.dir/all] Error 2
    Makefile:138: recipe for target 'all' failed
    make[3]: *** [all] Error 2
    CMakeFiles/xacc-core.dir/build.make:115: recipe for target 'xacc-core-prefix/src/xacc-core-stamp/xacc-core-build' failed
    make[2]: *** [xacc-core-prefix/src/xacc-core-stamp/xacc-core-build] Error 2
    CMakeFiles/Makefile2:180: recipe for target 'CMakeFiles/xacc-core.dir/all' failed
    make[1]: *** [CMakeFiles/xacc-core.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-d5i52h73-build/setup.py", line 115, in <module>
        zip_safe=False
      File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python3.5/distutils/command/install.py", line 583, in run
        self.run_command('build')
      File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.5/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-d5i52h73-build/setup.py", line 45, in run
        self.build_extension(ext)
      File "/tmp/pip-d5i52h73-build/setup.py", line 82, in build_extension
        cwd=self.build_temp)
      File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j4']' returned non-zero exit status 2
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-d5i52h73-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-p9vm0i_d-record/install-record.txt
 --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-d5i52h73-build/
 
Installing the original way using cmake works but installing the packages using xacc-framework leads to this error: Error - cannot import XACC Python Bindings