#6609: GNUism in lcalc-20080205.p2 passing GNU flags directly to the Sun
assembler.
----------------------+-----------------------------------------------------
 Reporter:  drkirkby  |       Owner:  tbd                 
     Type:  defect    |      Status:  new                 
 Priority:  major     |   Milestone:  sage-4.1.1          
Component:  solaris   |    Keywords:  GNUism gas assembler
 Reviewer:            |      Author:                      
   Merged:            |  
----------------------+-----------------------------------------------------
 Here's there error messages:
 {{{
 lcalc-20080205.p2/src/src/make_ggo
 lcalc-20080205.p2/src/src/Makefile
 Finished extraction
 ****************************************************
 Host system
 uname -a:
 SunOS t2 5.10 Generic_141414-02 sun4v sparc SUNW,T5240
 ****************************************************
 ****************************************************
 GCC Version
 gcc -v
 Using built-in specs.
 Target: sparc-sun-solaris2.10
 Configured with: ../gcc-4.2.4/configure --prefix=/usr/local/gcc-4.2.4-sun-
 linker/ --with-as=/usr/ccs/bin/as --without-gnu-as --with-
 ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,fortran
 --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib
 --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib
 Thread model: posix
 gcc version 4.2.4
 ****************************************************
 Building Rubinstein's lcalc program using g++...
 g++  -O2 -g -Wa,-W -fno-exceptions -Wno-deprecated  -DINCLUDE_PARI   \
       -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include/pari
 -I/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/include\
       -I ../include/ -L/rootpool2/local/kirkby/sage-4.1.1.alpha0/local/lib
 \
       cmdline.c \
       Lcommandline.cc Lcommandline_elliptic.cc Lcommandline_globals.cc \
       Lcommandline_misc.cc Lcommandline_numbertheory.cc \
       Lcommandline_twist.cc Lcommandline_values_zeros.cc \
       Lgamma.cc Lglobals.cc Lmisc.cc Lriemannsiegel.cc \
             -o lcalc -lpari -lmpfr -lgmpxx -lgmp -liberty
 /usr/ccs/bin/as: error: unknown option 'W'
 usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-q] [-s]
         [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
         [-P [[-Yc,path] [-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
         [-m [-Ym,path]] [-n] [-ul] [-xF]
         [-m32] [-m64]
 [-xarch={v7,v8,v8a,v8plus,v8plusa,v8plusb,v9,v9a,v9b,sparc,sparcvis,
 sparcvis2,sparcfmaf,sparcima}]
         [-xcode={pic13,pic32}] file.s...
 /usr/ccs/bin/as: error: unknown option 'W'
 usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-q] [-s]
         [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
         [-P [[-Yc,path] [-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
         [-m [-Ym,path]] [-n] [-ul] [-xF]
         [-m32] [-m64]
 [-xarch={v7,v8,v8a,v8plus,v8plusa,v8plusb,v9,v9a,v9b,sparc,sparcvis,
 sparcvis2,sparcfmaf,sparcima}]
         [-xcode={pic13,pic32}] file.s...

 }}}

 The -Wa option to g++ passes the next item (in this case -W) directly to
 the assembler, in much the same was as -Wl will pass the next item
 directly to the linker.

 lcalc-20080205.p2 is passing -W directly to the assembler, but since gcc
 was configured to use the Sun assembler, not the GNU one, so it breaks.

 Unfortunately, the web page which is supposed to have the documentation
 for the GNU assembler is down, so I can't actually look up what the -W
 option does to the GNU assembler and so find out what the Sun equivalent
 one is.

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6609>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to