Bug 118270 - ports/math/atlas (3.6.0_4,1) does not build with gcc 4.2.x on i386
Summary: ports/math/atlas (3.6.0_4,1) does not build with gcc 4.2.x on i386
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Maho Nakata
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-26 22:30 UTC by Don Lewis
Modified: 2007-12-20 00:20 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (974 bytes, patch)
2007-11-26 22:30 UTC, Don Lewis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Lewis freebsd_committer freebsd_triage 2007-11-26 22:30:01 UTC
The atlas port build fails with a misleading message about not having a
pre-2.9.6 version of gcc installed when building on a version of FreeBSD
7 or 8 where the native compiler is gcc 4.2.x.

[snip]
     /usr/bin/gcc  : v4.2.1
  F77 = /usr/local/bin/gfortran42 -O
  CC = /usr/bin/cc -fomit-frame-pointer -O -mfpmath=387 -m32
  MCC = /usr/bin/cc -fomit-frame-pointer -O -mfpmath=387 -m32
  
  
  
  ATLAS has detected that you are running on an x86 architecture
  (eg., Athlon, P4, PIII, etc), but do not have a pre-2.96 gcc installed.
  Using gcc 3/2.96 will result in a performance loss of 10-20% IN THE BEST CASE
  over a gcc previous to 2.96.  If your install goes slightly wrong, performance
  drops of 50% are more normal with these compilers.  Full details of this
  problem can be found at:
     http://www.cs.utk.edu/~rwhaley/ATLAS/gcc30.html
  In the meantime, we suggest you abondon this ATLAS install, and install a gcc
  that delivers decent x86 performance, and restart the install then.  You
  do not need to be root to install, and full instructions, along with all
  needed files, are given in the ATLAS errata file at:
     http://math-atlas.sourceforge.net/errata.html#UnixGccInst
  
     Stop ATLAS install? [y]: *** Error code 255


According to <http://math-atlas.sourceforge.net/errata3.6.0.html#gcc4>,
gcc 4.2.x should work well for building ATLAS, but 4.0.x and 4.1.x should
not be used.

Fix: Either upgrade the port to the new stable version of ATLAS (3.8.0), or
apply the following patch to the port:
How-To-Repeat: 
Attempt to build the atlas port on an i386 machine with a version of
FreeBSD that uses gcc 4.2.x as its native compiler.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-11-26 22:30:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->maho

Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118270 

Adding to audit trail from misfiled PR ports/118276:

Date: Tue, 27 Nov 2007 11:12:44 +0900 (JST)
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-12-19 22:48:02 UTC
maho        2007-12-19 22:47:57 UTC

  FreeBSD ports repository

  Modified files:
    math/atlas           Makefile distinfo pkg-descr pkg-plist 
    math/atlas/files     Makefile.test 
                         patch-tune+sysinfo+L1CacheSize.c 
                         thread-patch 
  Added files:
    math/atlas/files     patch-CONFIG+src+SpewMakeInc.c 
                         patch-CONFIG+src+atlcomp.txt 
                         patch-CONFIG+src+backend+archinfo_freebsd.c 
                         patch-CONFIG+src+backend+archinfo_x86.c 
  Removed files:
    math/atlas/files     blas.h lapack.h patch-ATL_cmmJIK.c 
                         patch-ATL_dmm4x4x8_US.c patch-Make.top 
                         patch-USIII.flg patch-config.c 
                         patch-ilaenv.f patch-mmsearch.c 
                         patch-tfc.c timing_tolerance-patch 
  Log:
  Update to 3.8.0.
  
  Only verified on i386 and amd64 FreeBSD 7BETA.
  
  Discussions with: bf <bf2006a@yahoo.com>, truckman
  and Tijl Coosemans <tijl@ulyssis.org>.
  
  PR: 118270 and 118271
  
  Revision  Changes    Path
  1.53      +137 -119  ports/math/atlas/Makefile
  1.11      +3 -3      ports/math/atlas/distinfo
  1.3       +12 -12    ports/math/atlas/files/Makefile.test
  1.4       +0 -857    ports/math/atlas/files/blas.h (dead)
  1.4       +0 -5085   ports/math/atlas/files/lapack.h (dead)
  1.2       +0 -14     ports/math/atlas/files/patch-ATL_cmmJIK.c (dead)
  1.2       +0 -14     ports/math/atlas/files/patch-ATL_dmm4x4x8_US.c (dead)
  1.1       +21 -0     ports/math/atlas/files/patch-CONFIG+src+SpewMakeInc.c (new)
  1.1       +119 -0    ports/math/atlas/files/patch-CONFIG+src+atlcomp.txt (new)
  1.1       +75 -0     ports/math/atlas/files/patch-CONFIG+src+backend+archinfo_freebsd.c (new)
  1.1       +10 -0     ports/math/atlas/files/patch-CONFIG+src+backend+archinfo_x86.c (new)
  1.2       +0 -13     ports/math/atlas/files/patch-Make.top (dead)
  1.2       +0 -27     ports/math/atlas/files/patch-USIII.flg (dead)
  1.16      +0 -197    ports/math/atlas/files/patch-config.c (dead)
  1.2       +0 -220    ports/math/atlas/files/patch-ilaenv.f (dead)
  1.2       +0 -16     ports/math/atlas/files/patch-mmsearch.c (dead)
  1.2       +0 -13     ports/math/atlas/files/patch-tfc.c (dead)
  1.2       +5 -5      ports/math/atlas/files/patch-tune+sysinfo+L1CacheSize.c
  1.4       +12 -11    ports/math/atlas/files/thread-patch
  1.2       +0 -12     ports/math/atlas/files/timing_tolerance-patch (dead)
  1.5       +16 -10    ports/math/atlas/pkg-descr
  1.10      +9 -64     ports/math/atlas/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Maho Nakata freebsd_committer freebsd_triage 2007-12-20 00:20:20 UTC
State Changed
From-To: open->closed

Fixed by upgrading to 3.8.0.