Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Could not run/locate sparc-unknown-linux-gnu-gcc?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
securitymonkey
n00b
n00b


Joined: 03 Sep 2004
Posts: 10
Location: USA

PostPosted: Thu Mar 31, 2005 12:32 am    Post subject: Could not run/locate sparc-unknown-linux-gnu-gcc? Reply with quote

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
View user's profile Send private message
securitymonkey
n00b
n00b


Joined: 03 Sep 2004
Posts: 10
Location: USA

PostPosted: Thu Mar 31, 2005 12:52 am    Post subject: Re: Could not run/locate sparc-unknown-linux-gnu-gcc? Reply with quote

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
View user's profile Send private message
NetrixTardis
n00b
n00b


Joined: 21 Sep 2004
Posts: 12
Location: Selma, TX

PostPosted: Fri Apr 01, 2005 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
securitymonkey
n00b
n00b


Joined: 03 Sep 2004
Posts: 10
Location: USA

PostPosted: Fri Apr 01, 2005 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
NetrixTardis
n00b
n00b


Joined: 21 Sep 2004
Posts: 12
Location: Selma, TX

PostPosted: Sat Apr 02, 2005 1:10 am    Post subject: Reply with quote

-mcpu and mtune mean the same. -mcpu is deprecated, use -mtune instead.
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Sat Apr 02, 2005 3:46 am    Post subject: Reply with quote

Actually there is no -march on SPARC so -mcpu and -mtune do indeed mean different things.
Back to top
View user's profile Send private message
NetrixTardis
n00b
n00b


Joined: 21 Sep 2004
Posts: 12
Location: Selma, TX

PostPosted: Sat Apr 02, 2005 10:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum