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

GAP purposely unsets CC which screws up Sun Studio build. #7041

Closed
sagetrac-drkirkby mannequin opened this issue Sep 27, 2009 · 15 comments
Closed

GAP purposely unsets CC which screws up Sun Studio build. #7041

sagetrac-drkirkby mannequin opened this issue Sep 27, 2009 · 15 comments

Comments

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Sep 27, 2009

spkg-install for gap-4.4.10.p12:

echo "*WARNING*: Unsetting CC since that tends to break GAP building"
unset CC
echo "*WARNING*: Unsetting CXX since that tends to break GAP building"
unset CXX

This appears to be done by Michael Abshoff as SPKG.txt shows:

=== gap-4.4.10.p8 (Michael Abshoff, June 16th, 2008) ===
 * unset CC in spkg-install (work around for #2575)

Looking at #2575 I can't help feel there must be a better solution.


New spkg: http://boxen.math.washington.edu/home/leif/Sage/spkgs/gap-4.4.12.p7.spkg

md5sum: 3461058e66fd53d6d53f07acccc8d0c7 gap-4.4.12.p7.spkg

gap-4.4.12.p7 (Leif Leonhardy, March 22nd 2012)

CC: @dimpase @ohanar

Component: build

Keywords: gap solaris cc CXX compiler hardcoded hard-coded sd40.5

Author: Leif Leonhardy

Reviewer: R. Andrew Ohana

Merged: sage-5.1.beta3

Issue created by migration from https://trac.sagemath.org/ticket/7041

@sagetrac-drkirkby sagetrac-drkirkby mannequin added this to the sage-5.1 milestone Sep 27, 2009
@sagetrac-ltw

This comment has been minimized.

@ohanar
Copy link
Member

ohanar commented Feb 6, 2012

comment:2

well, ignore that patch, wrong ticket (sometimes tab browsing hates you)

@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 22, 2012

comment:3

For the record, the GAP 4.4.12.p6 spkg still unsets these variables, for whatever reason (#2575 and #4161 might shed some light on that).

Hopefully someone will soon upgrade to GAP 4.5, which might solve potential issues with not unsetting them; haven't tested that (or looked at it) at all.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 22, 2012

Changed keywords from gap solaris cc to gap solaris cc CXX compiler hardcoded hard-coded

@nexttime
Copy link
Mannequin

nexttime mannequin commented Mar 22, 2012

comment:4

I'm currently preparing a GAP 4.4.12.p7 spkg fixing this issue (i.e., only unsetting CC and CXX if absolutely necessary), and cleaning up SPKG.txt and spkg-install.

There are still some open questions though; see e.g. my comments here (on #10825).

@dimpase
Copy link
Member

dimpase commented Mar 25, 2012

comment:5

Replying to @nexttime:

There are still some open questions though; see e.g. my comments here (on #10825).

I think what you did on #10825 is good.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Apr 9, 2012

Author: Leif Leonhardy

@nexttime
Copy link
Mannequin

nexttime mannequin commented Apr 9, 2012

comment:6

Excerpt from (the modified) SPKG.txt:

Dependencies

  • readline (according to spkg/standard/deps)
  • Sage (? also according to deps, "so that gap_reset_workspace works")

Special !Update/Build Instructions

  • TODO:

    • Use patch instead of copying patched files.
      (Then also add patch to the dependencies above.)
    • "Flatten" (i.e. remove) the build() function.
    • Perhaps check whether we can fix GAP's configure / build scripts
      w.r.t. brokenness of multiple words in CC (and CXX?) and its
      ignorance concerning CFLAGS, CPPFLAGS and LDFLAGS.
      (Then also support SAGE_DEBUG in spkg-install, and probably
      set up reasonable default CFLAGS.)
  • Do we really want to copy everything from the build directory???
    (Cf. comment in spkg-install.)

...

I'll perhaps address some of the TODOs (I added myself) later, in a p8, but I'd really like to get this spkg in soon.

The stated (probably obsolete?) dependency on Sage and the last point should be answered by some of you... ;-)

@nexttime

This comment has been minimized.

@nexttime nexttime mannequin added the s: needs review label Apr 9, 2012
@nexttime
Copy link
Mannequin

nexttime mannequin commented Apr 9, 2012

Attachment: gap-4.4.12.p6-p7.diff.gz

Diff between the previous spkg in Sage and my new p7 spkg. For reference / review only.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Apr 9, 2012

comment:7

As usual, I've attached a diff of the spkg for easier reviewing.

@nexttime nexttime mannequin self-assigned this Apr 9, 2012
@ohanar
Copy link
Member

ohanar commented May 28, 2012

Reviewer: R. Andrew Ohana

@ohanar
Copy link
Member

ohanar commented May 28, 2012

comment:8

Looks good and works well.

@ohanar
Copy link
Member

ohanar commented May 29, 2012

Changed keywords from gap solaris cc CXX compiler hardcoded hard-coded to gap solaris cc CXX compiler hardcoded hard-coded sd40.5

@jdemeyer
Copy link

jdemeyer commented Jun 6, 2012

Merged: sage-5.1.beta3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants