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

mingw: fortran files not compiled #1442

Closed
bdbaddog opened this issue Jan 2, 2018 · 0 comments
Closed

mingw: fortran files not compiled #1442

bdbaddog opened this issue Jan 2, 2018 · 0 comments

Comments

@bdbaddog
Copy link
Contributor

bdbaddog commented Jan 2, 2018

This issue was originally created at: 2006-08-02 08:04:41.
This issue was reported by: pbienst.
pbienst said at 2006-08-02 08:04:41

Under the mingw environment, Scons doesn't seem to realise that Fortran files
should be compiled first before linking them.

This is my SConstruct file:

import glob
import os
env = Environment(ENV=os.environ,tools=['mingw'])
env.StaticLibrary(target='blas', source = glob.glob('*.f'))

Which produces

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
ar r libblas.a caxpy.f ccopy.f cdotc.f cdotu.f cgbmv.f cgemm.f cgemv.f cgerc.f

ztrmv.f ztrsm.f ztrsv.f
ranlib libblas.a
ar: creating libblas.a
scons: done building targets.

bdbaddog said at 2008-06-30 20:28:39

Created an attachment (id=441)
Patch to fix mingw to initialize g77

bdbaddog said at 2008-06-30 20:29:44

I've added a patch to cause g77 to be initialized for mingw.
Note that, as far as I know, there's no need to initialize gfortran as there's
no version of mingw gfortran as yet.

stevenknight said at 2008-07-01 11:22:01

Target milestone and priority per bug party triage.

Reassigning to Bill for integration of his mingw.patch at the appropriate time.

gregnoel said at 2008-07-16 13:43:31

http://scons.org/wiki/BetterErrorMessages is a description of how this situation
should be handled. At the time this comment is posted, it's an early draft, and
comments and questions from those who have encountered the situation would be
appreciated.

gregnoel said at 2008-09-02 15:23:02

Move unfinished 1.0.x issues to 1.1.

cournape said at 2008-09-03 02:22:46

Just to note that there IS a gfortran compiler. There is no official binary, but
you can certainly build it from sources (I have done so myself with success on
the 4.3 serie at least)

stevenknight said at 2008-10-17 05:59:04

Update target milestone to 1.2.

gregnoel said at 2008-12-04 17:41:09

1.2 is frozen; issues that didn't make it into 1.2 are moved to 1.3.

gregnoel said at 2009-02-22 12:29:42

Bug party triage. Accumulate issues with this underlying problem as dups of a
common base issue.

*** This issue has been marked as a duplicate of 863 ***

bdbaddog attached mingw.patch at 2008-06-30 20:28:38.

Patch to fix mingw to initialize g77

gregnoel said this issue is a duplicate of #863 at 2009-02-22 12:29:42.

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

1 participant