* is sde lite a complete toolchain?
@ 2006-07-27 15:53 Shan Wang
2006-07-27 15:53 ` Shan Wang
2006-07-27 16:17 ` Thiemo Seufer
0 siblings, 2 replies; 3+ messages in thread
From: Shan Wang @ 2006-07-27 15:53 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]
Hi all,
I downloaded the SDE lite toolchain from MIPS Technologies. I can use
the makefiles to build all the examples come with the package and test
them with the simulator. But when I tried to use sde-gcc to cross
compile the hello world example directly:
sde-gcc -Wall -mips32 -mtune=4kc -EL hello.c -o hello
I got errors like the following:
/home/linuxdev/packages/sde-lite-linux/bin/../lib/gcc/sde/3.4.4/../../..
/../sde/bin/ld: warning: cannot find entry symbol __start;
defaulting to 0000000080020000
/tmp/ccEaLxlW.o: In function `main':
hello.c:(.text+0x20): undefined reference to `printf'
hello.c:(.text+0x20): relocation truncated to fit: R_MIPS_26 against
`printf'
collect2: ld returned 1 exit status
Does that mean the SDE lite package is not a complete cross toolchain,
can I use it to compile my own application?
Any help will be appropriated, thanks very much.
Best Regards,
Shan
This message has been scanned by MailController - www.MailController.altohiway.com
[-- Attachment #2: Type: text/html, Size: 5222 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* is sde lite a complete toolchain?
2006-07-27 15:53 is sde lite a complete toolchain? Shan Wang
@ 2006-07-27 15:53 ` Shan Wang
2006-07-27 16:17 ` Thiemo Seufer
1 sibling, 0 replies; 3+ messages in thread
From: Shan Wang @ 2006-07-27 15:53 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]
Hi all,
I downloaded the SDE lite toolchain from MIPS Technologies. I can use
the makefiles to build all the examples come with the package and test
them with the simulator. But when I tried to use sde-gcc to cross
compile the hello world example directly:
sde-gcc -Wall -mips32 -mtune=4kc -EL hello.c -o hello
I got errors like the following:
/home/linuxdev/packages/sde-lite-linux/bin/../lib/gcc/sde/3.4.4/../../..
/../sde/bin/ld: warning: cannot find entry symbol __start;
defaulting to 0000000080020000
/tmp/ccEaLxlW.o: In function `main':
hello.c:(.text+0x20): undefined reference to `printf'
hello.c:(.text+0x20): relocation truncated to fit: R_MIPS_26 against
`printf'
collect2: ld returned 1 exit status
Does that mean the SDE lite package is not a complete cross toolchain,
can I use it to compile my own application?
Any help will be appropriated, thanks very much.
Best Regards,
Shan
This message has been scanned by MailController - www.MailController.altohiway.com
[-- Attachment #2: Type: text/html, Size: 5222 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is sde lite a complete toolchain?
2006-07-27 15:53 is sde lite a complete toolchain? Shan Wang
2006-07-27 15:53 ` Shan Wang
@ 2006-07-27 16:17 ` Thiemo Seufer
1 sibling, 0 replies; 3+ messages in thread
From: Thiemo Seufer @ 2006-07-27 16:17 UTC (permalink / raw)
To: Shan Wang; +Cc: linux-mips
Shan Wang wrote:
> Hi all,
>
>
>
> I downloaded the SDE lite toolchain from MIPS Technologies. I can use
> the makefiles to build all the examples come with the package and test
> them with the simulator. But when I tried to use sde-gcc to cross
> compile the hello world example directly:
Note that those examples are for a bare-metal embedded system without OS,
they won't work on Linux/MIPS.
> sde-gcc -Wall -mips32 -mtune=4kc -EL hello.c -o hello
Also, sde-gcc is a compiler for embedded ELF targets, it won't produce
Linux binaries.
> I got errors like the following:
>
> /home/linuxdev/packages/sde-lite-linux/bin/../lib/gcc/sde/3.4.4/../../..
> /../sde/bin/ld: warning: cannot find entry symbol __start;
>
> defaulting to 0000000080020000
>
> /tmp/ccEaLxlW.o: In function `main':
>
> hello.c:(.text+0x20): undefined reference to `printf'
>
> hello.c:(.text+0x20): relocation truncated to fit: R_MIPS_26 against
> `printf'
>
> collect2: ld returned 1 exit status
This is the expected result, since your command line misses to include
the necessary libraries and the board support package.
> Does that mean the SDE lite package is not a complete cross toolchain,
> can I use it to compile my own application?
This depends on what your target platform is. If it is Linux/MIPS, you
may want to have a look at http://www.linux-mips.org/wiki/Toolchains.
Thiemo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-27 17:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 15:53 is sde lite a complete toolchain? Shan Wang
2006-07-27 15:53 ` Shan Wang
2006-07-27 16:17 ` Thiemo Seufer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox