flat assembler
Message board for the users of flat assembler.
Index
> Unix > FASM on FreeBSD 7 AMD64 |
Author |
|
dap 24 May 2008, 17:55
Hello,
I have installed FASM from the packages : Code: pkg_add -r fasm But when I call FASM it always invokes a seg fault. Also, can I run 32 bits programs on 64 bits FreeBSD ? I have tried to build a 32 bits executable with this command : Code: gcc -m32 file.c -o file But I get three errors from ld (I can't give them now, I'm on Windows), so I can't test. Did someone here find a workaround ? I already have found a topic on this subject : http://board.flatassembler.net/topic.php?t=7684 I have not tried this solution yet because I thougt that FASM shoud work (at least on 32 bits) if someone bothered to make a package for it. Thanks. |
|||
24 May 2008, 17:55 |
|
LocoDelAssembly 25 May 2008, 00:42
http://board.flatassembler.net/topic.php?p=64688#64688 (But you will need to update and actually you won't need this anymore because newer versions resolved the problem by doing I/O in a different manner).
Just download from www.flatassembler.net the Unix and link it yourself. About using fasm under FreeBSD 64-bit I think it should be possible, perhaps you don't have the i386-libc-dev (or whatever)? By installing from packages do you mean the portage maintained by the FreeBSD community? Which version they are providing? Because, this problem was fixed long time ago... |
|||
25 May 2008, 00:42 |
|
dap 26 May 2008, 21:21
LocoDelAssembly wrote: http://board.flatassembler.net/topic.php?p=64688#64688 (But you will need to update and actually you won't need this anymore because newer versions resolved the problem by doing I/O in a different manner). Sorry but I'm new to Unix, where should I put the files ? I guess the executable goes to /usr/local/bin, the documentation in /share/doc ? And the source and the examples ? LocoDelAssembly wrote: About using fasm under FreeBSD 64-bit I think it should be possible, perhaps you don't have the i386-libc-dev (or whatever)? Finally I just had to specify "-B /usr/lib32" in the command-line because the default /usr/lib contains 64 bits stuff. Now it works fine. LocoDelAssembly wrote: By installing from packages do you mean the portage maintained by the FreeBSD community? Which version they are providing? Because, this problem was fixed long time ago... It seems up to date (1.67) : http://portsmon.freebsd.org/portoverview.py?category=lang&portname=fasm But I don't if I got the latest version with the PKG_ADD command. I run the 7 RELEASE version and here is what the handbook says : Quote: Note: pkg_add(1) will download the latest version of your application if you are using FreeBSD-CURRENT or FreeBSD-STABLE. If you run a -RELEASE version, it will grab the version of the package that was built with your release. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html |
|||
26 May 2008, 21:21 |
|
dap 01 Jun 2008, 17:03
In fact it runs fine if I compile it from the ports. I have mailed the maintainer so that he can upload the good binaries.
|
|||
01 Jun 2008, 17:03 |
|
dap 28 Sep 2008, 12:07
Just this (as root):
Code: cd /usr/ports/lang/fasm make install clean If you use tcsh you may have to type "rehash" before the fasm command is recognized. |
|||
28 Sep 2008, 12:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.