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

Failed to build. #7

Closed
rmullick opened this issue Jul 19, 2018 · 2 comments
Closed

Failed to build. #7

rmullick opened this issue Jul 19, 2018 · 2 comments

Comments

@rmullick
Copy link

Hello,

I was trying to build the project (dev branch) - using Ubuntu-17.10, clang-4.0, I got the below build error:

[  4%] Building CXX object src/CMakeFiles/cxxabi_objects.dir/cxa_aux_runtime.cpp.o
In file included from /media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/src/cxa_aux_runtime.cpp:13:
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:43:26: error: unknown type name 'size_t'
__cxa_allocate_exception(size_t thrown_size) throw();
                         ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:86:52: error: unknown type name 'uint64_t'
extern _LIBCXXABI_FUNC_VIS int __cxa_guard_acquire(uint64_t *);
                                                   ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:87:53: error: unknown type name 'uint64_t'
extern _LIBCXXABI_FUNC_VIS void __cxa_guard_release(uint64_t *);
                                                    ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:88:51: error: unknown type name 'uint64_t'
extern _LIBCXXABI_FUNC_VIS void __cxa_guard_abort(uint64_t *);
                                                  ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:93:15: error: unknown type name 'size_t'
__cxa_vec_new(size_t element_count, size_t element_size, size_t padding_size,
              ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:93:37: error: unknown type name 'size_t'
__cxa_vec_new(size_t element_count, size_t element_size, size_t padding_size,
                                    ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:93:58: error: unknown type name 'size_t'
__cxa_vec_new(size_t element_count, size_t element_size, size_t padding_size,
                                                         ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:97:16: error: unknown type name 'size_t'
__cxa_vec_new2(size_t element_count, size_t element_size, size_t padding_size,
               ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:97:38: error: unknown type name 'size_t'
__cxa_vec_new2(size_t element_count, size_t element_size, size_t padding_size,
                                     ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:97:59: error: unknown type name 'size_t'
__cxa_vec_new2(size_t element_count, size_t element_size, size_t padding_size,
                                                          ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:99:31: error: unknown type name 'size_t'
               void *(*alloc)(size_t), void (*dealloc)(void *));
                              ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:102:16: error: unknown type name 'size_t'
__cxa_vec_new3(size_t element_count, size_t element_size, size_t padding_size,
               ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:102:38: error: unknown type name 'size_t'
__cxa_vec_new3(size_t element_count, size_t element_size, size_t padding_size,
                                     ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:102:59: error: unknown type name 'size_t'
__cxa_vec_new3(size_t element_count, size_t element_size, size_t padding_size,
                                                          ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:104:31: error: unknown type name 'size_t'
               void *(*alloc)(size_t), void (*dealloc)(void *, size_t));
                              ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:104:64: error: unknown type name 'size_t'
               void *(*alloc)(size_t), void (*dealloc)(void *, size_t));
                                                               ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:107:37: error: unknown type name 'size_t'
__cxa_vec_ctor(void *array_address, size_t element_count, size_t element_size,
                                    ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:107:59: error: unknown type name 'size_t'
__cxa_vec_ctor(void *array_address, size_t element_count, size_t element_size,
                                                          ^
/media/rhm/data/codez/hypervisor/dev/build/cache/libcxxabi/include/cxxabi.h:111:48: error: unknown type name 'size_t'
                                               size_t element_count,
                                               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
src/CMakeFiles/cxxabi_objects.dir/build.make:62: recipe for target 'src/CMakeFiles/cxxabi_objects.dir/cxa_aux_runtime.cpp.o' failed
make[5]: *** [src/CMakeFiles/cxxabi_objects.dir/cxa_aux_runtime.cpp.o] Error 1
CMakeFiles/Makefile2:128: recipe for target 'src/CMakeFiles/cxxabi_objects.dir/all' failed
make[4]: *** [src/CMakeFiles/cxxabi_objects.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/libcxxabi_x86_64-vmm-elf.dir/build.make:112: recipe for target 'depends/libcxxabi/x86_64-vmm-elf/stamp/libcxxabi_x86_64-vmm-elf-build' failed
make[2]: *** [depends/libcxxabi/x86_64-vmm-elf/stamp/libcxxabi_x86_64-vmm-elf-build] Error 2
CMakeFiles/Makefile2:343: recipe for target 'CMakeFiles/libcxxabi_x86_64-vmm-elf.dir/all' failed
make[1]: *** [CMakeFiles/libcxxabi_x86_64-vmm-elf.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

If there's any other information needed, let me know.

Thanks,
Rakib

@rianquinn
Copy link
Member

Dev is not longer supported (I just deleted it). Please use master instead if you are using master on the base hypervisor.

git clone https://github.com/Bareflank/hypervisor
git clone https://github.com/Bareflank/hypervisor_example_cpuidcount.git
mkdir build; cd build
cmake ../hypervisor -DDEFAULT_VMM=example_vmm -DEXTENSION=../hypervisor_example_cpuidcount
make -j<# cores + 1>

I just tested and there were a couple of compile issues so I cleaned them up quick. Everything is working fine now.

Good luck

@rmullick
Copy link
Author

Thanks for the fix. Yes, I also seen issues in master branch but now they are gone.

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

2 participants