flat assembler
Message board for the users of flat assembler.

Index > 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
codsna 03 Feb 2008, 03:09
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: 4624
Location: Argentina
LocoDelAssembly 03 Feb 2008, 03:20
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
codsna 04 Feb 2008, 06:24
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: 4624
Location: Argentina
LocoDelAssembly 04 Feb 2008, 15:18
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
lehox 05 Feb 2008, 04:09
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: 4624
Location: Argentina
LocoDelAssembly 05 Feb 2008, 04:24
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


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.