Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149425 - gcc: unrecognized option '-with-cpp' for blas-atlas-3.7.11
Summary: gcc: unrecognized option '-with-cpp' for blas-atlas-3.7.11
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 08:42 UTC by Fabio Rossi
Modified: 2007-04-17 23:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
3.7.11-fix.patch (3.7.11-fix.patch,486 bytes, patch)
2006-09-28 08:43 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2006-09-28 08:42:18 UTC
During the compilation I get the following errors:

gcc: unrecognized option '-with-cpp'
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
FlagCheck.c:1: error: bad value (ultrasparc) for -mtune= switch
gcc: unrecognized option '-with-cpp'
gcc: unrecognized option '-with-cpp'
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
FlagCheck.c:1: error: bad value (ultrasparc) for -mtune= switch
gcc: unrecognized option '-with-cpp'
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
FlagCheck.c:1: error: bad value (ultrasparc) for -mtune= switch
gcc: unrecognized option '-with-cpp'
gcc  -mcpu=ultrasparc -mtune=ultrasparc -fomit-frame-pointer -O  -c -DATL_BETA=1 FlagCheck.c
gcc  -O -fomit-frame-pointer -fno-schedule-insns -fno-schedule-insns2  -c -DATL_BETA=1 FlagCheck.c
gcc  -fomit-frame-pointer -O2 -fno-schedule-insns -fno-schedule-insns2  -c -DATL_BETA=1 FlagCheck.c
gcc  -fomit-frame-pointer -O2 -fno-schedule-insns -fno-schedule-insns2  -c -DATL_BETA=1 FlagCheck.c
gcc  -mcpu=ultrasparc -x c        -with-cpp  -c -DATL_BETA=1 FlagCheck.c
gcc  -x c        -with-cpp  -c -DATL_BETA=1 FlagCheck.c
gcc  -fomit-frame-pointer -O2 -fno-schedule-insns -fno-schedule-insns2 -fno-expensive-optimizations -falign-loops=64  -c -DATL_BETA=1 FlagCheck.c
gcc  -fomit-frame-pointer -O2 -fno-schedule-insns -fno-schedule-insns2 -fno-expensive-optimizations -falign-loops=64  -c -DATL_BETA=1 FlagCheck.c
gcc  -mcpu=ultrasparc -x c        -with-cpp  -c -DATL_BETA=1 FlagCheck.c
gcc  -mcpu=ultrasparc -x c        -with-cpp  -c -DATL_BETA=1 FlagCheck.c
gcc  -x c        -with-cpp  -c -DATL_BETA=1 FlagCheck.c

In the file ATLAS/tune/blas/gemm/userflag.c there is some piece of code which substitutes '-x assembler' or '-x assembler-with-cpp' with '-x c' inside the gcc command line. The code is wrong (after deleting the 'assembler' substring it has to delete only the '-with-cpp' substring).
Comment 1 Fabio Rossi 2006-09-28 08:43:00 UTC
Created attachment 98320 [details, diff]
3.7.11-fix.patch

The fix for the issue
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-28 08:49:06 UTC
Don't use -mcpu, it's screams at you all over the place...
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2006-09-28 09:37:42 UTC
(In reply to comment #1)
> Created an attachment (id=98320) [edit]
> 3.7.11-fix.patch
> 
> The fix for the issue
> 

Thanks for the patch.
Could you please give me the emerge --info for the box!?

Thanks,
Markus
Comment 4 Fabio Rossi 2006-09-28 10:54:37 UTC
(In reply to comment #2)
> Don't use -mcpu, it's screams at you all over the place...

I don't use -mcpu :-)


(In reply to comment #3)
> (In reply to comment #1)
> > Created an attachment (id=98320) [edit]
> > 3.7.11-fix.patch
> > 
> > The fix for the issue
> > 
> 
> Thanks for the patch.
> Could you please give me the emerge --info for the box!?

Gentoo Base System version 1.12.5
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3,
2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Last Sync: Mon, 25 Sep 2006 01:53:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms
splitdebug strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/"
LANG="it_IT.UTF-8"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac alsa apache2 arts asf audiofile bash-completion berkdb
bitmap-fonts blas browserplugin bzip2 cairo cddb cdparanoia cdr chroot clamav
cli cmucl crypt cups curl dlloader dri dv dvb dvd dvdr dvdread elibc_glibc
encode ethereal examples exif fame fbcon ffmpeg fftw firefox foomaticdb fortran
fpx gcj gd gdbm gif gimpprint ginac gmp gnutls gpm graphviz gs gtk gtk2 gtkhtml
idn imagemagick imlib innodb input_devices_keyboard input_devices_mouse ipv6
isdnlog java jbig jpeg jpeg2k kde kdeenablefinal kernel_linux lcms libg++ live
lm_sensors lzo mad mime mjpeg mmx mmxext mng motif mozdevelop mozsvg mozxmlterm
mp3 mpeg ncurses network nls nntp nptl nptlonly nsplugin odbc ogg opengl oss
pam pcre perl plotutils png ppds pppd python qt3 quicktime readline real
reflection samba sdk sdl session skey smime spell spl sse sse2 ssl stats svg
tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1 type1-fonts
udev unicode usb userland_GNU utf8 video_cards_fbdev video_cards_i810
video_cards_vesa video_cards_vga vim-with-x vorbis wifi win32codecs wmf wxgtk1
wxwindows xanim xcomposite xine xml xmms xorg xv xvid yv12 zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Markus Dittrich (RETIRED) gentoo-dev 2007-04-17 23:37:42 UTC
I am closing this bug as WONTFIX since I believe this should be fixed in
the latest version available in portage (3.7.30). Please re-open
if you still experience this issue.

Thanks,
Markus