Jez Higgins

Freelance software grandad
software created
extended or repaired


Follow me on Mastodon
Applications, Libraries, Code
Talks & Presentations

Hire me
Contact

Older posts are available in the archive or through tags.

Feed

Patching Clang for Ubuntu 10.10 Maverick Meerkat

If you're trying to use the Clang C++ compiler on Maverick and you're getting link failures like

 undefined reference to
`std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)
you're just going to have to patch it and build it yourself. It's actually pretty easy, it just takes a few minutes.

  • Check out the LLVM & Clang source and build it as described on the Clang website.
  • Open up ~/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp in your favourite text editor.
  • Add the following at line 627, just under the case for llvm::Triple::Linux
        // Ubuntu 10.10 "Maverick Meerkat" -- gcc-4.4.5
        AddGnuCPlusPlusIncludePaths("/usr/include/c++/4.4",
                                    "i686-linux-gnu", "", "64", triple);
    
  • Build again. It'll be much quicker this time around.
  • Install - sudo make install

With any luck Clang will be patched up in pretty short order, thus rendering this a historical curiosity.


Tagged code, ubuntu, clang, and c++


Jez Higgins

Freelance software grandad
software created
extended or repaired

Follow me on Mastodon
Applications, Libraries, Code
Talks & Presentations

Hire me
Contact

Older posts are available in the archive or through tags.

Feed