Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake error in win32 #4

Open
nicolas-f opened this issue Oct 21, 2016 · 12 comments
Open

CMake error in win32 #4

nicolas-f opened this issue Oct 21, 2016 · 12 comments

Comments

@nicolas-f
Copy link

Hi,

I have this error in the CMake script:

CMake Error at CMakeLists.txt:30 (ide_group_sources):
  Unknown CMake command "ide_group_sources".

Can't find any definition of the ide_group_sources method

Thanks

@nicolas-f
Copy link
Author

This is in WIN32 env, windows 7 64 bits

@robertknight
Copy link
Contributor

This looks like a mistake where a reference to an internal Mendeley Desktop helper macro was added to the repository. The code for the ide_group_sources macro is just:

macro(ide_group_sources SOURCE_FILES)
    source_group("Sources" FILES ${SOURCE_FILES})
endmacro()

@nicolas-f
Copy link
Author

Hi,

Thanks, nice. I will do a pull request.

The unit test does not succeed here (os:OpenSuse).

nicolas@linux:~/github/breakpad/mendeley> make test ARGS="-V"
Running tests...
UpdateCTestConfiguration  from :/home/nicolas/github/breakpad/mendeley/DartConfiguration.tcl
UpdateCTestConfiguration  from :/home/nicolas/github/breakpad/mendeley/DartConfiguration.tcl
Test project /home/nicolas/github/breakpad/mendeley
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: stacktrace_test

1: Test command: /usr/bin/python "/home/nicolas/github/breakpad/mendeley/test/stacktrace_test.py" "WORKING_DIRECTORY" "/home/nicolas/github/breakpad/mendeley/test"
1: Test timeout computed to be: 9.99988e+06
1: ./buggy_app, section '.eh_frame': the call frame entry at offset 0x18 sets the rule for register '.ra' to 'undefined', but the Breakpad symbol file format cannot express this
1: ./buggy_app, section '.eh_frame': the call frame entry at offset 0x48 uses a DWARF expression to describe how to recover register '.cfa',  but this translator cannot yet translate DWARF expressions to Breakpad postfix expressions
1: Crashing function was , expected aBuggyFunction
1/1 Test #1: stacktrace_test ..................***Failed    0.08 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.08 sec

The following tests FAILED:
          1 - stacktrace_test (Failed)
Errors while running CTest
Makefile:61: recipe for target 'test' failed
make: *** [test] Error 8

Do you thinks about using travis to test this build ?

@nicolas-f
Copy link
Author

I think you should add a git submodule to https://chromium.googlesource.com/breakpad/breakpad and use the last version, because it works with an updated version.

@ashar02
Copy link

ashar02 commented Jan 15, 2017

I am facing same problem. Is there any solution to compile this code on Windows?

@nicolas-f
Copy link
Author

I've forked original repo and using Mendeley cmake code here:
https://github.com/nicolas-f/breakpad

I'm trying to also integrate breakpad with wxwidgets here
https://github.com/nicolas-f/wxbreakpad

@ashar02
Copy link

ashar02 commented Jan 16, 2017

Thanks @nicolas-f, let me check your repo on all platforms (Mac, Windows, Linux) and let you know if I face any problem in it.

@ashar02
Copy link

ashar02 commented Jan 16, 2017

@nicolas-f
Its good move that you are using a fork of google's repo. So you will get benefit of all the efforts going on by google. I first started to compile on Mac using your repo.

But I am facing this problem:

