Sven,
I tried your suggestion and the result is exactly the same. So, I guess
putting the path in BINUTILSPREFIX has the same effect as CROSSBINDIR.
It will just concatenate both variable to get the full 'as' and 'ar'
file paths.
As per your second suggestion, my knowledge of assembler is too
Sven Barth wrote:
On 15.06.2013 19:19, Dennis Poon wrote:
I eventually found this page which talked about downloading a special
toolchain from openwrt web site
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61112
I followed its instruction and successfully compiled a helloworld c
program and
su
On 15.06.2013 19:19, Dennis Poon wrote:
I eventually found this page which talked about downloading a special
toolchain from openwrt web site
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61112
I followed its instruction and successfully compiled a helloworld c
program and
successfully RUN the
Seems that the assembler is not understanding the $xx notation for the
registers.
Instead of trying to change the toolchain I would fire up gdb on your device
and single step through the initialisation code of the helloworld.pas file.
From my point of view it is more likely that you will find
I eventually found this page which talked about downloading a special
toolchain from openwrt web site
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=61112
I followed its instruction and successfully compiled a helloworld c
program and
successfully RUN the helloworld binary on Netgear 3700 run
On 6/12/2013 05:40, Michael Schnell wrote:
On 06/12/2013 11:13 AM, Dennis Poon wrote:
Michael,
I just typed "ld -v" and it replied:
GNU ld (GNU Binutils for Debian) 2.22
You'd better do
gcc -v
This should output (among others) a line starting "Target:"
Same will state the architecture and b
On 6/12/2013 05:13, Dennis Poon wrote:
Michael,
I just typed "ld -v" and it replied:
GNU ld (GNU Binutils for Debian) 2.22
and what do you get if you type
/usr/mips-linux-gnu/bin/ld -v
??
just typing "ld -v" uses the one in your path and not necessarily the one that
you want to verify/vali
Dennis Poon wrote:
Mark,
If you are referring to http://wiki.freepascal.org/MIPS_port
then I did use that one but somehow along the way, I still cannot
produce a binary program for mips, so someone suggested the binutils I
got from that link might be the cause.
At the top of that page is a "
Mark,
If you are referring to http://wiki.freepascal.org/MIPS_port
then I did use that one but somehow along the way, I still cannot
produce a binary program for mips, so someone suggested the binutils I
got from that link might be the cause.
If you are referring to a different link, please k
Marco,
When I typed ./ld -V within /usr/mips-linux-gnu/bin/ and it gave :
GNU ld (GNU Binutils for Debian) 2.22
Supported emulations:
elf32btsmip
elf32ltsmip
elf32btsmipn32
elf64btsmip
elf32ltsmipn32
elf64ltsmip
elf_x86_64
elf32_x86_64
elf_i386
i386linux
elf_l1
Michael,
You are right, those files are also present at /usr/bin.
Now I see that they seem to be the same set of files, only with the
difference of a prefix. They have the same file size and date.
If I open the .deb file with archive manager, it seems to suggest the
set of files in side /usr/bin
In our previous episode, Dennis Poon said:
>
> I just typed "ld -v" and it replied:
> GNU ld (GNU Binutils for Debian) 2.22
Then type ld -V
(with capital)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/
Small mixup:
Please see that
BINUTILSPREFIX=mipsel-linux-gnu-
is set when you buid your corosscompiler and make sure that
-XPmipsel-linux-gnu- is present on your commandline when compiling a
program.
Michael
Am 12.06.13 12:08, schrieb Michael Ring:
The other Michael answering now ;-)
Jus
On 06/12/2013 12:01 PM, Dennis Poon wrote:
But I am working on a i386 Debian box.
I typed gcc -v and it just says Target: i486-linux-gnu
but isn't that normal?
Of course this is normal. what is not normal is that a cross-gcc (which
is part of binutils) is supposed to be named just "gcc". (It sh
Dennis Poon wrote:
Michael,
I just typed "ld -v" and it replied:
GNU ld (GNU Binutils for Debian) 2.22
I do agree they look different. I supposed they should look like
"mipsel-linux-ld"
but I only followed the wiki.freepascal.org/MIPS_port doc step 1 which
stated http://www.emdebian.org/debia
The other Michael answering now ;-)
Just for fun I downloaded the deb-file you described below, the deb
package seems to include the correctly named binaries at correct places:
x ./usr/bin/
x ./usr/bin/mipsel-linux-gnu-addr2line
x ./usr/bin/mipsel-linux-gnu-c++filt
x ./usr/bin/mipsel-linux-gn
But I am working on a i386 Debian box.
I typed gcc -v and it just says Target: i486-linux-gnu
but isn't that normal?
Anyway, where else should I download the cross compiler binutils from
linux->MIPS?
Dennis
On 06/12/2013 11:13 AM, Dennis Poon wrote:
Michael,
I just typed "ld -v" and it rep
On 06/12/2013 11:13 AM, Dennis Poon wrote:
Michael,
I just typed "ld -v" and it replied:
GNU ld (GNU Binutils for Debian) 2.22
You'd better do
gcc -v
This should output (among others) a line starting "Target:"
Same will state the architecture and be something like "Target: MIPS-linux"
-Mich
Michael,
I just typed "ld -v" and it replied:
GNU ld (GNU Binutils for Debian) 2.22
I do agree they look different. I supposed they should look like
"mipsel-linux-ld"
but I only followed the wiki.freepascal.org/MIPS_port doc step 1 which
stated http://www.emdebian.org/debian/pool/main/b/binuti
On 06/09/2013 05:43 PM, Dennis Poon wrote:
My binutils as , ld etc files are located at /usr/mips-linux-gnu/bin/ ...
first try to start these files form the command-line. (e.g. "ld -v") If
they don't work decently (which I do suppose), you need different files.
-Michael
__
On 06/08/2013 05:35 PM, Sven Barth wrote:
as I found /usr/mips-linux-gnu/bin folder contains the following files:
ar
as
ld
nm
objcopy
objdump
ranlib
strip
Ok, then add the following option: "BINUTILSPREFIX="
Ooops ??`?
The file names do not look like cross - binutils, but like native ones
Jonas,
Thanks for the guidance.
Where is cpumips defined?
Also, I could not use the $fpctarget variable, I had to use the exact
file path to avoid some complains in lazarus.
#include /etc/fpc.cfg
#ifdef cpumips
-Fu/home/dennis/fpc/$fpcversion/units/$fpctarget
-Fu/home/dennis/fpc/$fpcversion/uni
On 09 Jun 2013, at 19:08, Dennis Poon wrote:
Also, in Lazarus, it still report /usr/bin/fpc does not support
mips-linux.
Should I go into the .lazarus folder in my user folder and change
the environmentoptions.xml
from
to
?
Frankly, I don't understand why I have to BOTH change the co
Also, in Lazarus, it still report /usr/bin/fpc does not support
mips-linux.
Should I go into the .lazarus folder in my user folder and change the
environmentoptions.xml
from
to
?
Frankly, I don't understand why I have to BOTH change the compiler
path AND change the project's option "Code
Marco,
Thanks.
I ran:
make crossinstall INSTALL_PREFIX=/home/dennis/fpc CPU_TARGET=mips
OS_TARGET=linux BINUTILSPREFIX=/usr/mips-linux-gnu/bin/
make clean all install INSTALL_PREFIX=/home/dennis/fpc CPU_TARGET=mips
OS_TARGET=linux BINUTILSPREFIX=/usr/mips-linux-gnu/bin/
both went without er
In our previous episode, Dennis Poon said:
> make all CPU_TARGET=mips OS_TARGET=linux
> make crossinstall INSTALL_PREFIX=/home/dennis/fpc
> What should I do next?
Pass the same arguments to crossinstall as you did to "all"
___
fpc-pascal maillist -
Michael,
Thanks for your advice.
My binutils as , ld etc files are located at /usr/mips-linux-gnu/bin/
so I
make all CPU_TARGET=mips OS_TARGET=linux
BINUTILSPREFIX=/usr/mips-linux-gnu/bin/
and this time, no errors ! And I can find the resultant *.o *.ppu in
/home/dennis/fpc/rtl/units/mips-lin
I've browsed through this thread, as fas as I can see you are still on your
intel-based linux box and you are trying to build a crosscompiler for mipsel.
If this is still correct then your problem at this stage is that you did not
define the BINUTILSPREFIX correctly. When you leave this definiti
Sven,
make all CPU_TARGET=mipsel OS_TARGET=linux BINUTILSPREFIX=
my fpc folder is /home/dennis/fpc
I already login as root and issue the above command as you instructed
but I got:
/bin/rm -f /home/dennis/fpc/rtl/units/mipsel-linux/math.rst
/home/dennis/fpc/rtl/units/mipsel-linux/varutils
On 08.06.2013 18:43, Dennis Poon wrote:
Sven,
I am more than happy to start all over with windows.
Can give me instructions on how to install the crosstools and binutils
for windows? and maybe add them to the doc as well?
Will I need to install mingw and other c related stuff (like make
command
Sven,
I am more than happy to start all over with windows.
Can give me instructions on how to install the crosstools and binutils
for windows? and maybe add them to the doc as well?
Will I need to install mingw and other c related stuff (like make
command etc) in windows first?
Hopefully, aft
On 08.06.2013 17:31, Dennis Poon wrote:
Sven,
I am really ignorant in this area. I followed the doc to download the
binutils-mips-linux-gnu_2.22-8_i386.deb and i Installed it after
installing fpcdeb
by dpkg -i binutils-mips-linux-gnu_2.22-8_i386.deb
and I believe that installed files in /us
Sven,
I am really ignorant in this area. I followed the doc to download the
deb file>
binutils-mips-linux-gnu_2.22-8_i386.deb and i Installed it after
installing fpcdeb
by dpkg -i binutils-mips-linux-gnu_2.22-8_i386.deb
and I believe that installed files in /usr
as I found /usr/mips-linux-g
On 08.06.2013 13:43, Dennis Poon wrote:
Sven,
Thanks for the prompt reply.
I did "make all " and after many lines of messages, the last few are:
make[5]: mipsel-linux-as: command not found
make[5]: *** [prt0.o] Error 127
make[5]: Leavning directory '/home/dennis/fpc/rtl/linux'
make[1]:
On 08.06.2013 13:54, waldo kitty wrote:
On 6/8/2013 06:31, Sven Barth wrote:
Please remind me not to update wiki articles early in the morning.
Psst! Remember to not update wiki articles early in the morning! O:)
Thank you for the reminder! :)
Regards,
Sven
On 6/8/2013 06:31, Sven Barth wrote:
Please remind me not to update wiki articles early in the morning.
Psst! Remember to not update wiki articles early in the morning! O:)
--
NOTE: No off-list assistance is given without prior approval.
Please keep mailing list traffic on the list unles
Sven,
Thanks for the prompt reply.
I did "make all " and after many lines of messages, the last few are:
make[5]: mipsel-linux-as: command not found
make[5]: *** [prt0.o] Error 127
make[5]: Leavning directory '/home/dennis/fpc/rtl/linux'
make[1]:
make: *** [build-stamp.mipsel-linus] Err
On 08.06.2013 12:04, Dennis Poon wrote:
Sven,
Thanks for the update but the document 's Step 1 is "From Linux to
Linux-MIPS"
so it only shows instructions on how to add the repository of
crosstools, binutils for debian only.
But the Step 2 "Cross-compiler" only shows instructions on Windows,
I
Sven,
Thanks for the update but the document 's Step 1 is "From Linux to
Linux-MIPS"
so it only shows instructions on how to add the repository of
crosstools, binutils for debian only.
But the Step 2 "Cross-compiler" only shows instructions on Windows,
I tried typing the same command in debia
On 08.06.2013 09:53, Sven Barth wrote:
On 08.06.2013 08:53, Dennis Poon wrote:
On debian squeeze, I installed*fpc 2.6.0-9*
and I followed the instruction "svn checkout
http://svn.freepascal.org/svn*/fpc/trunk* fpc"
which I believe is the latest version of fpc source code
then I followed the ins
On 08.06.2013 08:53, Dennis Poon wrote:
On debian squeeze, I installed*fpc 2.6.0-9*
and I followed the instruction "svn checkout
http://svn.freepascal.org/svn*/fpc/trunk* fpc"
which I believe is the latest version of fpc source code
then I followed the instruction to try to compile * ppmipsel.lp
On debian squeeze, I installed* fpc 2.6.0-9*
and I followed the instruction "svn checkout
http://svn.freepascal.org/svn*/fpc/trunk* fpc"
which I believe is the latest version of fpc source code
then I followed the instruction to try to compile * ppmipsel.lpi* but
since that seems like a Lazaru
On 06.06.2013 18:33, Dennis Poon wrote:
But which FPC version should I used?
The doc said 2.4,
should I use 2.6 or 2.7?
Ah, didn't read that. Basic rule: always use the latest release to build
a development (e.g. 2.7.1) or fixes version (e.g. 2.6.3). In this case
this means that you should us
But which FPC version should I used?
The doc said 2.4,
should I use 2.6 or 2.7?
Thanks.
Dennis
On 05.06.2013 16:33, Dennis Poon wrote:
or x86-Windows -> MIPS-linux cross compiler
or x86-MacOS->MIPS-linux cross compiler?
any one of the above will be big help to me.
I searched the net and the
Dennis Poon wrote:
or x86-Windows -> MIPS-linux cross compiler
or x86-MacOS->MIPS-linux cross compiler?
any one of the above will be big help to me.
I searched the net and the http://wiki.freepascal.org/MIPS_port
document seems to be at least Feb 2012 old. I wonder if there exists a
more upd
On 05.06.2013 16:33, Dennis Poon wrote:
or x86-Windows -> MIPS-linux cross compiler
or x86-MacOS->MIPS-linux cross compiler?
any one of the above will be big help to me.
I searched the net and the http://wiki.freepascal.org/MIPS_port
document seems to be at least Feb 2012 old. I wonder if the
or x86-Windows -> MIPS-linux cross compiler
or x86-MacOS->MIPS-linux cross compiler?
any one of the above will be big help to me.
I searched the net and the http://wiki.freepascal.org/MIPS_port
document seems to be at least Feb 2012 old. I wonder if there exists a
more updated document or cro
47 matches
Mail list logo