View previous topic :: View next topic |
Author |
Message |
securitymonkey n00b
Joined: 03 Sep 2004 Posts: 10 Location: USA
|
Posted: Thu Mar 31, 2005 12:32 am Post subject: Could not run/locate sparc-unknown-linux-gnu-gcc? |
|
|
Every package that I try to emerge gives me this message:
Code: |
>>> emerge (1 of 1) sys-devel/gcc-config-1.3.10-r1 to /
>>> Unpacking source...
>>> Source unpacked.
Could not run/locate "sparc-unknown-linux-gnu-gcc"
|
sparc-unknown-linux-gnu-gcc lives in /usr/bin, so I know the file is there.
Any ideas? |
|
Back to top |
|
|
securitymonkey n00b
Joined: 03 Sep 2004 Posts: 10 Location: USA
|
Posted: Thu Mar 31, 2005 12:52 am Post subject: Re: Could not run/locate sparc-unknown-linux-gnu-gcc? |
|
|
securitymonkey wrote: | Every package that I try to emerge gives me this message:
Code: |
>>> emerge (1 of 1) sys-devel/gcc-config-1.3.10-r1 to /
>>> Unpacking source...
>>> Source unpacked.
Could not run/locate "sparc-unknown-linux-gnu-gcc"
|
sparc-unknown-linux-gnu-gcc lives in /usr/bin, so I know the file is there.
Any ideas? |
Here's another example:
Code: |
cd builds/unix; ./configure --host=sparc-unknown-linux-gnu --prefix=/usr --with-zlib --libdir=/usr/lib
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... Invalid configuration `sparc64-unknown-linux-': machine `sparc64-unknown-linux' not recognized
configure: error: /bin/sh ./config.sub sparc64-unknown-linux- failed
make: *** [builds/unix/unix-def.mk] Error 1
|
My CHOST in make.conf is set to "sparc-unknown-linux-gnu". |
|
Back to top |
|
|
NetrixTardis n00b
Joined: 21 Sep 2004 Posts: 12 Location: Selma, TX
|
Posted: Fri Apr 01, 2005 8:09 am Post subject: |
|
|
i was able to reproduce the error myself, in your CFLAGS, use mtune=ultrasparc (or your arch) instead of march=.
that seems to work. |
|
Back to top |
|
|
securitymonkey n00b
Joined: 03 Sep 2004 Posts: 10 Location: USA
|
Posted: Fri Apr 01, 2005 10:52 pm Post subject: |
|
|
NetrixTardis wrote: | i was able to reproduce the error myself, in your CFLAGS, use mtune=ultrasparc (or your arch) instead of march=.
that seems to work. |
Here's my /etc/make.conf:
Code: |
CFLAGS="-O2 -mcpu=ultrasparc -mtune=ultrasparc"
CHOST="sparc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
USE="gtk2"
ACCEPT_KEYWORDS="sparc"
|
This is a dual-CPU Ultra 60.
Look correct? Still erroring out:
Code: |
Could not run/locate "sparc-unknown-linux-gnu-gcc"
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... Could not run/locate "gcc"
ldd: ./libctest: No such file or directory
rm: cannot remove `libctest': No such file or directory
sparc-unknown-linux-gnu-gcc -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c
Could not run/locate "sparc-unknown-linux-gnu-gcc"
make: *** [libsandbox.o] Error 1
| [/code] |
|
Back to top |
|
|
NetrixTardis n00b
Joined: 21 Sep 2004 Posts: 12 Location: Selma, TX
|
Posted: Sat Apr 02, 2005 1:10 am Post subject: |
|
|
-mcpu and mtune mean the same. -mcpu is deprecated, use -mtune instead. |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Sat Apr 02, 2005 3:46 am Post subject: |
|
|
Actually there is no -march on SPARC so -mcpu and -mtune do indeed mean different things. |
|
Back to top |
|
|
NetrixTardis n00b
Joined: 21 Sep 2004 Posts: 12 Location: Selma, TX
|
Posted: Sat Apr 02, 2005 10:45 am Post subject: |
|
|
really?! wow. i stand corrected.
/me goes back to reading gcc docs and man pages.
sorry if i've been giving out bad information. |
|
Back to top |
|
|
|