[ 45%] Linking CXX executable dump_syms
Undefined symbols for architecture x86_64:
"dwarf2reader::ElfReader::GetSectionName(int)", referenced from:
dwarf2reader::DwpReader::ReadDebugSectionsForCU(unsigned long long, std::__1::map<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::pair<unsigned char const*, unsigned long long>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const, std::__1::pair<unsigned char const*, unsigned long long> > > >) in dwarf2reader.cc.o
"dwarf2reader::ElfReader::GetSectionByName(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, unsigned long
)", referenced from:
dwarf2reader::DwpReader::Initialize() in dwarf2reader.cc.o
dwarf2reader::CompilationUnit::ReadDebugSectionsFromDwo(dwarf2reader::ElfReader*, std::__1::map<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::pair<unsigned char const*, unsigned long long>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const, std::__1::pair<unsigned char const*, unsigned long long> > > >) in dwarf2reader.cc.o
"dwarf2reader::ElfReader::GetSectionByIndex(int, unsigned long
)", referenced from:
dwarf2reader::DwpReader::ReadDebugSectionsForCU(unsigned long long, std::__1::map<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::pair<unsigned char const*, unsigned long long>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const, std::__1::pair<unsigned char const*, unsigned long long> > > >) in dwarf2reader.cc.o
"dwarf2reader::ElfReader::ElfReader(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)", referenced from:
dwarf2reader::CompilationUnit::ProcessSplitDwarf() in dwarf2reader.cc.o
"dwarf2reader::ElfReader::~ElfReader()", referenced from:
dwarf2reader::CompilationUnit::ProcessSplitDwarf() in dwarf2reader.cc.o
dwarf2reader::DwpReader::~DwpReader() in dwarf2reader.cc.o
"google_breakpad::BreakpadGetArchInfoFromName(char const
)", referenced from:
google_breakpad::DumpSymbols::SetArchitecture(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in dump_syms.cc.o
SetupOptions(int, char const**, Options*) in dump_syms_tool.cc.o
"google_breakpad::BreakpadGetArchInfoFromCpuType(int, int)", referenced from:
google_breakpad::DumpSymbols::CreateEmptyModule(google_breakpad::scoped_ptr<google_breakpad::Module>&) in dump_syms.cc.o
google_breakpad::DumpSymbols::ReadCFI(google_breakpad::Module*, google_breakpad::mach_o::Reader const&, google_breakpad::mach_o::Section const&, bool) const in dump_syms.cc.o
Start(Options const&) in dump_syms_tool.cc.o
"dwarf2reader::ElfReader::IsElf32File() const", referenced from:
dwarf2reader::GetElfWidth(dwarf2reader::ElfReader const&) in dwarf2reader.cc.o
"dwarf2reader::ElfReader::IsElf64File() const", referenced from:
dwarf2reader::GetElfWidth(dwarf2reader::ElfReader const&) in dwarf2reader.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [dump_syms] Error 1
make[1]: *** [CMakeFiles/dump_syms.dir/all] Error 2
make: *** [all] Error 2

Seems like that some library is missing in linking phase.

@ashar02
Copy link

ashar02 commented Jan 16, 2017

I first started with Mac. I faced few problem and fix the issues. Please find attach is the fixed version of cmake file.
CMakeLists.txt

Now moving to ubuntu to test it.

@ashar02
Copy link

ashar02 commented Jan 16, 2017

@nicolas-f
On ubuntu its giving me lot of errors like:

  • nullptr was not undeclared
  • constexpr does not name a type
    etc. any solution of it?

@nicolas-f
Copy link
Author

@ashar02 You must compile with c++11 support .http://en.cppreference.com/w/cpp/language/nullptr

nmoinvaz added a commit to snxd/breakpad that referenced this issue Jan 31, 2019
@nmoinvaz
Copy link

I have updated CMakeLists.txt and compiled against the latest google breakpad repository. It includes additional support for Xcode 10. And I updated disasm and minidump_stackwalk to compile on Windows.

https://github.com/nmoinvaz/breakpad

nmoinvaz added a commit to snxd/breakpad that referenced this issue May 21, 2021
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jul 26, 2021
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jul 27, 2021
nmoinvaz added a commit to snxd/breakpad that referenced this issue Nov 30, 2021
nmoinvaz added a commit to snxd/breakpad that referenced this issue Nov 30, 2021
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 17, 2021
nmoinvaz added a commit to snxd/breakpad that referenced this issue Feb 8, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Feb 15, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Mar 29, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Apr 9, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Apr 20, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jun 16, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jun 16, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jun 16, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Nov 28, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 1, 2022
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jun 6, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 19, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 19, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 19, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 19, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 19, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 19, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 20, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Dec 29, 2023
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jan 3, 2024
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jan 3, 2024
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jan 5, 2024
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jul 24, 2024
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jul 24, 2024
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jul 25, 2024
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jul 25, 2024
nmoinvaz added a commit to snxd/breakpad that referenced this issue Jul 25, 2024
sergio-nsk pushed a commit to snxd/breakpad that referenced this issue Jul 31, 2024
nmoinvaz added a commit to snxd/breakpad that referenced this issue Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants