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

TableGen fails to Compile #70

Closed
dslm4515 opened this issue Dec 23, 2022 · 1 comment
Closed

TableGen fails to Compile #70

dslm4515 opened this issue Dec 23, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dslm4515
Copy link
Owner

Tablegen fails to compile:

FAILED: utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenSchedule.cpp.o 
/cgnutools/bin/x86_64-cmlfs-linux-musl-g++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/mnt/cmlfs/sources/llvm-project-15.0.5.src/build/utils/TableGen -I/mnt/cmlfs/sources/llvm-project-15.0.5.src/llvm/utils/TableGen -I/mnt/cmlfs/sources/llvm-project-15.0.5.src/build/include -I/mnt/cmlfs/sources/llvm-project-15.0.5.src/llvm/include -nostdinc++ -nodefaultlibs -isystem /cgnutools/include/c++/v1 -L/cgnutools/lib -Wl,-rpath,/cgnutools/lib -lc++ -lc++abi -lm -lc -lgcc_s -lgcc  -g -g1 -Wl,--as-needed -lexecinfo -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++14 -MD -MT utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenSchedule.cpp.o -MF utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenSchedule.cpp.o.d -o utils/TableGen/CMakeFiles/llvm-tblgen.dir/CodeGenSchedule.cpp.o -c /mnt/cmlfs/sources/llvm-project-15.0.5.src/llvm/utils/TableGen/CodeGenSchedule.cpp
In file included from /cgnutools/include/c++/v1/__functional/invoke.h:17,
                 from /cgnutools/include/c++/v1/type_traits:421,
                 from /cgnutools/include/c++/v1/limits:107,
                 from /cgnutools/include/c++/v1/math.h:309,
                 from /cgnutools/include/c++/v1/cmath:309,
                 from /mnt/cmlfs/sources/llvm-project-15.0.5.src/llvm/include/llvm/Support/MathExtras.h:19,
                 from /mnt/cmlfs/sources/llvm-project-15.0.5.src/llvm/include/llvm/ADT/APInt.h:19,
                 from /mnt/cmlfs/sources/llvm-project-15.0.5.src/llvm/utils/TableGen/CodeGenSchedule.h:17,
                 from /mnt/cmlfs/sources/llvm-project-15.0.5.src/llvm/utils/TableGen/CodeGenSchedule.cpp:14:
/cgnutools/include/c++/v1/__type_traits/decay.h: In instantiation of 'struct std::__1::__decay<const llvm::APInt&, true>':
/cgnutools/include/c++/v1/__type_traits/decay.h:56:89:   required from 'struct std::__1::decay<const llvm::APInt&&>'
/cgnutools/include/c++/v1/__utility/pair.h:132:16:   required by substitution of 'template<class _Tuple, typename std::__1::enable_if<typename std::__1::conditional<(std::__1::__tuple_like_with_size<_Tuple, 2, typename std::__1::remove_cv<typename std::__1::remove_reference<_Tp>::type>::type>::value && (! std::__1::is_same<typename std::__1::decay<_Tp>::type, std::__1::pair<const llvm::Record*, llvm::OpcodeInfo> >::value)), std::__1::pair<const llvm::Record*, llvm::OpcodeInfo>::_CheckTupleLikeConstructor, std::__1::__check_tuple_constructor_fail>::type::__enable_implicit<_Tuple>(), void>::type* <anonymous> > constexpr std::__1::pair<const llvm::Record*, llvm::OpcodeInfo>::pair(_Tuple&&) [with _Tuple = const llvm::APInt&&; typename std::__1::enable_if<typename std::__1::conditional<(std::__1::__tuple_like_with_size<_Tuple, 2, typename std::__1::remove_cv<typename std::__1::remove_reference<_Tp>::type>::type>::value && (! std::__1::is_same<typename std::__1::decay<_Tp>::type, std::__1::pair<const llvm::Record*, llvm::OpcodeInfo> >::value)), std::__1::pair<const llvm::Record*, llvm::OpcodeInfo>::_CheckTupleLikeConstructor, std::__1::__check_tuple_constructor_fail>::type::__enable_implicit<_Tuple>(), void>::type* <anonymous> = <missing>]'
/mnt/cmlfs/sources/llvm-project-15.0.5.src/llvm/utils/TableGen/CodeGenSchedule.cpp:372:69:   required from here
/cgnutools/include/c++/v1/__type_traits/decay.h:47:30: error: forming pointer to reference type 'std::__1::remove_extent<const llvm::APInt&>::type' {aka 'const llvm::APInt&'}
   47 |                      >::type type;
      |                              ^~~~
ninja: build stopped: subcommand failed.

This will cause lld, 'clang', and `libclang' to fail to compile (dependency)

@dslm4515 dslm4515 self-assigned this Dec 23, 2022
@dslm4515 dslm4515 added the bug Something isn't working label Dec 23, 2022
@dslm4515
Copy link
Owner Author

Changing method of building LLVM fixed this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant