git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compilation pb of git-1.7.0.5
@ 2010-04-19  5:59 Yves Caniou
  2010-04-19  6:26 ` Sverre Rabbelier
  0 siblings, 1 reply; 5+ messages in thread
From: Yves Caniou @ 2010-04-19  5:59 UTC (permalink / raw)
  To: git

Dear all,

I tried to install git on a Quad-Core AMD Opteron(tm) Processor 8356, with the 
version 4.1.2 of gcc (Red Hat 4.1.2-14).

After the ./configure --prefix=$HOME/git, the make all gives me

- some warnings like
"fast-import.c: 2622: Warning: 2570, Value assigned to enumeration 
object "type" is different type."

- some errors like
"archive.c: 223: Serious: 4470, Initialization value must be address constant 
expression."
This error appears also on lines 309, 311, etc.

Thank you for any help.

.Yves.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compilation pb of git-1.7.0.5
  2010-04-19  5:59 Compilation pb of git-1.7.0.5 Yves Caniou
@ 2010-04-19  6:26 ` Sverre Rabbelier
  2010-04-19  7:32   ` Yves Caniou
  2010-04-19  8:37   ` Michael J Gruber
  0 siblings, 2 replies; 5+ messages in thread
From: Sverre Rabbelier @ 2010-04-19  6:26 UTC (permalink / raw)
  To: yves.caniou; +Cc: git

Heya,

On Mon, Apr 19, 2010 at 07:59, Yves Caniou <yves.caniou@ens-lyon.fr> wrote:
> After the ./configure --prefix=$HOME/git, the make all gives me

Which revision are you trying to compile? Also, it's probably more
helpful to just post the result of 'make all' verbatim, rather than
snippets.

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compilation pb of git-1.7.0.5
  2010-04-19  6:26 ` Sverre Rabbelier
@ 2010-04-19  7:32   ` Yves Caniou
  2010-04-19  8:37   ` Michael J Gruber
  1 sibling, 0 replies; 5+ messages in thread
From: Yves Caniou @ 2010-04-19  7:32 UTC (permalink / raw)
  To: Sverre Rabbelier; +Cc: git

Le Monday 19 April 2010 08:26:59 Sverre Rabbelier, vous avez écrit :
> Heya,
>
> On Mon, Apr 19, 2010 at 07:59, Yves Caniou <yves.caniou@ens-lyon.fr> wrote:
> > After the ./configure --prefix=$HOME/git, the make all gives me
>
> Which revision are you trying to compile?

I should have recall this in the mail, instead of just let it in the subject: 1.7.0.5

> Also, it's probably more 
> helpful to just post the result of 'make all' verbatim, rather than
> snippets.

Ok. Thanks to wereHamster on IRC, it appears that the compiler that was used for compilation is the Hitachi Cc version 6.2 and not gcc, 
because ./configure detects cc and uses cc instead of gcc.

Here is the output of the make all, made after the ./configure [...]

--------
$>make all
    * new build flags or prefix
    CC fast-import.o
cc: Warning: 100, Unknown option, "-g" option is ignored.
fast-import.c: 2622: Warning: 2570, Value assigned to enumeration object "type" is different type.
fast-import.c: 1776: Warning: 2570, Value assigned to enumeration object "type" is different type.
fast-import.c: 2213: Warning: 2570, Value assigned to enumeration object "type" is different type.
fast-import.c: 2346: Warning: 2570, Value assigned to enumeration object "type" is different type.
    CC abspath.o
cc: Warning: 100, Unknown option, "-g" option is ignored.
    CC advice.o
cc: Warning: 100, Unknown option, "-g" option is ignored.
    CC alias.o
cc: Warning: 100, Unknown option, "-g" option is ignored.
    CC alloc.o
cc: Warning: 100, Unknown option, "-g" option is ignored.
    CC archive.o
cc: Warning: 100, Unknown option, "-g" option is ignored.
archive.c: 223: Serious: 4470, Initialization value must be address constant expression.
archive.c: 309: Serious: 4470, Initialization value must be address constant expression.
archive.c: 311: Serious: 4470, Initialization value must be address constant expression.
archive.c: 313: Serious: 4470, Initialization value must be address constant expression.
archive.c: 315: Serious: 4470, Initialization value must be address constant expression.
archive.c: 316: Serious: 4470, Initialization value must be address constant expression.
archive.c: 317: Serious: 4470, Initialization value must be address constant expression.
archive.c: 318: Serious: 4470, Initialization value must be address constant expression.
archive.c: 319: Serious: 4470, Initialization value must be address constant expression.
archive.c: 320: Serious: 4470, Initialization value must be address constant expression.
archive.c: 321: Serious: 4470, Initialization value must be address constant expression.
archive.c: 322: Serious: 4470, Initialization value must be address constant expression.
archive.c: 323: Serious: 4470, Initialization value must be address constant expression.
archive.c: 324: Serious: 4470, Initialization value must be address constant expression.
archive.c: 325: Serious: 4470, Initialization value must be address constant expression.
archive.c: 326: Serious: 4470, Initialization value must be address constant expression.
archive.c: 329: Serious: 4470, Initialization value must be address constant expression.
archive.c: 332: Serious: 4470, Initialization value must be address constant expression.
archive.c: 334: Serious: 4470, Initialization value must be address constant expression.
make: *** [archive.o] Error 1
------------

Note that the direct compilation with the following command calls gcc, worked and the installation was successful.
$>make prefix=$HOME/git install

Thank you.

.Yves.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compilation pb of git-1.7.0.5
  2010-04-19  6:26 ` Sverre Rabbelier
  2010-04-19  7:32   ` Yves Caniou
@ 2010-04-19  8:37   ` Michael J Gruber
  2010-04-19  8:50     ` Yves Caniou
  1 sibling, 1 reply; 5+ messages in thread
From: Michael J Gruber @ 2010-04-19  8:37 UTC (permalink / raw)
  To: Sverre Rabbelier; +Cc: yves.caniou, git

Sverre Rabbelier venit, vidit, dixit 19.04.2010 08:26:
> Heya,
> 
> On Mon, Apr 19, 2010 at 07:59, Yves Caniou <yves.caniou@ens-lyon.fr> wrote:
>> After the ./configure --prefix=$HOME/git, the make all gives me
> 
> Which revision are you trying to compile? Also, it's probably more
> helpful to just post the result of 'make all' verbatim, rather than
> snippets.

...and try to use make directly rather than configure, which isn't
maintained that well.

I wonder whether we should hide configure somehow. If you see a Makefile
and configure and don't know the project, the natural impulse is to use
configure before make.

Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compilation pb of git-1.7.0.5
  2010-04-19  8:37   ` Michael J Gruber
