Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
9 user(s) are online (9 user(s) are browsing Forum)

Members: 0
Guests: 9

more...


Browsing this Thread:   1 Anonymous Users




« 1 2 3 4 (5)


Re: Error linking binary - Milkytracker for AROS ABI-v0
#9
Home away from home
Home away from home


See User information
Quote:

Marlon wrote:
Quote:

wawa wrote:
need to check if it compiles for m68k abiv1. the source is in your repo? you have an aros mmakefile too?


No, there's no mmakefile. I simply use premake4 to make the Makefiles. I have done some minor changes in my premake4.lua file to make it compile for AROS-ABIv1:

Quote:
configuration "i386-aros"
buildoptions "-O3 -fomit-frame-pointer -fno-exceptions -static-libstdc++ -s"
linkoptions { "-lpthread", "-static-libstdc++" }
includedirs { "/opt/x86-aros/bin/linux-i386/AROS/Extras/Developer/include", "/opt/x86-aros/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/6.3.0/include-fixed", "./src/ppui/osinterface/amiga",
"./src/ppui/osinterface/sdl-1.2", "./src/ppui/osinterface/posix" }
libdirs { "" }
defines { "AMIGA", "__AMIGA__", "AROS", "aros", "__AROS__", "__aros__" }


you could add m68k-aros as a build option with the right paths, then execute "build_gmake" to generate the Makefiles.

You could contribute to the effort by explaining how a mmakefile works and add it to the repo.



mmakefile.src's are "glorified" makefiles. They are parsed by metamake and have macros defined in our make.tmpl file expanded, to simplify writing makefiles for all the different supported AROS targets. They also do a minimal dependency tracking using the meta-targets.

A basic one that just compiles some binary from some C files (e.g. like the DClock binary someone was trying to build) would look like this ..

# Copyright ? 2018, The AROS Development Team. All rights reserved.
# $Id$

include $(SRCDIR)/config/aros.cfg

FILES   
:= Main Window Draw SetAlarm
EXEDIR  
:= $(AROS_TOOLS)

#MM- local-dclock : local-dclock-binary

%build_prog mmake=local-dclock-binary 
    progname
=DClock targetdir=$(EXEDIR) 
    
files=$(FILES)

%
common



.. and typing "make local-dclock" in the top level AROS build directory, would make it.


Posted on: 2018/5/6 19:44

Edited by Kalamatee on 2018/5/6 20:47:52
Resized Image
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Error linking binary - Milkytracker for AROS ABI-v0
#8
Not too shy to talk
Not too shy to talk


See User information
Quote:

wawa wrote:
need to check if it compiles for m68k abiv1. the source is in your repo? you have an aros mmakefile too?


No, there's no mmakefile. I simply use premake4 to make the Makefiles. I have done some minor changes in my premake4.lua file to make it compile for AROS-ABIv1:

Quote:
configuration "i386-aros"
buildoptions "-O3 -fomit-frame-pointer -fno-exceptions -static-libstdc++ -s"
linkoptions { "-lpthread", "-static-libstdc++" }
includedirs { "/opt/x86-aros/bin/linux-i386/AROS/Extras/Developer/include", "/opt/x86-aros/bin/linux-x86_64/tools/crosstools/lib/gcc/i386-aros/6.3.0/include-fixed", "./src/ppui/osinterface/amiga",
"./src/ppui/osinterface/sdl-1.2", "./src/ppui/osinterface/posix" }
libdirs { "" }
defines { "AMIGA", "__AMIGA__", "AROS", "aros", "__AROS__", "__aros__" }


you could add m68k-aros as a build option with the right paths, then execute "build_gmake" to generate the Makefiles.

You could contribute to the effort by explaining how a mmakefile works and add it to the repo.

Posted on: 2018/5/6 15:05
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Error linking binary - Milkytracker for AROS ABI-v0
#7
Home away from home
Home away from home


See User information
need to check if it compiles for m68k abiv1. the source is in your repo? you have an aros mmakefile too?

Posted on: 2018/5/6 14:57
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Error linking binary - Milkytracker for AROS ABI-v0
#6
Not too shy to talk
Not too shy to talk


See User information
It links without issue now! Thank you!

Binary available here:https://www.eevul.net/amiga/ports/milkytracker/

Posted on: 2018/5/6 12:32
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Error linking binary - Milkytracker for AROS ABI-v0
#5
Not too shy to talk
Not too shy to talk


See User information
Quote:

ncafferkey wrote:
Have you built it this way successfully in the past? It might be easier to build within hosted AROS or with the SDK.

No, this is the first time trying. :)

I already have a setup for AmigaOS 3.x, AmigaOS 4.x and MorphOS, and I'd prefer to do everything the same way.

