Discussion:
[OpenRISC] Fwd: Help need for compilation of or1k-linux-uclibc tool-chain
sundaram dodia
2014-07-22 11:23:23 UTC
Permalink
Hi,

I am currently working for OR1k simulation setup(with future plan is to
implement OR_1200 soc design on Virtex-7 based hardware)

Have followed
https://opencores.org/or1k/OpenRISC_GNU_tool_chain#Prerequisites
steps for building Linux (uClibc) toolchain (or1k-linux-uclibc).

i was able to finish first 2 step but hitting issue during gcc stage-1

error snap is as below,

configure:3605: /opt/or1k_uclibc/openrisc/build-gcc/./gcc/xgcc
-B/opt/or1k_uclibc/openrisc/build-gcc/./gcc/
-B/opt/or1k_uclibc/or1k-toolchain/or1k-linux-uclibc/bin/
-B/opt/or1k_uclibc/or1k-toolchain/or1k-linux-uclibc/lib/ -isystem
/opt/or1k_uclibc/or1k-toolchain/or1k-linux-uclibc/include -isystem
/opt/or1k_uclibc/or1k-toolchain/or1k-linux-uclibc/sys-include -c -g -O2
conftest.c >&5
/opt/or1k_uclibc/openrisc/build-gcc/./gcc/as: 106: exec: -o: not found
configure:3609: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3623: error: in
`/opt/or1k_uclibc/openrisc/build-gcc/or1k-linux-uclibc/libgcc':
configure:3626: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


I have tried couple of solutions & configuration mode for resolving the
issue but not getting any clue to solve it please help me to resolve the
issue.

*Below are my system configurations.*

OS:- Ubuntu 14.04 32 bit
Processor i686
Note:- have took latest source for compilation.

please find attached config.log.

Regards
Dodia
Stefan Kristiansson
2014-07-22 11:49:51 UTC
Permalink
Post by sundaram dodia
conftest.c >&5
/opt/or1k_uclibc/openrisc/build-gcc/./gcc/as: 106: exec: -o: not found
configure:3609: $? = 1
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3623: error: in
configure:3626: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Make sure you have /opt/or1k-toolchain/bin in your PATH

Stefan
sundaram dodia
2014-07-22 12:34:54 UTC
Permalink
Hi Stefan,

Thanks for quick response..
I have set the the path also...for make sure i have compiled it again but
still hitting issue..can u please check lib gcc log attached along with the
mail that may give some hint.

Regards
Dodia


On Tue, Jul 22, 2014 at 5:19 PM, Stefan Kristiansson <
Post by sundaram dodia
Post by sundaram dodia
conftest.c >&5
/opt/or1k_uclibc/openrisc/build-gcc/./gcc/as: 106: exec: -o: not found
configure:3609: $? = 1
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3623: error: in
configure:3626: error: cannot compute suffix of object files: cannot
compile
Post by sundaram dodia
See `config.log' for more details.
Make sure you have /opt/or1k-toolchain/bin in your PATH
Stefan
Stefan Kristiansson
2014-07-22 15:33:43 UTC
Permalink
Post by sundaram dodia
Hi Stefan,
Thanks for quick response..
I have set the the path also...for make sure i have compiled it again but
still hitting issue..can u please check lib gcc log attached along with the
mail that may give some hint.
Can you post the output from
gcc/as -v
when you are in your build-gcc directory.
Can you also post the output from.
echo $PATH
and the output from:
which or1k-linux-uclibc-as

When you recompiled after you had made sure that your $PATH was correctly set,
did you test to start over from the very beginning? I.e. remove the
build-gcc dir.

Stefan

Loading...