Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 650
    • Issues 650
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 215
    • Merge Requests 215
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #12269

Closed
Open
Opened Jan 04, 2021 by Natanael Copa@ncopaOwner

emscripten-fastcomp 1.39.0 fails to build on ppc64le

[ 64%] Built target clangBasic
[ 64%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Lexer.cpp.o
In file included from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2401:
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp: In member function 'bool clang::Lexer::SkipBlockComment(clang::Token&, const char*, bool&)':
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2481:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
 2481 |              !vec_any_eq(*(const vector unsigned char*)CurPtr, Slashes))
      |                                  ^~~~~~
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2481:28: error: expected primary-expression before 'const'
 2481 |              !vec_any_eq(*(const vector unsigned char*)CurPtr, Slashes))
      |                            ^~~~~
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2481:28: error: expected ')' before 'const'
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2482:21: error: expected ')' before ';' token
 2482 |         CurPtr += 16;
      |                     ^
      |                     )
In file included from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2401:
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2481:15: note: to match this '('
 2481 |              !vec_any_eq(*(const vector unsigned char*)CurPtr, Slashes))
      |               ^~~~~~~~~~
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2482:21: error: expected ')' before ';' token
 2482 |         CurPtr += 16;
      |                     ^
      |                     )
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2480:13: note: to match this '('
 2480 |       while (CurPtr+16 <= BufferEnd &&
      |             ^
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:2476:30: warning: unused variable 'Slashes' [-Wunused-variable]
 2476 |       __vector unsigned char Slashes = {
      |                              ^~~~~~~
In file included from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/include/llvm/ADT/Twine.h:13,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/include/llvm/ADT/Triple.h:13,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/include/clang/Basic/ObjCRuntime.h:19,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/include/clang/Basic/LangOptions.h:20,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/include/clang/Lex/Lexer.h:17,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:14:
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/include/llvm/ADT/SmallVector.h: In instantiation of 'void llvm::SmallVectorTemplateBase<T, true>::push_back(const T&) [with T = std::pair<void*, long unsigned int>]':
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/include/llvm/Support/Allocator.h:247:33:   required from 'void* llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>::Allocate(size_t, size_t) [with AllocatorT = llvm::MallocAllocator; long unsigned int SlabSize = 4096; long unsigned int SizeThreshold = 4096; size_t = long unsigned int]'
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/include/llvm/Support/Allocator.h:452:28:   required from 'void* operator new(size_t, llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>&) [with AllocatorT = llvm::MallocAllocator; long unsigned int SlabSize = 4096; long unsigned int SizeThreshold = 4096; size_t = long unsigned int]'
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/include/clang/Lex/Preprocessor.h:515:58:   required from here
/home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/include/llvm/ADT/SmallVector.h:312:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct std::pair<void*, long unsigned int>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
  312 |     memcpy(this->end(), &Elt, sizeof(T));
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10.2.1/bits/stl_algobase.h:64,
                 from /usr/include/c++/10.2.1/bits/char_traits.h:39,
                 from /usr/include/c++/10.2.1/string:40,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/include/clang/Basic/CommentOptions.h:18,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/include/clang/Basic/LangOptions.h:18,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/include/clang/Lex/Lexer.h:17,
                 from /home/ncopa/aports/community/emscripten-fastcomp/src/emscripten-fastcomp-1.39.0/tools/clang/lib/Lex/Lexer.cpp:14:
/usr/include/c++/10.2.1/bits/stl_pair.h:211:12: note: 'struct std::pair<void*, long unsigned int>' declared here
  211 |     struct pair
      |            ^~~~
make[2]: *** [tools/clang/lib/Lex/CMakeFiles/clangLex.dir/build.make:108: tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Lexer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:12451: tools/clang/lib/Lex/CMakeFiles/clangLex.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/aports#12269