hycdong opened a new issue #900:
URL: https://github.com/apache/incubator-pegasus/issues/900


   ## Bug Report
   Gcc 5.4.0, Cmake 3.13.2
   Use Pegasus master(59dc6bd46805e18f405c3a03ebba5a8a591ce029) and rdsn 
master(2dd67e0885e36f964633c17afc7d91086517dfaf), complie failed, the error 
like following.
   
   ## Complie failed errors
   ```
   Building...
   Scanning dependencies of target pegasus_base
   [  0%] Building CXX object 
base/CMakeFiles/pegasus_base.dir/pegasus_const.cpp.o
   [  1%] Building CXX object 
base/CMakeFiles/pegasus_base.dir/pegasus_utils.cpp.o
   [  2%] Building CXX object base/CMakeFiles/pegasus_base.dir/rrdb_types.cpp.o
   [  2%] Building CXX object 
base/CMakeFiles/pegasus_base.dir/value_schema_manager.cpp.o
   [  3%] Building CXX object 
base/CMakeFiles/pegasus_base.dir/value_schema_v0.cpp.o
   [  4%] Building CXX object 
base/CMakeFiles/pegasus_base.dir/value_schema_v1.cpp.o
   [  4%] Building CXX object 
base/CMakeFiles/pegasus_base.dir/value_schema_v2.cpp.o
   Scanning dependencies of target pegasus_client_impl_objects
   [  5%] Building CXX object 
client_lib/CMakeFiles/pegasus_client_impl_objects.dir/client_factory.cpp.o
   [  5%] Building CXX object 
client_lib/CMakeFiles/pegasus_client_impl_objects.dir/mutation.cpp.o
   [  6%] Building CXX object 
client_lib/CMakeFiles/pegasus_client_impl_objects.dir/pegasus_client_factory_impl.cpp.o
   [  7%] Building CXX object 
client_lib/CMakeFiles/pegasus_client_impl_objects.dir/pegasus_client_impl.cpp.o
   [  7%] Building CXX object 
client_lib/CMakeFiles/pegasus_client_impl_objects.dir/pegasus_scanner_impl.cpp.o
   In file included from 
/home/heyuchen/work/pegasus_github/pegasus/DSN_ROOT/include/dsn/c/api_layer1.h:33:0,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/DSN_ROOT/include/dsn/service_api_c.h:85,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/DSN_ROOT/include/dsn/service_api_cpp.h:38,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/include/rrdb/rrdb_types.h:18,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/include/rrdb/rrdb.client.h:22,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/client_lib/pegasus_client_impl.h:24,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/client_lib/pegasus_client_factory_impl.h:24,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/client_lib/client_factory.cpp:21:
   
/home/heyuchen/work/pegasus_github/pegasus/DSN_ROOT/include/dsn/tool-api/task_tracker.h:
 In member function ‘void dsn::trackable_task::set_tracker(dsn::task_tracker*, 
dsn::task*)’:
   
/home/heyuchen/work/pegasus_github/pegasus/DSN_ROOT/include/dsn/tool-api/task_tracker.h:179:121:
 error: ‘__FILENAME__’ was not declared in this scope
   In file included from 
/home/heyuchen/work/pegasus_github/pegasus/DSN_ROOT/include/dsn/c/api_layer1.h:33:0,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/DSN_ROOT/include/dsn/service_api_c.h:85,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/DSN_ROOT/include/dsn/service_api_cpp.h:38,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/include/rrdb/rrdb_types.h:18,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/include/rrdb/rrdb.client.h:22,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/client_lib/pegasus_client_impl.h:24,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/client_lib/pegasus_client_factory_impl.h:24,
                    from 
/home/heyuchen/work/pegasus_github/pegasus/src/client_lib/client_factory.cpp:21:
   ......
   Makefile:129: recipe for target 'all' failed
   make: *** [all] Error 2
   ERROR: build pegasus failed
   ERROR: build pegasus failed
   ```
   
   ## How to fix it
   I reset commits supporting build on MacOS, and can build succeed in my 
envrioment.
   https://github.com/XiaoMi/rdsn/pull/1034 and #891
   I suggest that we should revert those pull requests, and create a new branch 
called supporting-mac, and merge those pull requests into supporting-mac branch 
not master branch. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to