flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Unix > fasm-1.67.23 Segmentation fault (core dumped) on FreeBSD 6.2

Author
Thread Post new topic Reply to topic
codsna



Joined: 08 Aug 2007
Posts: 10
fasm-1.67.23 Segmentation fault (core dumped) on FreeBSD 6.2
I have installed from ports fasm-1.67.23
but I got after try fasm

Segmentation fault (core dumped)


Any suggestion would be appriciated.

Smile

_________________
CODSNA
Post 03 Feb 2008, 03:09
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4641
Location: Argentina
Read http://board.flatassembler.net/topic.php?t=7812

Was fixed in version 1.67.24, FreeBSD ports are very outdated if it only offers to you a version released on 2007-09-08, the last one is 1.67.26 and was released on 2008-01-27
Post 03 Feb 2008, 03:20
View user's profile Send private message Reply with quote
codsna



Joined: 08 Aug 2007
Posts: 10
Many thanks, LocoDelAssembly

I have fetch new version fasm-1.67.26.tgz

chmod +x fasm

./fasm

and got

ELF binary type "0" not known.
./fasm: Exec format error. Binary file not executable.

Do I need to brandelf to "LINUX" or not ?
Post 04 Feb 2008, 06:24
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4641
Location: Argentina
Unfortunatelly you need to brand to either FreeBSD or Linux (if you have linux ABI emulation installed) http://board.flatassembler.net/topic.php?p=48143#48143

Linux itself is just happy executing ELFs branded as SYSV, but FreeBSD does not.

BTW, why don't you downloaded the Unix version and linked it against libc? ( gcc -m32 -march=i386 fasm.o -o fasm )

PS: The first paragraph of this post was referring to how to make run your binaries made by fasm on FreeBSD, if you want to use the Linux package of fasm then you have to brand to Linux because it comes branded as SYSV (like any ELF produced by fasm).
Post 04 Feb 2008, 15:18
View user's profile Send private message Reply with quote
lehox



Joined: 06 Aug 2007
Posts: 16
The same on FreeBSD 6.3
Post 05 Feb 2008, 04:09
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4641
Location: Argentina
Are you guys getting the libc version? If the FreeBSD's portage is providing the Linux version then tell to the maintainers that they are providing the wrong package.

The correct package for unices other than Linux is http://flatassembler.net/fasm-1.67.26.tar.gz (flat assembler 1.67.26 for Unix/libc), not http://flatassembler.net/fasm-1.67.26.tgz (flat assembler 1.67.26 for Linux)
Post 05 Feb 2008, 04:24
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.