JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for STARDEV Archives


STARDEV Archives

STARDEV Archives


STARDEV@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

STARDEV Home

STARDEV Home

STARDEV  September 2008

STARDEV September 2008

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: building 64bit OSX intel

From:

Tim Jenness <[log in to unmask]>

Reply-To:

Starlink development <[log in to unmask]>

Date:

Tue, 9 Sep 2008 10:41:46 -1000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (132 lines)

On Sep 9, 2008, at 5:25 AM, Peter W. Draper wrote:

> On Mon, 8 Sep 2008, Tim Jenness wrote:
>
>> - I seem to need to remove the -notstdlib from the generated  
>> libtool for building shared fortran libraries (the archive_cmd  
>> section)
>
> Presumably because the runtime libraries where not in the standard  
> directories?
>

possibly. It may be something with my install since I didn't want to  
copy all of the gfortran libraries into /usr/local - just the fortran  
run time.


>> - cfitsio did not seem to pick up LDFLAGS so built a 32-bit  
>> library. (manual intervention)
>
> OK, I seem to have broken that when allowing the shareable library  
> to be built. Added some probably fixes.
>

thanks

>> - gfortran seems to respect the convention that
>>
>> #include <config.h>
>>
>> refers to a system include location and
>>
>> #include "config.h"
>>
>> refers to a user location respecting -I. This pretty much breaks  
>> all fortran that uses .F (eg gns, gks). The fix is simple but it's  
>> a bit odd (clearly gcc treats -I as working with <>). Changing  
>> every .F to use "config.h" seems to work but I wonder what the  
>> feeling is regarding me committing these changes. I imagine Norman  
>> or Peter may have opinions.
>
> Well it's new. Previously gfortran didn't do this. I've had a look  
> at the bug database and mailing lists and it's not clear to me if  
> this is intentional or not, but there have been some developments to  
> way that the preprocessor is invoked (previously it used "cpp - 
> traditional-cpp", but now there's an attempt to allow more  
> flexibility in the tokens handling, being mindful that Fortran and C  
> do not have the same lexical structure).
>
> Personally I'd say just commit the fixes. Looking in the local  
> directory first is what's intended.
>

ok

>> - vtk has trouble building cmcurl because it insists on adding -Wno- 
>> long-double for Apple but that is not supported by the Apple  
>> compilers. Odd. It may just be that our cmake is out of date.
>
> Yes, looks like a bug:
>
>   http://www.vtk.org/Bug/view.php?id=7357
>
> so we can either install the curl binary, live with this, or try an  
> update from the CMake CVS.
>

or commit the 5 line patch that got it working. Which I've now done.

>> - JPL does not build because it does not seem to initialise the  
>> EPCOMM common block. There is
>>
>>  EXTERNAL COMDAT
>>
>> but gfortran doesn't seem to include a real symbol COMDAT in the  
>> link table. It's a DATA segment (on linux g95 gives a "T" with nm,  
>> "D" on OSX gfortran). I have to explicitly add a dummy subroutine  
>> to comdat.f and explicitly call it from ephopn.f to force the  
>> linker to work.... (I think this happened on g95 a couple of years  
>> ago but was fixed)
>
> Don't know what to make of that.
>

This was fixed in April 2006 for g95. Specifically g77 and g95 include  
a reference to a subroutine that does nothing so that the linker will  
link the block data module.

http://gcc.gnu.org/onlinedocs/gcc-3.3.6/g77/Block-Data-and-Libraries.html

so it's a bug in gfortran. Not sure if this is a new bug or an old bug  
with gfortran.

With the g77 test program on that web page, I get this with gfortran  
4.1.2:

% nm xxx.o
0000000000000000 B foo_
0000000000000000 D vars_

with g95 I get:

0000000000000000 T foo_
0000000000000000 D vars_

Peter: can you report this bug to gfortran if it isn't already in?

>> - itk does not build properly. It seems to detect the Tk framework  
>> and does not pick up /star. Oddly libitcl built fine.
>
> Can I have a look at that somewhere?
>

I can give you an account on the new Mac at JAC.


>> - The dependencies seem to be broken because it does not try to  
>> build vtk before building gaia.
>
> That's new. They were OK not long ago (except for the mers issues).
>

Yes. It was my recent patch. For some reason vtk was dropped off the  
list.

Checking out vtk from scratch got it building in 64-bit mode but it is  
still failing in the ftbase.c. Continuing to look.

-- 
Tim Jenness
Joint Astronomy Centre

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
January 2023
December 2022
July 2022
June 2022
April 2022
March 2022
December 2021
October 2021
July 2021
April 2021
January 2021
October 2020
September 2020
August 2020
May 2020
November 2019
October 2019
July 2019
June 2019
February 2019
January 2019
December 2018
November 2018
August 2018
July 2018
May 2018
April 2018
March 2018
February 2018
December 2017
October 2017
August 2017
July 2017
May 2017
April 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
October 2015
September 2015
August 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
2004
April 2003
2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager