GCC3.4

From: Jason Lixfeld (jason+lists.freebsd_at_lixfeld.ca)
Date: 04/30/04

  • Next message: LukeD_at_pobox.com: "RAID card confusing mptable?"
    To: freebsd-questions@freebsd.org
    Date: Fri, 30 Apr 2004 02:15:22 -0400
    
    

    I've just installed gcc3.4 to, among other things take advantange of
    the -march=opteron options. I'm in quite a bit of a conundrum here
    because I've installed, changed the order in $PATH to look in
    /usr/local/bin before /usr/bin for gcc, cc etc but when I run a make
    buildworld it fails saying it doen't recognize the -march=opterion
    option. This means that the old system version of gcc is still being
    referenced somehow, even though I've set the paths:

    # env
    USER=jlixfeld
    SSH_CLIENT=192.168.100.66 56715 22
    MAIL=/var/mail/jlixfeld
    SHLVL=1
    OLDPWD=/usr/bin
    HOME=/root
    SSH_TTY=/dev/ttyp0
    PAGER=more
    ENV=/usr/home/jlixfeld/.shrc
    LOGNAME=jlixfeld
    _=buildkernel
    BLOCKSIZE=K
    TERM=xterm-color
    PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/
    X11R6/bin:/usr/home/jlixfeld/bin
    SHELL=/bin/sh
    PWD=/usr/src
    SSH_CONNECTION=192.168.100.66 56715 192.168.100.184 22
    FTP_PASSIVE_MODE=YES
    EDITOR=vi
    # which gcc
    /usr/local/bin/gcc
    # gcc -v
    Reading specs from
    /usr/local/lib/gcc/x86_64-portbld-freebsd5.2/3.4.0/specs
    Configured with: ./..//gcc-3.4-20040414/configure --disable-nls
    --with-system-zlib --with-libiconv-prefix=/usr/local --program-suffix=
    --with-gxx-include-dir=/usr/local/lib/gcc/x86_64-portbld-freebsd5.2/
    3.4.0/include/c++/ --disable-shared --prefix=/usr/local
    x86_64-portbld-freebsd5.2
    Thread model: posix
    gcc version 3.4.0 20040414 (prerelease) [FreeBSD]
    # make buildworld

    --------------------------------------------------------------
    >>> Rebuilding the temporary build tree
    --------------------------------------------------------------
    ................8<...................8<...................
    cc -O2 -pipe -march=opteron
    -I/usr/obj/usr/src/amd64/legacy/usr/include -c
    /usr/src/tools/build/dummy.c
    cc1: error: bad value (opteron) for -march= switch
    cc1: error: bad value (opteron) for -mcpu= switch
    *** Error code 1

    Stop in /usr/src/tools/build.
    *** Error code 1

    Stop in /usr/src.
    *** Error code 1

    Stop in /usr/src.
    *** Error code 1

    Stop in /usr/src.
    #

    if I rename /usr/bin/cc, I get this error now:

    cc -O2 -pipe -march=opteron -nostdinc -I/usr/include -I.
    -I/usr/src/sys/dev/aic7xxx/aicasm -c
    /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
    cc: not found
    *** Error code 127

    Stop in /usr/obj/usr/src/sys/GENERIC.
    *** Error code 1

    Stop in /usr/src.
    *** Error code 1

    Stop in /usr/src.
    #

    so there must be something, somewhere that is hardcoding the path of
    the compiler to be /usr/bin/ but I can't find where it is.

    What should I do here? rename all the old compilers and symlink them
    to /usr/local/bin?

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: LukeD_at_pobox.com: "RAID card confusing mptable?"

    Relevant Pages

    • Problems compiling IPFILTER
      ... Testing compiler gcc for 64 bit object file generation. ... *** Error code 1 ... make: Fatal error: Command failed for target `solaris' ... It4s the information about my machine, OS, and version GCC ...
      (SunManagers)
    • Re: Problems installing elm on Solaris 10
      ... *** Error code 1 ... make: Fatal error: Command failed for target `add_site.o' ... There should have been a gcc in /usr/sfw/bin. ... compiler is compaining about. ...
      (comp.unix.solaris)
    • MySQL 4.1, GCC 3.x, FreeBSD 4.x
      ... Should it be possible to compile and run MySQL 4.1 with GCC 3.4 on a FreeBSD ... *** Error code 1 ...
      (freebsd-stable)
    • Re: make buildworld ....gcc bug
      ... Configured with: FreeBSD/i386 system compiler ... gcc version 3.4.6 20060305 ... The current version of gcc for FreeBSD is 4.2. ... *** Error code 1 ...
      (freebsd-current)
    • Re: make buildworld ....gcc bug
      ... Configured with: FreeBSD/i386 system compiler ... gcc version 3.4.6 20060305 ... The current version of gcc for FreeBSD is 4.2. ... *** Error code 1 ...
      (freebsd-questions)