Please help figure out what the problem when I tried build "ninja" for "ClickHouse"
https://clickhouse.yandex/docs/ru/development/build_osx/
SDKs/MacOSX10.15.sdk -D OS_DARWIN -nostdinc++ -MD -MT dbms/CMakeFiles/dbms.dir/src/Storages/LiveView/StorageLiveView.cpp.o -MF dbms/CMakeFiles/dbms.dir/src/Storages/LiveView/StorageLiveView.cpp.o.d -o dbms/CMakeFiles/dbms.dir/src/Storages/LiveView/StorageLiveView.cpp.o -c ../dbms/src/Storages/LiveView/StorageLiveView.cpp
In file included from ../dbms/src/Storages/LiveView/StorageLiveView.cpp:31:
../dbms/src/Storages/LiveView/LiveViewBlockInputStream.h:188:57: error: use of undeclared identifier 'timestamp'
last_event_timestamp_usec = static_cast<UInt64>(timestamp.epochMicroseconds());
^
1 error generated.
[3313/4079] Building CXX object dbms/CMakeFiles/dbms.dir/src/Client/ConnectionPoolWithFailover.cpp.o
ninja: build stopped: subcommand failed.
Also, I created a request here:
https://github.com/ClickHouse/ClickHouse/issues/8638
Related
I am getting this error while creating executable file:
[1/2] clang++ -shared -o ./SampleDll_check.dll #SampleDll_check.dll.rsp
FAILED: SampleDll_check.dll SampleDll_check.lib
clang++ -shared -o ./SampleDll_check.dll #SampleDll_check.dll.rsp
clang++: error: no input files
ninja: build stopped: subcommand failed.
Please provide any hint what is wrong?
Somehow, there is no "Issues" tab available at "https://github.com/apache/thrift" so I will ask question here to see if someone can help me with Apache Thrift installation issue.
I tried to following the instruction of Apache Thrift installation on my AIX7.2 server. ./bootstrap.sh step has been finished without issue. Although there are some fatal errors in ./configure --with-boost=/usr/local step, the last line of config.log file shows configure: exit 0 so I would expect the configure step is ok. My issue is the make step. It failed with the following error:
libtool: compile: g++ -std=c++11 -DHAVE_CONFIG_H -I/usr/local/include -I/usr/include -I./src -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Wall -Wextra -pedantic -g -O2 -MT src/thrift/TApplicationException.lo -MD -MP -MF src/thrift/.deps/TApplicationException.Tpo -c src/thrift/TApplicationException.cpp -fPIC -DPIC -o src/thrift/.libs/TApplicationException.o
In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/ext/string_conversions.h:41,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/bits/basic_string.h:6400,
from /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/string:52,
from ./src/thrift/Thrift.h:37,
from ./src/thrift/TApplicationException.h:23,
from src/thrift/TApplicationException.cpp:20:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/cstdlib:151:11: error: '::malloc' has not been declared
using ::malloc;
^~~~~~
/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/cstdlib:164:11: error: '::realloc' has not been declared
using ::realloc;
^~~~~~~
As far as I can see, line 151 & line 164 in /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include/c++/cstdlib have using ::malloc; and using ::realloc; along with lots of other using statements. Below is copied from line 151 to line 164.
using ::malloc;
#ifdef _GLIBCXX_HAVE_MBSTATE_T
using ::mblen;
using ::mbstowcs;
using ::mbtowc;
#endif // _GLIBCXX_HAVE_MBSTATE_T
using ::qsort;
#if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_QUICK_EXIT
using ::quick_exit;
# endif
#endif
using ::rand;
using ::realloc;
What's wrong with it and how to fix it?
Thanks.
I am trying to build an executable file for Ubuntu machine for v8.
The following is the command executed :
g++ -g -ggdb -o Engine -lm *.o -Wl,--start-group /home/atdesk-83/v8/out/native/obj.target/{tools/gyp/libv8_{base,libbase,snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a -Wl,--end-group -lrt -pthread
I am receiving the error :
/home/atdesk-83/v8/out/native/obj.target/tools/gyp/libv8_base.a: error
adding symbols: Malformed archive collect2: error: ld returned 1 exit
status
Can anyone help to solve this?
I tried to build zlib with cmake and clang (8.0) on Windows 64. I did these steps:
mkdir build.clang
cd build.clang
call "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake -E env LDFLAGS="-fuse-ld=lld" cmake -H. -G Ninja ^
-DCMAKE_C_COMPILER:PATH="C:\Program Files\LLVM\bin\clang-cl.exe" ^
-DCMAKE_C_COMPILER_ID="Clang" ^
-DCMAKE_AR="c:\Program Files\LLVM\bin\llvm-ar.exe" ^
-DCMAKE_SYSTEM_NAME="Generic" ..
Configuration run fine (excluding claiming it is not possible to build share libs, but that is not the issue at the moment):
-- The C compiler identification is Clang
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang-cl.exe
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang-cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - done CMake Warning (dev) at CMakeLists.txt:186 (add_library): ADD_LIBRARY called with SHARED option but the target platform does not support dynamic linking. Building a STATIC library instead. This may lead to problems. This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: F:/Project-tests/clang_lept/zlib-1.2.11/build.clang
However build failed:
cmake --build . --config Release
[1/36] Building C object CMakeFiles/zlib.dir/crc32.obj
FAILED: CMakeFiles/zlib.dir/crc32.obj
C:\PROGRA~1\LLVM\bin\clang-cl.exe -DNO_FSEEKO -I. -I../ -MD -MT CMakeFiles/zlib.dir/crc32.obj -MF CMakeFiles\zlib.dir\crc32.obj.d -o CMakeFiles/zlib.dir/crc32.obj -c ../crc32.c
clang-cl: warning: unknown argument ignored in clang-cl: '-MF' [-Wunknown-argument]
clang-cl: error: no such file or directory: 'CMakeFiles/zlib.dir/crc32.obj'
clang-cl: error: no such file or directory: 'CMakeFiles\zlib.dir\crc32.obj.d'
[2/36] Building C object CMakeFiles/zlib.dir/gzread.obj
FAILED: CMakeFiles/zlib.dir/gzread.obj
C:\PROGRA~1\LLVM\bin\clang-cl.exe -DNO_FSEEKO -I. -I../ -MD -MT CMakeFiles/zlib.dir/gzread.obj -MF CMakeFiles\zlib.dir\gzread.obj.d -o CMakeFiles/zlib.dir/gzread.obj -c ../gzread.c
clang-cl: warning: unknown argument ignored in clang-cl: '-MF' [-Wunknown-argument]
clang-cl: error: no such file or directory: 'CMakeFiles/zlib.dir/gzread.obj'
clang-cl: error: no such file or directory: 'CMakeFiles\zlib.dir\gzread.obj.d'
[3/36] Building C object CMakeFiles/zlib.dir/compress.obj
FAILED: CMakeFiles/zlib.dir/compress.obj
C:\PROGRA~1\LLVM\bin\clang-cl.exe -DNO_FSEEKO -I. -I../ -MD -MT CMakeFiles/zlib.dir/compress.obj -MF CMakeFiles\zlib.dir\compress.obj.d -o CMakeFiles/zlib.dir/compress.obj -c ../compress.c
clang-cl: warning: unknown argument ignored in clang-cl: '-MF' [-Wunknown-argument]
clang-cl: error: no such file or directory: 'CMakeFiles/zlib.dir/compress.obj'
clang-cl: error: no such file or directory: 'CMakeFiles\zlib.dir\compress.obj.d'
[4/36] Building C object CMakeFiles/zlib.dir/adler32.obj
FAILED: CMakeFiles/zlib.dir/adler32.obj
C:\PROGRA~1\LLVM\bin\clang-cl.exe -DNO_FSEEKO -I. -I../ -MD -MT CMakeFiles/zlib.dir/adler32.obj -MF CMakeFiles\zlib.dir\adler32.obj.d -o CMakeFiles/zlib.dir/adler32.obj -c ../adler32.c
clang-cl: warning: unknown argument ignored in clang-cl: '-MF' [-Wunknown-argument]
clang-cl: error: no such file or directory: 'CMakeFiles/zlib.dir/adler32.obj'
clang-cl: error: no such file or directory: 'CMakeFiles\zlib.dir\adler32.obj.d'
[5/36] Building C object CMakeFiles/zlib.dir/gzclose.obj
FAILED: CMakeFiles/zlib.dir/gzclose.obj
C:\PROGRA~1\LLVM\bin\clang-cl.exe -DNO_FSEEKO -I. -I../ -MD -MT CMakeFiles/zlib.dir/gzclose.obj -MF CMakeFiles\zlib.dir\gzclose.obj.d -o CMakeFiles/zlib.dir/gzclose.obj -c ../gzclose.c
clang-cl: warning: unknown argument ignored in clang-cl: '-MF' [-Wunknown-argument]
clang-cl: error: no such file or directory: 'CMakeFiles/zlib.dir/gzclose.obj'
clang-cl: error: no such file or directory: 'CMakeFiles\zlib.dir\gzclose.obj.d'
[6/36] Building C object CMakeFiles/zlib.dir/gzlib.obj
FAILED: CMakeFiles/zlib.dir/gzlib.obj
C:\PROGRA~1\LLVM\bin\clang-cl.exe -DNO_FSEEKO -I. -I../ -MD -MT CMakeFiles/zlib.dir/gzlib.obj -MF CMakeFiles\zlib.dir\gzlib.obj.d -o CMakeFiles/zlib.dir/gzlib.obj -c ../gzlib.c
clang-cl: warning: unknown argument ignored in clang-cl: '-MF' [-Wunknown-argument]
clang-cl: error: no such file or directory: 'CMakeFiles/zlib.dir/gzlib.obj'
clang-cl: error: no such file or directory: 'CMakeFiles\zlib.dir\gzlib.obj.d'
ninja: build stopped: subcommand failed.
When I tried to use GCC compatibility of clang - build failed too, but during linking process...
PS: build with VS 2017 (cmake .. -G "Visual Studio 15 2017 Win64") works without problem...
You need to set a few more environment variables.
set CC=clang-cl
set CXX=clang-cl
set CFLAGS=-m64 -fmsc-version=<your vs version>
set CXXFLAGS=-m64 -fmsc-version=<your vs version>
or pass them in your cmake call.
So it looks like "less is more" ;-) . Here are steps to build zlib with ninja, clang and cmake (must be run as admin for installation):
set CC=clang-cl
set CFLAGS=-m64 -fmsc-version=1915
call "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX="C:\Program Files\zlib"
cmake --build . --config Release --target install
cmake --build . --config Debug --target install
I need to specify CMAKE_INSTALL_PREFIX, otherwise cmake will install 64bit zlib to "C:/Program Files (x86)"
I am watching this video to install git using Homebrew. I already got Homebrew installed. The problem i have is installing git using Homebrew. I typed brew install git and have certain error message.
Error msg:
./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h
/usr/bin/xcrun clang -o hex.o -c -MF ./.depend/hex.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM hex.c
/usr/bin/xcrun clang -o ident.o -c -MF ./.depend/ident.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM ident.c
/usr/bin/xcrun clang -o kwset.o -c -MF ./.depend/kwset.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM kwset.c
In file included from ident.c:8:
In file included from ./cache.h:4:
./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found
#include <unistd.h>
^
In file included from hex.c:1:
In file included from ./cache.h:4:
./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found
#include <unistd.h>
^
In file included from kwset.c:37:
In file included from ./cache.h:4:
./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found
#include <unistd.h>
^
1 error generated.
make: *** [hex.o] Error 1
1 error generated.
make: *** Waiting for unfinished jobs....
make: *** [ident.o] Error 1
1 error generated.
make: *** [kwset.o] Error 1
==> Build Environment
CPU: quad-core 64-bit sandybridge
MacOS: 10.7.4-x86_64
Xcode: 4.3.2
CC: /usr/bin/xcrun clang => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CXX: /usr/bin/xcrun clang++ => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
LD: /usr/bin/xcrun clang => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j4
Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.10.3 CC=/usr/bin/xcrun\ clang CFLAGS=-Os\ -w\ -pipe\ -march=native\ -Qunused-arguments LDFLAGS= install (git.rb:49)
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/8643
https://github.com/mxcl/homebrew/issues/9023
https://github.com/mxcl/homebrew/issues/9618
https://github.com/mxcl/homebrew/issues/10544
https://github.com/mxcl/homebrew/issues/11481
https://github.com/mxcl/homebrew/issues/12325
https://github.com/mxcl/homebrew/issues/12344
https://github.com/mxcl/homebrew/issues/12400
https://github.com/mxcl/homebrew/issues/12478
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/reporting-bugs
How do i solve this error? Need some help
You must install the command-line tools through Xcode to get the needed headers.
I suggest you to download it. Also, if you use github, I suggest you to just read this page. One year ago I started in this way.