darcs

Issue 974 Don't use -g for both compiling and linking

Title Don't use -g for both compiling and linking
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, iain, kowey, thorkilnaur, tommy
Assigned To iain
Topics Devel

Created on 2008-07-28.03:11:24 by iain, last changed 2009-08-27.14:22:42 by admin.

Messages
msg5273 (view) Author: iain Date: 2008-07-28.03:11:12
Hi,

On Ubuntu 8.10 with binutils trunk snapshot from 20080707, Darcs fails
to build due to errors with the flags passed to gcc for compilation and
linking, specifically that -g is passed at both phases. Upstream bug at
[0].  I'm not sure whether this is a problem with darcs's build system
or with GHC, however.

A buildlog for darcs-2.0.0 (same error occurs with .2) can be found at [1].

I'd be grateful if anyone could point me to the right place to make this
change, or let me know if it is indeed a GHC problem and out of darcs's
control - this stuff is a bit foreign to me.

Thanks all,
Iain

[0] http://sourceware.org/bugzilla/show_bug.cgi?id=6656
[1]
http://launchpadlibrarian.net/15404312/buildlog_ubuntu-intrepid-i386.darcs_2.0.0-5~ppa0_FAILEDTOBUILD.txt.gz
msg5276 (view) Author: kowey Date: 2008-07-28.10:10:19
I'm afraid I do not know what to suggest, or who to send you to.

I do not see a -g in my autoconf.mk (Ubuntu 8.04), do you?  I suppose the right
place to make this sort of change would be in configure.ac (or maybe in
autoconf.mk.in?)

Ian (Lynagh): is this something I could ask you to comment on?

Iain (Lane): if it helps, there is also the GHC trac on
http://hackage.haskell.org/trac/ghc
msg5277 (view) Author: igloo Date: 2008-07-28.16:25:18
That build log hides the GHC commandline, so I've got no idea what's going on.


Thanks
Ian
msg5278 (view) Author: kowey Date: 2008-07-28.16:31:49
Iain: could you try
  make VERBOSE=1

so that Ian could have an idea what is going on?
msg5280 (view) Author: iain Date: 2008-07-28.17:39:31
Eric Kow wrote:
> Eric Kow <eric.kow@gmail.com> added the comment:
> 
> Iain: could you try
>   make VERBOSE=1
> 
> so that Ian could have an idea what is going on?
> 

Certainly. I've uploaded a new buildlog to [0].

HTH, Iain

[0] http://orangesquash.org.uk/~laney/ftbfs_darcs
msg5281 (view) Author: igloo Date: 2008-07-28.17:47:39
OK, so darcs is passing both -optc-g and -opta-g (twice each, in fact) to GHC.
So it looks like the problem's coming from darcs' build system.

Thanks
Ian
msg5286 (view) Author: iain Date: 2008-08-05.21:45:32
Ian Lynagh wrote:
> Ian Lynagh <igloo@earth.li> added the comment:
> 
> OK, so darcs is passing both -optc-g and -opta-g (twice each, in fact) to GHC.
> So it looks like the problem's coming from darcs' build system.
> 
> Thanks
> Ian
> 
> ----------
> nosy:  -iain
> 

Regardless, this problem has now been fixed by binutils upstream[0]. It
might still be a good idea for darcs to play nice too, though.

Thanks,
Iain

[0] http://sourceware.org/ml/binutils-cvs/2008-08/msg00027.html
msg8085 (view) Author: kowey Date: 2009-08-11.14:13:31
I assume this is resolved by our switching to Cabal to build everything.  Please
let me know if this is not the case
History
Date User Action Args
2008-07-28 03:11:25iaincreate
2008-07-28 09:45:07koweylinkissue975 superseder
2008-07-28 10:10:22koweysetpriority: bug
nosy: + igloo, kowey
status: unread -> unknown
messages: + msg5276
2008-07-28 16:25:21igloosetnosy: tommy, beschmi, kowey, dagit, igloo, iain
messages: + msg5277
2008-07-28 16:31:53koweysetstatus: unknown -> waiting-for
nosy: + iain
messages: + msg5278
assignedto: iain
2008-07-28 17:39:35iainsetnosy: tommy, beschmi, kowey, dagit, igloo, iain, iain
messages: + msg5280
2008-07-28 17:47:42igloosetnosy: - iain
messages: + msg5281
2008-08-05 21:45:37iainsetnosy: tommy, beschmi, kowey, dagit, igloo, iain
messages: + msg5286
2008-09-20 14:42:34adminsetassignedto: iain -> iain
nosy: + iain, simon
2009-08-06 21:10:05adminsetnosy: + dmitry.kurochkin, thorkilnaur, - beschmi
2009-08-11 00:19:33adminsetnosy: - dagit
2009-08-11 14:13:35koweysetstatus: waiting-for -> resolved
nosy: - iain
topic: + Devel
messages: + msg8085
2009-08-25 17:18:34adminsetnosy: + darcs-devel, - igloo
2009-08-25 17:24:58adminsetnosy: - simon
2009-08-27 14:22:42adminsetnosy: tommy, kowey, darcs-devel, thorkilnaur, dmitry.kurochkin, iain