Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
17 user(s) are online (15 user(s) are browsing Forum)

Members: 0
Guests: 17

more...

Browsing this Thread:   1 Anonymous Users



« 1 (2) 3 »


Re: POSIX threads on AROS?

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1322
Offline
That sounds extraordinarily bad. SysBase is exec.library's libbase, and it should be automatically declared/opened. You are not compiling with -nostartfiles by any chance, are you?

Posted on: 2012/12/26 5:28
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2009/10/28 4:25
From Finland
Group:
Member
Posts: 181
Offline
Quote:

export CC=x86_64-aros-gcc
export AS=x86_64-aros-as
export LD=x86_64-aros-ld
export AR=x86_64-aros-ar
export RANLIB=x86_64-aros-ranlib
export STRIP=x86_64-aros-strip
./configure CFLAGS="-ffast-math -fomit-frame-pointer -O2 -s -D__AROS__" \
--host=x86_64-pc-linux-gnu \
LDFLAGS="-lthread"


If you want to cross-compile for x86_64-aros why are you telling the configure script to cross-compile for x86_64-pc-linux-gnu using the --host argument?

Also the __AROS__ define should be defined automatically assuming that the correct compiler binaries are being used (x86_64-aros ones and not x86_64-pc-linux-gnu ones).

Posted on: 2012/12/26 7:24
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2010/1/1 6:14
Group:
Member
Posts: 40
Offline
I installed Icaros inside VirtualBox and could compile the Nano VM. This are the good news.

And the bad one: the assembler and the compiler are crashing:
unknown CPU failure: 0x8000010D

And the VM runs and just shows a black desktop, all black then
and the mousepointer hangs.

I don't know what's wrong there.

Here is the source code:
http://diy-2010.net/nano/nano-vm-3.0.22.zip

If someone else wants to try to fix the bug...

Posted on: 2012/12/27 1:50
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2010/1/1 6:14
Group:
Member
Posts: 40
Offline
I found out that this trouble has something to do with Virtualbox.

I didn't gave up: I installed Icaros on an USB stick:
and tadaaaa! The compiler and assembler are working.

But the virtual machine can't load the thread.library.

I think the version number I used is wrong.
What is the current version number for thread.library (OpenLibrary () call) ?


Posted on: 2012/12/28 17:02
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1322
Offline
I don't know what's the current version, I just use 0.

Posted on: 2012/12/29 0:07
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2010/1/1 6:14
Group:
Member
Posts: 40
Offline
Ok. Thanks!

I changed the OpenLibrary () call.
I had to disable the "online registering" stuff. (host.h include).

This requests a file on my homepage, and is for statistics only (during first start of Nano).
So I can see how many people are using it ;).

I tried to run the hello world program:
some thing is displayed, think it's the software failure requester and then the screen goes black.

IMHO that's something with the threading there.
I made a mistake using the thread calls.

The sources in question are:
vm/main.c
vm/pthread.c


Posted on: 2012/12/29 1:21
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1322
Offline
If you use any socket stuff, don't forget to open bsdsocket.library too. There are a few functions with different names: http://aros.sourceforge.net/documenta ... rs/autodocs/bsdsocket.php
A few of these have macros for easier use (select, inet_ntoa, etc.), but you must use CloseSocket and IoctlSocket in place of close and ioctl. Bsdsocket.library has it's own ernno, which can be queried with Errno() or you can make it use the errno variable using SetErrnoPtr() or SocketBaseTagList() like this: http://en.wikibooks.org/wiki/Aros/Dev ... /Docs/Libraries/BSDsocket

Posted on: 2012/12/29 1:34

Edited by BSzili on 2012/12/29 2:45:07
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2010/1/1 6:14
Group:
Member
Posts: 40
Offline
I forgot to open the socket library in the VM.
But it still crashes.

The assembler and the compiler don't use threads or sockets.
The simply do only file i/o.

But I get the unknown cpu error on both.
They can't load the input files.

There must be some fundamental thing be wrong, if file i/o isn't possible.

Are there some special libraries to be linked to do file i/o?


Posted on: 2012/12/29 5:00
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2011/9/25 1:23
From Hungary
Group:
Member
Posts: 1322
Offline
You should compile the linux-hosted ABIv0 nightly with debug enabled. That way you could use GDB to figure out what function causes the crash.

Posted on: 2012/12/29 6:11
_________________
My AROS&MorphOS ports
Arguments that explain everything... explain nothing.
Transfer the post to other applications Transfer


Re: POSIX threads on AROS?

Joined:
2010/1/1 6:14
Group:
Member
Posts: 40
Offline
I merged the AROS code with my actual Nano VM source tree:
and did some changes.(version 3.0.26)

It's better now ;).

The compiler and assembler are now working.

Currently I'm trying to compile the Linux hosted AROS.
The dlopen() program, whatever can't be found:

./configure on latest AROS sources (nightly build).

checking for dlopen... no
checking for dlopen in -ldl... no
configure: error: dlopen() dynamic linker functions not available
make: *** No targets specified and no makefile found. Stop.

I think dlopen is used for opening libraries dynamical.
Is that right?

Where can I find dlopen?



Posted on: 2013/1/1 3:25
Transfer the post to other applications Transfer



« 1 (2) 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
3650
2 nikolaos
nikolaos
3453
3 phoenixkonsole
phoenixkonsole
3011
4 magorium
magorium
2950
5 deadwood
deadwood
2331
6 mazze
mazze
2067
7 ncafferkey
ncafferkey
2052
8 clusteruk
clusteruk
2050
9 damocles
damocles
1769
10 Kalamatee
Kalamatee
1709
© 2004-2014 AROS Exec