OpenCores
Issue List
toolchain installation on ubuntu 8.10 #85
Closed giancarloingellis opened this issue about 14 years ago
giancarloingellis commented about 14 years ago

Hi i tried to install the toolchain on ubuntu 8.10 ,but at the end of the installation the shell displays me this message :

Error during toolchain installation.

Please report this to the script maintainers.

A useful report would contain information such as the tools being built/"make"d when the error occurred and the relevant lines of console output or log file relating to the error. It also helps to include information about your the host OS and version of GCC. A good place to look for solutions, and report any bugs, is at the OpenRISC project's bug tracker on OpenCores.org:

Can anyone help me, please?

seehyun commented about 14 years ago

I've got the same issue. For me, the script stopped at "Re-building or-32 gcc". The log message is like below:

<snip>

############################## Building uClibc #################################

Decompressing source

Patching uClibc-0.9.29 with uClibc-0.9.29-or32-patch-1.1.bz2

Making uClibc oldconfig

Making and install uClibc-0.9.29 Logging output to uClibc-0.9.29-make.log

############################## Re-building or-32 gcc ###########################

Re-building gcc-4.2.2

Re-configuring gcc-4.2.2: --target=or32-elf --prefix=/home/seehyun/local/or32-elf --with-local-prefix=/home/seehyun/local/or32-elf/or32-elf --with-gnu-as --with-gnu-ld --disable-libssp --enable-languages=c Logging output to gcc-4.2.2-rebuild-configure.log

Re-building and re-installing gcc-4.2.2 Logging output to gcc-4.2.2-rebuild-make.log

############################ERROR#############################

Error during toolchain installation.

<snip>

Hope this be a clue.

Seehyun

julius was assigned about 14 years ago
julius commented about 14 years ago

I will need more information about what went wrong.

Seehyun, can you look at the last log file it output to, gcc-4.2.2-rebuild-make.log, and see if you can spot the error message?

giancarloingellis commented about 14 years ago

sorry I forgot to paste the first part ....i hope it will be useful

Logging output to or1ksim-0.3.0-make.log Symbolically linking /usr/local/or1k/or1ksim-0.3.0 to /usr/local/or1k/or1ksim Symlink /usr/local/or1k/or1ksim already exists. Updating to this version unlink: cannot unlink `/usr/local/or1k/or1ksim': Is a directory

############################ERROR#############################

Error during toolchain installation.

Please report this to the script maintainers.

A useful report would contain information such as the tool being built/"make"d when the error occurred and the relevant lines of console output or log file relating to the error. It also helps to include information about your the host OS and version of GCC. A good place to look for solutions, and report any bugs, is at the OpenRISC project's bug tracker on OpenCores.org:

       http://opencores.org/openrisc,bugtracker

.

seehyun commented about 14 years ago

Julius,

I found the error message in config.log as follows:

configure:2338: checking for correct version of gmp.h configure:2351: gcc -c -g -O2 conftest.c 1>&5 configure:2341:17: error: gmp.h: No such file or directory configure: In function 'main': configure:2345: error: 'choke' undeclared (first use in this function) configure:2345: error: (Each undeclared identifier is reported only once configure:2345: error: for each function it appears in.) configure:2345: error: expected ';' before 'me' configure: failed program was: #line 2340 "configure" #include "confdefs.h" #include "gmp.h" int main() {

#if GNU_MP_VERSION < 4 || (GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1) choke me #endif

; return 0; }

There must be some packages to be installed in advance, right?

julius commented about 14 years ago

I will need more information about what went wrong.

Seehyun, can you look at the last log file it output to, gcc-4.2.2-rebuild-make.log, and see if you can spot the error message?

julius commented about 14 years ago

Sorry, ignore my last comment, that was an accidental repost!

It looks like gmp.h is missing. I will look into what is needed.

Regarding the or1ksim symlink thing, that's a different story, I'll also pass an eye over what the script is doing there.

strongleg commented almost 14 years ago

And here is the problem:

/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../cpu/or32 -I.. -I../cpu/common -I../cpu/or1k -I../cache -I../mmu -I../bpb -I../peripheral -I../tick -I../peripheral/channels -I../pm -I../pic -I../debug -I../vapi -I../support -I../cuc -I../port -I../argtable2 -g -O2 -g -Wall -Werror -O2 -DOR32 -MT rsp-server.lo -MD -MP -MF .deps/rsp-server.Tpo -c -o rsp-server.lo rsp-server.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../cpu/or32 -I.. -I../cpu/common -I../cpu/or1k -I../cache -I../mmu -I../bpb -I../peripheral -I../tick -I../peripheral/channels -I../pm -I../pic -I../debug -I../vapi -I../support -I../cuc -I../port -I../argtable2 -g -O2 -g -Wall -Werror -O2 -DOR32 -MT rsp-server.lo -MD -MP -MF .deps/rsp-server.Tpo -c rsp-server.c -fPIC -DPIC -o .libs/rsp-server.o cc1: warnings being treated as errors rsp-server.c: In function ‘rsp_remove_matchpoint’: rsp-server.c:2233: warning: dereferencing type-punned pointer will break strict-aliasing rules rsp-server.c: In function ‘rsp_insert_matchpoint’: rsp-server.c:2313: warning: dereferencing type-punned pointer will break strict-aliasing rules make2: rsp-server.lo Error 1 make2: Leaving directory `/home/strongleg/Project/OpenRISC/or32-build/or1ksim-0.4.0/debug' make1: all-recursive Error 1 make1: Leaving directory `/home/strongleg/Project/OpenRISC/or32-build/or1ksim-0.4.0'

make: *** all Error 2

It seems thers is a warning, but the compiler was told to treat any warning to be error

julius commented over 13 years ago

The last error here relates to or1ksim-0.4.0, the latest toolchain install script is using or1ksim-0.5.0rc2 and I'm quite sure these warnings have been resolved.

I am closing this as it's becoming more of a thread for bugs, rather than reports of a particular one.

julius closed this over 13 years ago
saurabhgupta commented over 13 years ago

I have similar error as leg strong has posted. Kindly please tell me what more information do you need to solve the problem. Thank you.


Assignee
julius
Labels
Request