Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
mips-gcc: No include path to stdio.h
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Takis  
View profile  
 More options Apr 17 2009, 3:30 am
Newsgroups: comp.sys.mips
From: Takis <takm...@otenet.gr>
Date: Fri, 17 Apr 2009 10:30:21 +0300
Local: Fri, Apr 17 2009 3:30 am
Subject: mips-gcc: No include path to stdio.h
Hello,

I would greatly appreciate if someone could provide a hint on how to make my
mips-gcc work.

After failing to build a gcc cross-compiler myself I downloaded a binary
version from UC Berkeley CS162 site (x86.linux) and made sure all
executables are in the PATH.

However I am missing some link to glibc (all related RPMS are installed).

Please note I have no specific MIPS machine as target. This is for
educational purposes only.

Thanks in advance,
Takis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Sieweke  
View profile  
 More options Apr 17 2009, 9:06 pm
Newsgroups: comp.sys.mips
From: Mike Sieweke <msiew...@ix.netcom.com>
Date: Fri, 17 Apr 2009 21:06:15 -0400
Local: Fri, Apr 17 2009 9:06 pm
Subject: Re: mips-gcc: No include path to stdio.h

Takis <takm...@otenet.gr> wrote:
> I would greatly appreciate if someone could provide a hint on how to make my
> mips-gcc work.

> After failing to build a gcc cross-compiler myself I downloaded a binary
> version from UC Berkeley CS162 site (x86.linux) and made sure all
> executables are in the PATH.

> However I am missing some link to glibc (all related RPMS are installed).

> Please note I have no specific MIPS machine as target. This is for
> educational purposes only.

> Thanks in advance,
> Takis

You haven't given enough info to debug the problem.  You need to
show
  - the directory where the compiler is installed
  - your PATH variable
  - the complete command you typed
  - the complete error message(s)

It would probably also help to have the output from this command:
  mips-gcc -v

--
Mike Sieweke
Duluth, GA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Takis  
View profile  
 More options Apr 18 2009, 12:56 am
Newsgroups: comp.sys.mips
From: Takis <takm...@otenet.gr>
Date: Sat, 18 Apr 2009 07:56:32 +0300
Local: Sat, Apr 18 2009 12:56 am
Subject: Re: mips-gcc: No include path to stdio.h

Hello Mike,

Here is the extra debug info:

 - the directory where the compiler is installed
/usr/local/src/mips-x86.linux-xgcc, all executables symbolically linked
to /usr/bin

 - your PATH variable
$PATH=/home/takis/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11R6:
/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:
//usr/lib/mit/sbin

 - the complete command you typed
mips-gcc -S -O2 -fno-delayed-branch lab4_ex4.c -o lab4_ex4.s

 - the complete error message(s)
lab4_ex4.c:1:19:no include path in which to find stdio.h
(obviously caused by the directive #include <stdio.h>)

It would probably also help to have the output from this command:

>   mips-gcc -v

Using built-in specs.
Configuredwith:./configure --target=mips-dec-ultrix42 --program-prefix=mips-
--with-gnu-as --with-gnu-ld --enable-obsolete
Thread model: single
gcc version 3.2.2

(My version of gcc is 4.2.1 (SUSE Linux))

thank you in advance for your assistance.

Best Regards,
Takis Markopoulos
Athens,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Sieweke  
View profile  
 More options Apr 18 2009, 10:35 pm
Newsgroups: comp.sys.mips
From: Mike Sieweke <msiew...@ix.netcom.com>
Date: Sat, 18 Apr 2009 22:35:53 -0400
Local: Sat, Apr 18 2009 10:35 pm
Subject: Re: mips-gcc: No include path to stdio.h

Hello Takis,

Usually the Gnu compiler finds its include path automatically in
the same folder where the compiler was found.  That didn't work, so
either the include directory is missing or the compiler couldn't
figure out where it was (maybe because it's accessed via a symbolic
link, or because the directory naming scheme is non-standard).  If
the directory isn't missing, you need to point the compiler to it,
like this:

mips-gcc \
 -I/usr/local/src/mips-x86.linux-xgcc/mips-x86.linux-xgcc/include \
 -S -O2 -fno-delayed-branch lab4_ex4.c -o lab4_ex4.s

This assumes your directory naming scheme matches the one for
my compiler.  You need to substitute the real path to the
"include" directory.

I didn't need to do any of the above with my compiler.  I built it
myself as "mipsisa32-elf-gcc".  Here is how it's installed:

My compiler is in    "/install-path/mipsisa32-elf/bin/".

The path variable is "PATH=$PATH:/install-path/mipsisa32-elf/bin".

The include directory is:
   /install-path/mipsisa32-elf/mipsisa32-elf/include

I can compile with this command, and the compiler finds the
include path automatically:
   mipsisa32-elf-gcc -c -O2 test.c

If this all doesn't get you going, I recommend you install a
different version of GCC.  The MIPS company has one called
"SDE-Lite" for free, and it's likely to be better supported
than the one you have.  You can get it from here:
   http://www.mips.com/products/software-tools/mips-sde-lite/
This one also has some documentation, although it might be
confusing with all the options available.

Mike

--
Mike Sieweke
Duluth, GA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Takis  
View profile  
 More options Apr 19 2009, 1:53 pm
Newsgroups: comp.sys.mips
From: Takis <takm...@otenet.gr>
Date: Sun, 19 Apr 2009 20:53:35 +0300
Local: Sun, Apr 19 2009 1:53 pm
Subject: Re: mips-gcc: No include path to stdio.h

Hi Mike,

It worked and thank you for your comments which gave me the right direction
to the solution!

Just for the records the -l switch didn't work. gcc-mips was searching a
number of directories around the "gcc-lib/mips-dec-ultrix42" string with no
success. So I had to create the directory and symlink a good number (>100)
of header files from various include directories in my SUSE distribution.

My patience was rewarded.

Once again thanks,
Takis
Athens, Greece


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Sieweke  
View profile  
 More options Apr 21 2009, 10:54 pm
Newsgroups: comp.sys.mips
From: Mike Sieweke <msiew...@ix.netcom.com>
Date: Tue, 21 Apr 2009 22:54:49 -0400
Local: Tues, Apr 21 2009 10:54 pm
Subject: Re: mips-gcc: No include path to stdio.h

Hi Takis,

I'm glad everything worked out.

Mike

--
Mike Sieweke
Duluth, GA


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »