bgreen0 / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

[Windows] Gyp Complains of Dependency Cycle #406

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Navigate to <breakpad root>/src/client/windows
2. Run the Gyp command

What is the expected output? What do you see instead?

I expect a Visual Studio solution to be generated.  Instead, I get the 
following error:

Traceback (most recent call last):
  File "C:\Development\Projects\google-gyp\/gyp", line 18, in <module>
    sys.exit(gyp.main(sys.argv[1:]))
  File "C:\Python26\lib\site-packages\gyp\__init__.py", line 445, in main
    options.circular_check)
  File "C:\Python26\lib\site-packages\gyp\__init__.py", line 84, in Load
    depth, generator_input_info, check, circular_check)
  File "C:\Python26\lib\site-packages\gyp\input.py", line 2165, in Load
    VerifyNoGYPFileCircularDependencies(targets)
  File "C:\Python26\lib\site-packages\gyp\input.py", line 1429, in VerifyNoGYPFi
leCircularDependencies
    ' '.join(bad_files)
gyp.input.CircularException: Some files not reachable, cycle in .gyp file depend
ency graph detected involving some or all of: unittests\client_tests.gyp tests\c
rash_generation_app\crash_generation_app.gyp crash_generation\crash_generation.g
yp sender\crash_report_sender.gyp handler\exception_handler.gyp breakpad_client.
gyp

C:\Development\Projects\google-breakpad\src\client\windows>

What version of the product are you using? On what operating system?

breakpad svn revision 712.
gyp svn revision 849.

Original issue reported on code.google.com by bfulg...@gmail.com on 14 Oct 2010 at 6:25

GoogleCodeExporter commented 9 years ago
gyp --no-circular-check /path/to/build/file

refer:http://stackoverflow.com/questions/2925094/how-to-build-google-breakpad

Original comment by pengzuo...@gmail.com on 31 Aug 2012 at 4:04

