How-to-build-toolchain.pdf - "chmod a+x ./debian/rules" fails

Asked by Tex Mex

Hi,

I followed the "How-to-build-toolchain.pdf". When I execute "chmod a+x ./debian/rules" I receive: no such file or directory:

build@arm-desktop:~$ cd tools/
build@arm-desktop:~/tools$ ls
mingw32 mingw32-binutils mingw32-runtime
build@arm-desktop:~/tools$ cd mingw32
build@arm-desktop:~/tools/mingw32$ ls
mingw32-4.2.1.dfsg mingw32_4.2.1.dfsg-2ubuntu1.dsc
mingw32_4.2.1.dfsg-2ubuntu1.diff mingw32_4.2.1.dfsg.orig.tar.gz
build@arm-desktop:~/tools/mingw32$ cd mingw32-4.2.1.dfsg/
build@arm-desktop:~/tools/mingw32/mingw32-4.2.1.dfsg$ ls
01-shared-libgcc-libc++.patch control –p1
changelog copyright README.Debian
compat lintian-overrides upstream
build@arm-desktop:~/tools/mingw32/mingw32-4.2.1.dfsg$ chmod a+x ./debian/rules
chmod: Zugriff auf „./debian/rules“ nicht möglich: No such file or directory

What is my mistake? I followed the How-to step by step.

My environment:

build@arm-desktop:~/tools$ env
ORBIT_SOCKETDIR=/tmp/orbit-build
GPG_AGENT_INFO=/tmp/seahorse-rHRgy3/S.gpg-agent:6265:1
SHELL=/bin/bash
TERM=xterm
XDG_SESSION_COOKIE=e79c52f2e43402782a26076e50edb3a2-1357821078.223268-855649978
GTK_RC_FILES=/etc/gtk/gtkrc:/home/build/.gtkrc-1.2-gnome2
WINDOWID=48234556
USER=build
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
SSH_AUTH_SOCK=/tmp/keyring-pjTLqm/ssh
GNOME_KEYRING_SOCKET=/tmp/keyring-pjTLqm/socket
SESSION_MANAGER=local/arm-desktop:/tmp/.ICE-unix/6126
USERNAME=build
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
DESKTOP_SESSION=default
GDM_XSERVER_LOCATION=local
PWD=/home/build/tools
LANG=de_DE.UTF-8
GNOME_KEYRING_PID=6116
GDM_LANG=de_DE.UTF-8
GDMSESSION=default
HISTCONTROL=ignoreboth
HOME=/home/build
SHLVL=1
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=build
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-SKDwGdH7gy,guid=096b0c85dd7f8dd1af15f5c750eeb496
LESSOPEN=| /usr/bin/lesspipe %s
WINDOWPATH=7:7
DISPLAY=:0.0
LESSCLOSE=/usr/bin/lesspipe %s %s
COLORTERM=gnome-terminal
XAUTHORITY=/home/build/.Xauthority
_=/usr/bin/env
OLDPWD=/home/build

Ubuntu 8.10, intrepid ibex on Virtual Box 4.2.6

build@arm-desktop:~/tools/mingw32/mingw32-4.2.1.dfsg$ sudo uname -a
Linux arm-desktop 2.6.27-17-generic #1 SMP Fri Mar 12 03:09:00 UTC 2010 i686 GNU/Linux

Regards, Tex

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Terry Guo (terry.guo) said :
#1

I think you missed the "patch" step before execute "chmod a+x ./debian/rules":

terguo01@terry-pc01:mingw32-4.2.1.dfsg$ patch -p1 < ../mingw32_4.2.1.dfsg-2ubuntu1.diff

The rules file is produced by "patch" command. Here is my screen paste:

terguo01@terry-pc01:mingw32$ ls
mingw32_4.2.1.dfsg-2ubuntu1.diff mingw32_4.2.1.dfsg-2ubuntu1.dsc mingw32-4.2.1.dfsg.orig mingw32_4.2.1.dfsg.orig.tar.gz
terguo01@terry-pc01:mingw32$ vi mingw32_4.2.1.dfsg-2ubuntu1.diff
terguo01@terry-pc01:mingw32$ ls
mingw32_4.2.1.dfsg-2ubuntu1.diff mingw32_4.2.1.dfsg-2ubuntu1.dsc mingw32-4.2.1.dfsg.orig mingw32_4.2.1.dfsg.orig.tar.gz
terguo01@terry-pc01:mingw32$ mv mingw32-4.2.1.dfsg.orig mingw32-4.2.1.dfsg
terguo01@terry-pc01:mingw32$ cd mingw32-4.2.1.dfsg/
terguo01@terry-pc01:mingw32-4.2.1.dfsg$ ls
upstream
terguo01@terry-pc01:mingw32-4.2.1.dfsg$ patch -p1 < ../mingw32_4.2.1.dfsg-2ubuntu1.diff
patching file debian/rules
patching file debian/compat
patching file debian/lintian-overrides
patching file debian/control
patching file debian/changelog
patching file debian/README.Debian
patching file debian/copyright
patching file debian/patches/01-shared-libgcc-libc++.patch
terguo01@terry-pc01:mingw32-4.2.1.dfsg$ chmod a+x ./debian/rules
terguo01@terry-pc01:mingw32-4.2.1.dfsg$

Revision history for this message
Terry Guo (terry.guo) said :
#2

Also please pay attention to the "note" section on page 7, and make sure you got the correct patch file.

Revision history for this message
Stanislav Simicek (cw2) said :
#3

There is a special dash character in the patch command, it should be 'normal' minus:

patch control –p1 <-- long dash
patch control -p1 <-- minus

The difference is very hard to spot, the special character is present only at a few places in the How-to-build manual.

Revision history for this message
Stanislav Simicek (cw2) said :
#4

It seems I cannot edit an existing comment, so please ignore "control" in the patch commands above, it should be just

patch –p1 <-- long dash
patch -p1 <-- minus

Can you help with this problem?

Provide an answer of your own, or ask Tex Mex for more information if necessary.

To post a message you must log in.