Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-02

FPC make all: as.exe not found unless in path

12 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Hi all,

Tinkering with my bootstrap SVN updater/installer. Directory layout:

c:\development\binutils: as.exe, make.exe etc
Got these from
http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/

c:\development\fpcbootstrap\ppc386.exe
from
ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip

c:\development\fpc: fpc fixes_2.6 source

When I run this command:
C:\development\binutils\make.exe
FPC="c:\development\fpcbootstrap\ppc386.exe"
--directory="c:\development\fpc" UPXPROG=echo COPYTREE=echo all

When I add c:\development\binutils to the path, it does seem to work.

How can I solve this, e.g.:
1. Would moving ppc386.exe to the binutils dir help?
2. Can I modify the path on the fly (I recall that will be difficult/impossible to do on Linux/OSX anyway)?
3. Is there some option I can pass to make to let it find the right binutils?
4. Something else I haven't thought about?

Thanks,
Reinier

Reinier Olislagers
to Reinier Olislagers

Wooops... see inline

Reinier Olislagers wrote 19 lines
Hi all, Tinkering with my bootstrap SVN updater/installer. Directory layout: c:\development\binutils: as.exe, make.exe etc Got these from http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/ c:\development\fpcbootstrap\ppc386.exe from ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip c:\development\fpc: fpc fixes_2.6 source When I run this command: C:\development\binutils\make.exe FPC="c:\development\fpcbootstrap\ppc386.exe" --directory="c:\development\fpc" UPXPROG=echo COPYTREE=echo all

I get
Error: Assembler as.exe not found...
and make errors out

Show quoted text 13 lines
When I add c:\development\binutils to the path, it does seem to work. How can I solve this, e.g.: 1. Would moving ppc386.exe to the binutils dir help? 2. Can I modify the path on the fly (I recall that will be difficult/impossible to do on Linux/OSX anyway)? 3. Is there some option I can pass to make to let it find the right binutils? 4. Something else I haven't thought about? Thanks, Reinier
Henry Vermaak
to Henry Vermaak
Henry Vermaak wrote 5 lines
On 02/02/12 12:54, Reinier Olislagers wrote: > 3. Is there some option I can pass to make to let it find the right > binutils? You can pass CROSSBINDIR=/path/to/binutils.

P.S. I realise you're not cross compiling, but setting CROSSBINDIR should still add the directory to -FD.

Henry

Marcos Douglas
to Reinier Olislagers: Tinkering with my bootstrap SVN updater/installer. Directory layout:…
Reinier Olislagers wrote 30 lines
Hi all, Tinkering with my bootstrap SVN updater/installer. Directory layout: c:\development\binutils: as.exe, make.exe etc Got these from http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/ c:\development\fpcbootstrap\ppc386.exe from ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip c:\development\fpc: fpc fixes_2.6 source When I run this command: C:\development\binutils\make.exe FPC="c:\development\fpcbootstrap\ppc386.exe" --directory="c:\development\fpc" UPXPROG=echo COPYTREE=echo all When I add c:\development\binutils to the path, it does seem to work. How can I solve this, e.g.: 1. Would moving ppc386.exe to the binutils dir help? 2. Can I modify the path on the fly (I recall that will be difficult/impossible to do on Linux/OSX anyway)? 3. Is there some option I can pass to make to let it find the right binutils? 4. Something else I haven't thought about?

Please, see this:
http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29

Marcos Douglas

Reinier Olislagers
to Marcos Douglas
Marcos Douglas wrote 15 lines
On Thu, Feb 2, 2012 at 9:54 AM, Reinier Olislagers wrote: > When I add c:\development\binutils to the path, it does seem to work. > > How can I solve this, e.g.: > 1. Would moving ppc386.exe to the binutils dir help? > 2. Can I modify the path on the fly (I recall that will be > difficult/impossible to do on Linux/OSX anyway)? > 3. Is there some option I can pass to make to let it find the right > binutils? > 4. Something else I haven't thought about? Please, see this: http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29

Thanks Marcos,

Seen it. Don't exactly understand what you want me to do. Do you mean I should write a batch file to change the path? I'm using an FPC program to get the files, so that would be difficult...

Thanks,
Reinier

Reinier Olislagers
to Henry Vermaak: P.S. I realise you're not cross compiling, but setting CROSSBINDIR should still add the…
Henry Vermaak wrote 10 lines
On 02/02/12 13:02, Henry Vermaak wrote: > On 02/02/12 12:54, Reinier Olislagers wrote: >> 3. Is there some option I can pass to make to let it find the right >> binutils? > > You can pass CROSSBINDIR=/path/to/binutils. P.S. I realise you're not cross compiling, but setting CROSSBINDIR should still add the directory to -FD.

Thanks a lot, Henry,

That seems to work when testing "make all" on the command line; only caveat is that a trailing \ does not work, so I have to make sure I don't pass that ;)

However, when doing the same with make install:
C:\development\binutils\make.exe
FPC="c:\development\fpcbootstrap\ppc386.exe"
CROSSBINDIR="C:\development\binutils" --directory="c:\development\fpc" UPXPROG=echo COPYTREE=echo install

