OpenCores
Issue List
problem in script MOF_ORSOC_TCHN_v5c_or32-elf.sh for cygwin #65
Closed nassim09 opened this issue over 14 years ago
nassim09 commented over 14 years ago

MOF_ORSOC_TCHN_v5c_or32-elf.sh: illegal option -- w

The OpenRISC toolchain install script - Provided by ORSoC & MeansOfFreedom.net Version v5c

#####################################README#####################################

This script will install tools required for development on the OpenRISC platform This version (v5c) includes: gcc-4.2.2, binutils-2.18.50, uClibc-0.9.29 linux-2.6.24, gdb-6.8, busybox-1.7.5 and or1ksim-0.3.0

Please follow the prompts to select the install location.

Note: Two new directories, or32-build and or32-download, will be created in the current directory for storing downloaded files and building the tools. Also: This script attempts to mount a ramdisk image in a local directory to copy in the freshly built busybox. This requires root user privileges - if they are not deteceted the existing busybox binaries will remain in the ramdisk image.

#####################################README#####################################

Install the toolchain under current directory? Current directory: /home Tools will be installed in /home/or32-elf: Enter the path the toolchain will be installed in: Chosen directory is /opt Tools will be installed in /opt/or32-elf: #########################Checking for required build tools######################

Checking for make /usr/bin/make Checking for patch /usr/bin/patch Checking for gcc /usr/bin/gcc Checking for g++ /usr/bin/g++ Checking for bzip2 /usr/bin/bzip2 Checking for wget /usr/bin/wget Checking for makeinfo /usr/bin/makeinfo Checking for libncurses-dev (headers)

mkdir: cannot create directory /opt': File exists --2009-09-17 19:27:53-- ftp://ocuser:*password*@195.67.9.12/toolchain/md5sums =>md5sums' Connecting to 195.67.9.12:21... connected. Logging in as ocuser ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /toolchain ... done. ==> SIZE md5sums ... 1961 ==> PASV ... done. ==> RETR md5sums ... done. Length: 1961 (1.9K)

 0K .                                                     100%  472K=0.004s

2009-09-17 19:28:07 (472 KB/s) - `md5sums' saved 1961

File binutils-2.18.50.tar.bz2 exists locally. Verifying MD5 checksum: binutils-2.18.50.tar.bz2: OK

File uClibc-0.9.29.tar.bz2 exists locally. Verifying MD5 checksum: uClibc-0.9.29.tar.bz2: OK

File busybox-1.7.5.tar.bz2 exists locally. Verifying MD5 checksum: busybox-1.7.5.tar.bz2: OK

File or1ksim-0.3.0.tar.bz2 exists locally. Verifying MD5 checksum: or1ksim-0.3.0.tar.bz2: OK

File initrd-fb-03.ext2.last.work.1.7.5.bz2 exists locally. Verifying MD5 checksum: initrd-fb-03.ext2.last.work.1.7.5.bz2: OK

File binutils-2.18.50.or32_fixed_patch-v2.1.bz2 exists locally. Verifying MD5 checksum: binutils-2.18.50.or32_fixed_patch-v2.1.bz2: OK

File gcc-4.2.2.or32patch.bz2 exists locally. Verifying MD5 checksum: gcc-4.2.2.or32patch.bz2: OK

File linux_2.6.24_or32_unified_v2.3.bz2 exists locally. Verifying MD5 checksum: linux_2.6.24_or32_unified_v2.3.bz2: OK

File uClibc-0.9.29-or32-patch-1.1.bz2 exists locally. Verifying MD5 checksum: uClibc-0.9.29-or32-patch-1.1.bz2: OK

File or32-gdb-6.8-patch-2.4.bz2 exists locally. Verifying MD5 checksum: or32-gdb-6.8-patch-2.4.bz2: OK

File rgd_uc_29v5dotconfig exists locally. Verifying MD5 checksum: rgd_uc_29v5dotconfig: OK

File rgd_bb_1.75dotconfig exists locally. Verifying MD5 checksum: rgd_bb_1.75dotconfig: OK

File gcc-core-4.2.2.tar.bz2 exists locally. Verifying MD5 checksum: gcc-core-4.2.2.tar.bz2: OK

File gdb-6.8.tar.bz2 exists locally. Verifying MD5 checksum: gdb-6.8.tar.bz2: OK

File linux-2.6.24.tar.bz2 exists locally. Verifying MD5 checksum: linux-2.6.24.tar.bz2: OK

Cygwin host detected Platform specific exports: export HOST_LOADLIBES="-lcurses -lintl"

############################## Building binutils ###############################

Decompressing source

Patching binutils with binutils-2.18.50.or32_fixed_patch-v2.1.bz2

Configuring binutils-2.18.50: --target=or32-elf --prefix=/opt/or32-elf --disable-checking Logging output to binutils-2.18.50-configure.log

Making and installing binutils-2.18.50 Logging output to binutils-2.18.50-make.log

Adding /opt/or32-elf/bin to the PATH variable

####################### Building or32 gcc and Linux ############################

Decompressing source

Patching linux-2.6.24 with patch file linux_2.6.24_or32_unified_v2.3.bz2

############################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
nassim09 commented over 14 years ago

hi

i try to install the script MOF_ORSOC_TCHN_v5c_or32-elf.sh in cygwin but i have this errors. help me please . thaks

stephenchong commented over 14 years ago

i got the same problem too!..

julius was assigned over 14 years ago
julius commented over 14 years ago

According to <a href="http://opencores.org/forum,OpenRISC,0,3504">this thread</a> in the forum it's probably an issue with the case of the name of certain files in Linux.<br><br> A quick hack to make it compile was suggested by Raul: "One possible workaround for this is to comment out the line 714 of the actual script "MOF_ORSOC_TCHN_v5c_or32-elf.s" "<br><br> But I'll look into fixing the patch.<br><br>

julius commented over 14 years ago

I have updated the patch for the OpenRISC 2.6.24 Linux kernel and this should no longer be an issue.

julius closed this over 14 years ago
xinyu2002 commented over 13 years ago

Yes, i try in cygwin and Fedora 14 all have this problem. but fedora 14 kernel version is 2.6.35. If or32-elf-* directory add to PATH, and it can use , it is OK?


Assignee
julius
Labels
Bug