git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Git.pm: Support for perl/ being built by a different compiler

From
DSDennis Stosberg <dennis@stosberg.net>
Date
Jun 26, 2006, 08:24 UTC
Message-ID
<20060626082428.G52c9608e@leonov.stosberg.net>
In-Reply-To
<7vk676orjy.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> Do things link and work fine if we do not have the GCC specific
> options?

Yes, with this patch I can compile Git with GCC while the Perl module gets built with Sun CC. The result even works.

If the git commands written in Perl will be converted to use Git.pm, Sun CC will become a new dependency for Git on Solaris, unless people build a separate Perl with GCC or manually edit the generated Makefile in the perl subdir to build the module with GCC.

> I would question why the rest of git is not built with Sun CC as
> well if that is the case.

Well, GCC comes along with Solaris on the CDs while Sun CC is a separate product. And usually it's easier to build free software with GCC, because many projects use GCC extensions. Often GCC is the only compiler installed on Solaris machines.

Until the patch series from Florian Forster removed a lot of GCC'isms a few days ago it was not possible to build Git with Sun CC.

Yesterday I could build the next branch with Sun CC 5.8 with a few trivial changes. I will send four patches in reply to this mail.

Junio, please consider the first two patches for inclusion into the next branch. The third patch is on top of Pasky's changes in the pu branch. The fourth patch is a strange workaround for a strange problem of which I think it is an error in Sun's compiler. That one should not make its way into Git, but maybe someone on the list has an idea about the problem.

Regards, Dennis

Previous: Petr BaudisNext: Dennis Stosberg
Message 4 of 19 in “Git.pm: Support for perl/ being built by a different compiler”
  1. Git.pm: Support for perl/ being built by a different compilerPetr Baudis, Jun 25, 2006
  2. Junio C HamanoJun 25, 2006
  3. Petr BaudisJun 25, 2006
  4. Dennis StosbergJun 26, 2006
  5. Solaris needs inclusion of signal.h for signal()Dennis Stosberg, Jun 26, 2006
  6. Fix pkt-line.h to compile with a non-GCC compilerDennis Stosberg, Jun 26, 2006
  7. "test" in Solaris' /bin/sh does not support -eDennis Stosberg, Jun 26, 2006
  8. Junio C HamanoJun 26, 2006
  9. Dennis StosbergJun 26, 2006
  10. Dennis StosbergJun 26, 2006
  11. Junio C HamanoJun 26, 2006
  12. Makefile fix for SolarisDennis Stosberg, Jun 26, 2006
  13. Add possibility to pass CFLAGS and LDFLAGS specific to the perl subdirDennis Stosberg, Jun 26, 2006
  14. Petr BaudisJul 1, 2006
  15. Dennis StosbergJun 26, 2006
  16. Dennis StosbergJun 26, 2006
  17. Thomas GlanzmannJun 26, 2006
  18. Junio C HamanoJun 26, 2006
  19. Dennis StosbergJun 26, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.