@ 2010-04-19  8:50     ` Yves Caniou
  0 siblings, 0 replies; 5+ messages in thread
From: Yves Caniou @ 2010-04-19  8:50 UTC (permalink / raw)
  To: Michael J Gruber; +Cc: Sverre Rabbelier, git

Le Monday 19 April 2010 10:37:18 Michael J Gruber, vous avez écrit :
> Sverre Rabbelier venit, vidit, dixit 19.04.2010 08:26:
> > Heya,
> >
> > On Mon, Apr 19, 2010 at 07:59, Yves Caniou <yves.caniou@ens-lyon.fr> 
wrote:
> >> After the ./configure --prefix=$HOME/git, the make all gives me
> >
> > Which revision are you trying to compile? Also, it's probably more
> > helpful to just post the result of 'make all' verbatim, rather than
> > snippets.
>
> ...and try to use make directly rather than configure, which isn't
> maintained that well.

That's what I did, but maybe you didn't saw my mail. It works fine, because Cc 
doesn't overide gcc. So I can install. I don't know if you want to look at 
the errors or not, but if not, maybe adding some info in known issues?

> I wonder whether we should hide configure somehow. If you see a Makefile
> and configure and don't know the project, the natural impulse is to use
> configure before make.
>
> Michael

Indeed, the natural reflex is to make a ./configure --help to have the 
options, and use ./configure. I saw the first lines in the INSTALL file, 
describing "make prefix=" but just made like I'm used to.

Thx.

.Yves.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-19  8:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-19  5:59 Compilation pb of git-1.7.0.5 Yves Caniou
2010-04-19  6:26 ` Sverre Rabbelier
2010-04-19  7:32   ` Yves Caniou
2010-04-19  8:37   ` Michael J Gruber
2010-04-19  8:50     ` Yves Caniou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).