Giter VIP home page Giter VIP logo

libcpp-stdmodule-ctime-errors's Introduction

#install xmake
#update it to dev
xmake update -s dev
#compile LLVM from master

xmake f --toolchain=clang --ar=llvm-ar
xmake b -vD
checking for platform ... windows
checking for architecture ... x64
[  0%]: generating.module.deps src\main.cpp
checking for clang-scan-deps ... ok
checking for flags (-fvisibility-inlines-hidden) ... ok
> clang "-fvisibility-inlines-hidden" "-Qunused-arguments" "-m64"
checking for flags (-std=c++23) ... ok
> clang "-std=c++23" "-Qunused-arguments" "-m64"
checking for flags (-stdlib=libc++) ... ok
> clang "-stdlib=libc++" "-Qunused-arguments" "-m64"
checking for flags (-fexperimental-library) ... ok
> clang "-fexperimental-library" "-Qunused-arguments" "-m64"
clang-scan-deps --format=p1689 -- clang -x c++ -c src\main.cpp -o build\.objs\test\windows\x64\release\src\main.cpp.obj -Qunused-arguments -m64 -std=c++23 -Iinclude -fexceptions -fcxx-exceptions -stdlib=libc++ -fexperimental-library
checking for flags (clang_modules_cache_path) ... ok
> clang "-fmodules-cache-path=C:\Users\arthu\AppData\Local\Temp\.xmake\230818" "-Qunused-arguments" "-m64"
[  0%]: generating.module.deps stdmodules\std.cppm
checking for flags (-Wno-reserved-module-identifier) ... ok
> clang "-Wno-reserved-module-identifier" "-Qunused-arguments" "-m64"
clang-scan-deps --format=p1689 -- clang -x c++ -c stdmodules\std.cppm -o build\.objs\stdmodules\windows\x64\release\stdmodules\std.cppm.obj -Qunused-arguments -m64 -std=c++23 -fexceptions -fcxx-exceptions -isystem C:\Dev\llvm\include\c++\v1 -stdlib=libc++ -fexperimental-library -Wno-reserved-module-identifier
checking for flags (clang_module_output) ... ok
> clang "-fmodule-output=" "-Qunused-arguments" "-m64"
[  9%]: compiling.module.release std
clang -c -x c++-module -fmodule-output=build\.gens\stdmodules\windows\x64\release\rules\modules\cache\a3c3afdf\std.pcm -Qunused-arguments -m64 -std=c++23 -fexceptions -fcxx-exceptions -isystem C:\Dev\llvm\include\c++\v1 -stdlib=libc++ -fexperimental-library -Wno-reserved-module-identifier -fmodules-cache-path=build\.gens\stdmodules\windows\x64\release\rules\modules\cache -o build\.objs\stdmodules\windows\x64\release\stdmodules\std.cppm.obj stdmodules\std.cppm
checking for flags (-fdiagnostics-color=always) ... ok
> clang "-fdiagnostics-color=always" "-Qunused-arguments" "-m64"
error: @programdir\modules\private\async\runjobs.lua:256: @programdir\rules\c++\modules\modules_support\clang.lua:300: @programdir\modules\core\tools\gcc.lua:797: In file included from stdmodules\std.cppm:23:
stdmodules/std/ctime.inc:21:14: error: using declaration referring to 'ctime' with internal linkage cannot be exported
   21 |   using std::ctime;
      |              ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:501:41: note: target of using declaration
  501 |         static __inline char* __CRTDECL ctime(
      |                                         ^
In file included from stdmodules\std.cppm:23:
stdmodules/std/ctime.inc:22:14: error: using declaration referring to 'difftime' with internal linkage cannot be exported
   22 |   using std::difftime;
      |              ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:509:42: note: target of using declaration
  509 |         static __inline double __CRTDECL difftime(
      |                                          ^
In file included from stdmodules\std.cppm:23:
stdmodules/std/ctime.inc:23:14: error: using declaration referring to 'gmtime' with internal linkage cannot be exported
   23 |   using std::gmtime;
      |              ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:518:46: note: target of using declaration
  518 |         static __inline struct tm* __CRTDECL gmtime(
      |                                              ^
In file included from stdmodules\std.cppm:23:
stdmodules/std/ctime.inc:24:14: error: using declaration referring to 'localtime' with internal linkage cannot be exported
   24 |   using std::localtime;
      |              ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:525:46: note: target of using declaration
  525 |         static __inline struct tm* __CRTDECL localtime(
      |                                              ^
In file included from stdmodules\std.cppm:23:
stdmodules/std/ctime.inc:25:14: error: using declaration referring to 'mktime' with internal linkage cannot be exported
   25 |   using std::mktime;
      |              ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:541:42: note: target of using declaration
  541 |         static __inline time_t __CRTDECL mktime(
      |                                          ^
In file included from stdmodules\std.cppm:23:
stdmodules/std/ctime.inc:28:14: error: using declaration referring to 'time' with internal linkage cannot be exported
   28 |   using std::time;
      |              ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:548:42: note: target of using declaration
  548 |         static __inline time_t __CRTDECL time(
      |                                          ^
In file included from stdmodules\std.cppm:23:
stdmodules/std/ctime.inc:29:14: error: using declaration referring to 'timespec_get' with internal linkage cannot be exported
   29 |   using std::timespec_get;
      |              ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\time.h:556:39: note: target of using declaration
  556 |         static __inline int __CRTDECL timespec_get(
      |                                       ^
7 errors generated.

libcpp-stdmodule-ctime-errors's People

Contributors

arthapz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.