folly icon indicating copy to clipboard operation
folly copied to clipboard

Building Error:No clock_gettime(3) compatibility wrapper available for this platform.

Open Ariellink opened this issue 3 years ago • 4 comments
trafficstars

Env: :

~/folly> $ uname -r
5.15.68.1-microsoft-standard-WSL2
:~/folly> $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

Error:

[265/897] Building CXX object CMakeFiles/folly_base.dir/folly/portability/Time.cpp.o
FAILED: CMakeFiles/folly_base.dir/folly/portability/Time.cpp.o 
/usr/bin/clang++ -DBOOST_ALL_NO_LIB -DFMT_LOCALE -DFOLLY_XLOG_STRIP_PREFIXES=\"/home/cxi/folly:/tmp/fbcode_builder_getdeps-ZhomeZcxiZfollyZbuildZfbcode_builder/build/folly\" -DGFLAGS_IS_A_DLL=0 -D_GNU_SOURCE -D_REENTRANT -I/home/cxi/folly -I/tmp/fbcode_builder_getdeps-ZhomeZcxiZfollyZbuildZfbcode_builder/build/folly -I/tmp/fbcode_builder_getdeps-ZhomeZcxiZfollyZbuildZfbcode_builder/installed/fmt-aPKWD6aLQX0TBRLr_y0LAa2k_TiKuSU3QM_jqZ-gpo4/include -O2 -g -DNDEBUG -g -std=gnu++1z -finput-charset=UTF-8 -fsigned-char -Wall -Wno-deprecated -Wno-deprecated-declarations -Wno-sign-compare -Wno-unused -Wuninitialized -Wunused-label -Wunused-result -Wno-noexcept-type -Wno-nullability-completeness -Wno-inconsistent-missing-override -faligned-new -fopenmp -std=gnu++17 -MD -MT CMakeFiles/folly_base.dir/folly/portability/Time.cpp.o -MF CMakeFiles/folly_base.dir/folly/portability/Time.cpp.o.d -o CMakeFiles/folly_base.dir/folly/portability/Time.cpp.o -c /home/cxi/folly/folly/portability/Time.cpp
/home/cxi/folly/folly/portability/Time.cpp:278:2: error: No clock_gettime(3) compatibility wrapper available for this platform.
#error No clock_gettime(3) compatibility wrapper available for this platform.
 ^
1 error generated.

[270/897] Building CXX object CMakeFiles/immediate_file_writer_test.dir/folly/logging/test/ImmediateFileWriterTest.cpp.o
ninja: build stopped: subcommand failed.
Command '['/usr/local/bin/cmake', '--build', '/tmp/fbcode_builder_getdeps-ZhomeZcxiZfollyZbuildZfbcode_builder/build/folly', '--target', 'install', '--config', 'Release', '-j', '6']' returned non-zero exit status 1.

!! Failed

Ariellink avatar Oct 28 '22 08:10 Ariellink

I also meet the error. Any solutions ? Is it not possible to use folly on WSL2 ?

hyperbolic-c avatar Apr 11 '23 07:04 hyperbolic-c

No. It is the same error in a real Ubuntu VM.

Ariellink avatar Apr 11 '23 09:04 Ariellink

Sadly. And the issue nobody to fix. what a pity...

---- Replied Message ---- | From | @.> | | Date | 04/11/2023 17:28 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [facebook/folly] Building Error:No clock_gettime(3) compatibility wrapper available for this platform. (Issue #1882) |

No. It is the same error in a real Ubuntu VM.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

hyperbolic-c avatar Apr 11 '23 09:04 hyperbolic-c

@Ariellink oh god... Change gcc from 9.4 to 10 then fixed !!!!!

hyperbolic-c avatar Apr 11 '23 16:04 hyperbolic-c