GoogleCodeExporter commented 9 years ago
Ok, this solved it (despite I really don't know how I could know :D ), but now 
it cannot be built... I'm using MSVC 2005 and get following errors:

1>------ Build started: Project: exception_handler, Configuration: Debug Win32 
------
1>Compiling...
2>------ Build started: Project: crash_generation_server, Configuration: Debug 
Win32 ------
2>Compiling...
1>exception_handler.cc
2>minidump_generator.cc
2>.\minidump_generator.cc(33) : fatal error C1083: Cannot open include file: 
'avrfsdk.h': No such file or directory
2>Build log was saved at 
"file://D:\Programming\breakpad\src\client\windows\Debug\obj\crash_generation_se
rver\BuildLog.htm"
2>crash_generation_server - 1 error(s), 0 warning(s)
1>.\exception_handler.cc(537) : error C2065: 'STATUS_INVALID_PARAMETER' : 
undeclared identifier
1>.\exception_handler.cc(898) : error C2065: 'CancelCallback' : undeclared 
identifier
1>.\exception_handler.cc(898) : error C2051: case expression not constant
1>.\exception_handler.cc(899) : error C2039: 'CheckCancel' : is not a member of 
'_MINIDUMP_CALLBACK_OUTPUT'
1>        C:\Program Files (x86)\Microsoft Visual Studio 
8\Vc\PlatformSDK\include\DbgHelp.h(2609) : see declaration of 
'_MINIDUMP_CALLBACK_OUTPUT'
1>.\exception_handler.cc(900) : error C2039: 'Cancel' : is not a member of 
'_MINIDUMP_CALLBACK_OUTPUT'
1>        C:\Program Files (x86)\Microsoft Visual Studio 
8\Vc\PlatformSDK\include\DbgHelp.h(2609) : see declaration of 
'_MINIDUMP_CALLBACK_OUTPUT'
1>Build log was saved at 
"file://D:\Programming\breakpad\src\client\windows\Debug\obj\exception_handler\B
uildLog.htm"
1>exception_handler - 5 error(s), 0 warning(s)
3>------ Build started: Project: client_tests, Configuration: Debug Win32 ------
4>------ Build started: Project: crash_generation_app, Configuration: Debug 
Win32 ------
3>Compiling...
4>Linking...
3>minidump_test.cc
4>LINK : fatal error LNK1104: cannot open file 
'..\..\debug\lib\exception_handler.lib'
4>Build log was saved at 
"file://D:\Programming\breakpad\src\client\windows\Debug\obj\crash_generation_ap
p\BuildLog.htm"
4>crash_generation_app - 1 error(s), 0 warning(s)
3>.\minidump_test.cc(198) : error C2065: 'MemoryInfoListStream' : undeclared 
identifier
3>.\minidump_test.cc(198) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(199) : error C2065: 'ThreadInfoListStream' : undeclared 
identifier
3>.\minidump_test.cc(199) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(200) : error C2065: 'HandleOperationListStream' : 
undeclared identifier
3>.\minidump_test.cc(200) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(201) : error C2065: 'TokenStream' : undeclared identifier
3>.\minidump_test.cc(201) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(233) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(234) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(235) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(236) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(268) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(269) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(270) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(271) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(322) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(323) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(324) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(325) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(326) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(327) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(328) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>.\minidump_test.cc(329) : error C2512: 'testing::AssertionResult' : no 
appropriate default constructor available
3>exception_handler_test.cc
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cstdio(33) : 
warning C4995: 'gets': name was marked as #pragma deprecated
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cstdio(37) : 
warning C4995: 'sprintf': name was marked as #pragma deprecated
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cstdio(40) : 
warning C4995: 'vsprintf': name was marked as #pragma deprecated
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cstring(20) : 
warning C4995: 'strcat': name was marked as #pragma deprecated
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cstring(21) : 
warning C4995: 'strcpy': name was marked as #pragma deprecated
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cwchar(34) : 
warning C4995: 'swprintf': name was marked as #pragma deprecated
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cwchar(35) : 
warning C4995: 'vswprintf': name was marked as #pragma deprecated
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cwchar(37) : 
warning C4995: 'wcscat': name was marked as #pragma deprecated
3>C:\Program Files (x86)\Microsoft Visual Studio 8\Vc\include\cwchar(39) : 
warning C4995: 'wcscpy': name was marked as #pragma deprecated
3>d:\Programming\breakpad\src\third_party\platformsdk_win7\files\Include\../../.
./../google_breakpad/processor/minidump.h(808) : warning C4244: 'return' : 
conversion from 'const u_int64_t' to 'u_int32_t', possible loss of data
3>.\exception_handler_test.cc(275) : error C2065: 'MemoryInfoListStream' : 
undeclared identifier
3>.\exception_handler_test.cc(275) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(276) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(277) : error C2065: 'ThreadInfoListStream' : 
undeclared identifier
3>.\exception_handler_test.cc(277) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(278) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(279) : error C2065: 'HandleOperationListStream' : 
undeclared identifier
3>.\exception_handler_test.cc(279) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(280) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(281) : error C2065: 'TokenStream' : undeclared 
identifier
3>.\exception_handler_test.cc(281) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(282) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(346) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(347) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(348) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(349) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(350) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(351) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(352) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>.\exception_handler_test.cc(353) : error C2512: 'testing::AssertionResult' : 
no appropriate default constructor available
3>Generating Code...
3>Build log was saved at 
"file://D:\Programming\breakpad\src\client\windows\Debug\obj\client_tests\BuildL
og.htm"
3>client_tests - 44 error(s), 10 warning(s)
========== Build: 0 succeeded, 4 failed, 7 up-to-date, 0 skipped ==========

Original comment by meldapro...@gmail.com on 5 Sep 2012 at 12:23

GoogleCodeExporter commented 9 years ago
There's an unstated build dependency on the Windows Platform SDK (in order to 
get the correct dbghelp.h and avrfsdk.h).

Original comment by d...@s2games.com on 5 Apr 2013 at 5:56