I get
....
C:/development/binutils/make.exe -C importtl install make.exe[4]: Entering directory `c:/development/fpc/utils/importtl' C:/development/binutils/ginstall.exe -m 755 -d //bin C:/development/binutils/ginstall.exe: cannot create directory `//bin': No such f
ile or directory
make.exe[4]: *** [fpc_install] Error 1
make.exe[4]: Leaving directory `c:/development/fpc/utils/importtl' make.exe[3]: *** [importtl_install] Error 2

Same error seems to happen when running make install without the CROSSBINDIR option; perhaps something wrong at my end. I'll delete the source directories and start over...

Amy tips?

Regards,
Reinier

Marcos Douglas
to Reinier Olislagers: Seen it. Don't exactly understand what you want me to do. Do you mean I should write a…
Reinier Olislagers wrote 21 lines
On 2-2-2012 14:08, Marcos Douglas wrote: > On Thu, Feb 2, 2012 at 9:54 AM, Reinier Olislagers > wrote: >> When I add c:\development\binutils to the path, it does seem to work. >> >> How can I solve this, e.g.: >> 1. Would moving ppc386.exe to the binutils dir help? >> 2. Can I modify the path on the fly (I recall that will be >> difficult/impossible to do on Linux/OSX anyway)? >> 3. Is there some option I can pass to make to let it find the right >> binutils? >> 4. Something else I haven't thought about? > > Please, see this: > http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29 > Thanks Marcos, Seen it. Don't exactly understand what you want me to do. Do you mean I should write a batch file to change the path? I'm using an FPC program to get the files, so that would be difficult...

The tutorial explain all about the compilation of FPC and Lazarus... I thought it was help you.

Marcos Douglas

Henry Vermaak
to Reinier Olislagers: That seems to work when testing "make all" on the command line; only caveat is that a…
Reinier Olislagers wrote 13 lines
However, when doing the same with make install: C:\development\binutils\make.exe FPC="c:\development\fpcbootstrap\ppc386.exe" CROSSBINDIR="C:\development\binutils" --directory="c:\development\fpc" UPXPROG=echo COPYTREE=echo install I get .... C:/development/binutils/make.exe -C importtl install make.exe[4]: Entering directory `c:/development/fpc/utils/importtl' C:/development/binutils/ginstall.exe -m 755 -d //bin C:/development/binutils/ginstall.exe: cannot create directory `//bin':

It's trying to create the install directory. You probably want to provide it with a prefix of some sort to tell it where to do that. Use INSTALL_PREFIX.

Marco's buildfaq is a very good resource for building fpc:

http://www.stack.nl/~marcov/buildfaq.pdf

Henry

Tomas Hajny
to Reinier Olislagers: Wooops... see inline I get Error: Assembler as.exe not found... and make errors out
Reinier Olislagers wrote 34 lines
Wooops... see inline On 2-2-2012 13:54, Reinier Olislagers wrote: > Hi all, > > Tinkering with my bootstrap SVN updater/installer. > Directory layout: > > c:\development\binutils: as.exe, make.exe etc > Got these from > http://svn.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/ > > c:\development\fpcbootstrap\ppc386.exe > from > ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip > > c:\development\fpc: fpc fixes_2.6 source > > When I run this command: > C:\development\binutils\make.exe > FPC="c:\development\fpcbootstrap\ppc386.exe" > --directory="c:\development\fpc" UPXPROG=echo COPYTREE=echo all I get Error: Assembler as.exe not found... and make errors out > > When I add c:\development\binutils to the path, it does seem to work. > > How can I solve this, e.g.: > 1. Would moving ppc386.exe to the binutils dir help? > 2. Can I modify the path on the fly (I recall that will be > difficult/impossible to do on Linux/OSX anyway)? > 3. Is there some option I can pass to make to let it find the right > binutils? > 4. Something else I haven't thought about?

I assume that you're aware of the compiler option -FD (which can be passed to makefiles e.g. using "OPT=-FD..." or by having it in fpc.cfg unless using option -n too), right?

Tomas

Reinier Olislagers
to Henry Vermaak: It's trying to create the install directory. You probably want to provide it with a…
Henry Vermaak wrote 22 lines
On 02/02/12 13:37, Reinier Olislagers wrote: > > However, when doing the same with make install: > C:\development\binutils\make.exe > FPC="c:\development\fpcbootstrap\ppc386.exe" > CROSSBINDIR="C:\development\binutils" --directory="c:\development\fpc" > UPXPROG=echo COPYTREE=echo install > > I get > .... > C:/development/binutils/make.exe -C importtl install > make.exe[4]: Entering directory `c:/development/fpc/utils/importtl' > C:/development/binutils/ginstall.exe -m 755 -d //bin > C:/development/binutils/ginstall.exe: cannot create directory `//bin': It's trying to create the install directory. You probably want to provide it with a prefix of some sort to tell it where to do that. Use INSTALL_PREFIX. Marco's buildfaq is a very good resource for building fpc: http://www.stack.nl/~marcov/buildfaq.pdf

Thanks, one of the reasons I'm writing this is because I keep forgetting what the build FAQ says, rereading it, getting confused and trying again ;)

I see I'm actually passing PREFIX=c:\development\fpc in the make install step in my code.... I guess I should change that to INSTALL_PREFIX=c:\development\fpc....

Thanks again,
Reinier

Reinier Olislagers
to Tomas Hajny: I assume that you're aware of the compiler option -FD (which can be passed to makefiles…
Tomas Hajny wrote 16 lines
On Thu, February 2, 2012 13:58, Reinier Olislagers wrote: >> When I add c:\development\binutils to the path, it does seem to work. >> >> How can I solve this, e.g.: >> 1. Would moving ppc386.exe to the binutils dir help? >> 2. Can I modify the path on the fly (I recall that will be >> difficult/impossible to do on Linux/OSX anyway)? >> 3. Is there some option I can pass to make to let it find the right >> binutils? >> 4. Something else I haven't thought about? I assume that you're aware of the compiler option -FD (which can be passed to makefiles e.g. using "OPT=-FD..." or by having it in fpc.cfg unless using option -n too), right? Tomas

Thanks Tomas, though I glanced at it skimming the Build FAQ, hadn't paid attention.
Using OPT=-FDc:\development\binutils might be a good idea to use instead of Henry's CROSSBINDIR suggestion...

Thanks,
Reinier