I just followed Wawa's guide in this thread:http://aros-exec.org/modules/newbb/viewtopic.php?topic_id=10828

Quote:

Kalamatee wrote:
Quote:

Marlon wrote:
It currently builds fine but I get the following error:
[QUOTE]==== Building milkytracker (release_i386-aros) ====
Linking milkytracker
There are undefined symbols in '../bin/milkytracker':
U pthread_cond_broadcast /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:852
U pthread_cond_wait /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:864
U pthread_getspecific /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:719
U pthread_key_create /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:707
U pthread_key_delete /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:713
U pthread_mutex_lock /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:748
U pthread_mutex_unlock /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:778
U pthread_once /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:699
U pthread_setspecific /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:725
make[1]: *** [milkytracker.make:501: ../bin/milkytracker] Error 1
make: *** [Makefile:49: milkytracker] Error 2[/QUOTE]

What's up with that? I built AROS from the svn repo,


If you are building trunk, then it is ABI v1. A couple of details in your output suggest this is the case.

Quote:

and I'm using my source I've used for the ports to AmigaOS 3.x, AmigaOS 4.x and MorphOS:https://github.com/AmigaPorts/MilkyTracker



You need to add -static-libstdc++


Didn't realize that was ABI-v1. The (very dated) website (aros.org) is very confusing regarding this matter. I'd suggest a total revamp of the site, but I know there's very few devs.

I'd help with such a task if I wasn't already swamped with other projects already.

And thanks for letting me know about -static-libstdc++ :)

Posted on: 2018/5/6 12:22
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Error linking binary - Milkytracker for AROS ABI-v0
#4
Home away from home
Home away from home


See User information
Have you built it this way successfully in the past? It might be easier to build within hosted AROS or with the SDK.

Posted on: 2018/5/6 1:46
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Error linking binary - Milkytracker for AROS ABI-v0
#3
Home away from home
Home away from home


See User information
Quote:

Marlon wrote:
It currently builds fine but I get the following error:
[QUOTE]==== Building milkytracker (release_i386-aros) ====
Linking milkytracker
There are undefined symbols in '../bin/milkytracker':
U pthread_cond_broadcast /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:852
U pthread_cond_wait /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:864
U pthread_getspecific /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:719
U pthread_key_create /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:707
U pthread_key_delete /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:713
U pthread_mutex_lock /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:748
U pthread_mutex_unlock /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:778
U pthread_once /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:699
U pthread_setspecific /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:725
make[1]: *** [milkytracker.make:501: ../bin/milkytracker] Error 1
make: *** [Makefile:49: milkytracker] Error 2[/QUOTE]

What's up with that? I built AROS from the svn repo,


If you are building trunk, then it is ABI v1. A couple of details in your output suggest this is the case.

Quote:

and I'm using my source I've used for the ports to AmigaOS 3.x, AmigaOS 4.x and MorphOS:https://github.com/AmigaPorts/MilkyTracker



You need to add -static-libstdc++

Posted on: 2018/5/6 1:43

Edited by Kalamatee on 2018/5/6 3:11:48
Resized Image
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Error linking binary - Milkytracker for AROS ABI-v0
#2
Quite a regular
Quite a regular


See User information
What part is building fine, then?

Mysha

Posted on: 2018/5/5 23:13
Mysha
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Error linking binary - Milkytracker for AROS ABI-v1
#1
Not too shy to talk
Not too shy to talk


See User information
It currently builds fine but I get the following error:
Quote:
==== Building milkytracker (release_i386-aros) ====
Linking milkytracker
There are undefined symbols in '../bin/milkytracker':
U pthread_cond_broadcast /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:852
U pthread_cond_wait /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:864
U pthread_getspecific /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:719
U pthread_key_create /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:707
U pthread_key_delete /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:713
U pthread_mutex_lock /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:748
U pthread_mutex_unlock /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:778
U pthread_once /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libgcc/./gthr-default.h:699
U pthread_setspecific /opt/x86-aros/bin/linux-x86_64/gen/host/tools/crosstools/gcc/i386-aros/libstdc++-v3/include/i386-aros/bits/gthr-default.h:725
make[1]: *** [milkytracker.make:501: ../bin/milkytracker] Error 1
make: *** [Makefile:49: milkytracker] Error 2


What's up with that? I built AROS from the svn repo, and I'm using my source I've used for the ports to AmigaOS 3.x, AmigaOS 4.x and MorphOS:https://github.com/AmigaPorts/MilkyTracker

Posted on: 2018/5/5 16:18

Edited by Marlon on 2018/5/6 12:33:29
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




« 1 2 3 4 (5)



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.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project