February 23, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders Bergh | Anders Bergh wrote:
> If you upload some 10.4 binaries I can try it on my machine.
Already done. Just redownload it.
|
February 23, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Mon, Feb 23, 2009 at 12:19, Walter Bright <newshound1@digitalmars.com> wrote: > Anders Bergh wrote: >> >> If you upload some 10.4 binaries I can try it on my machine. > > Already done. Just redownload it. > Just downloaded it and I can confirm that it does run on 10.4: $ ./dmd Digital Mars D Compiler v1.040 Copyright (c) 1999-2009 by Digital Mars written by Walter Bright Documentation: http://www.digitalmars.com/d/1.0/index.html -- Anders Bergh |
February 23, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders Bergh | Anders Bergh wrote: >>> If you upload some 10.4 binaries I can try it on my machine. >> Already done. Just redownload it. > > Just downloaded it and I can confirm that it does run on 10.4: > > $ ./dmd > Digital Mars D Compiler v1.040 > Copyright (c) 1999-2009 by Digital Mars written by Walter Bright > Documentation: http://www.digitalmars.com/d/1.0/index.html I also got further with this one, than with the previous two: $ dmd/osx/bin/dmd dmd/samples/d/hello.d /usr/bin/ld: Undefined symbols: _pthread_mutexattr_destroy$UNIX2003 collect2: ld returned 1 exit status --- errorlevel 1 Apparently it's still using some Leopard symbols for pthread. Could also be that dmd is now alright, but libphobos.a isn't. But as long as those two (MDT+SDK) are applied, it should be. --anders |
February 23, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | Anders F Björklund wrote:
> Anders Bergh wrote:
>
>>>> If you upload some 10.4 binaries I can try it on my machine.
>>> Already done. Just redownload it.
>>
>> Just downloaded it and I can confirm that it does run on 10.4:
>>
>> $ ./dmd
>> Digital Mars D Compiler v1.040
>> Copyright (c) 1999-2009 by Digital Mars written by Walter Bright
>> Documentation: http://www.digitalmars.com/d/1.0/index.html
>
> I also got further with this one, than with the previous two:
>
> $ dmd/osx/bin/dmd dmd/samples/d/hello.d
> /usr/bin/ld: Undefined symbols:
> _pthread_mutexattr_destroy$UNIX2003
> collect2: ld returned 1 exit status
> --- errorlevel 1
>
> Apparently it's still using some Leopard symbols for pthread.
>
> Could also be that dmd is now alright, but libphobos.a isn't.
> But as long as those two (MDT+SDK) are applied, it should be.
Darnit... using 10.4 pthreads might be difficult. Posix support was a tad weak on OSX until 10.5. We'd have to version the library code on OS version, which would be a tad weird since Apple doesn't really support old versions of its OS anyway.
Sean
|
February 23, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Sean Kelly wrote:
>> Apparently it's still using some Leopard symbols for pthread.
>>
>> Could also be that dmd is now alright, but libphobos.a isn't.
>> But as long as those two (MDT+SDK) are applied, it should be.
>
> Darnit... using 10.4 pthreads might be difficult. Posix support was a tad weak on OSX until 10.5. We'd have to version the library code on OS version, which would be a tad weird since Apple doesn't really support old versions of its OS anyway.
The pthread symbol is there, just not in the UNIX2003 variant.
So at this point it's just a linker issue, even if more behind.
--anders
|
February 23, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders F Björklund | == Quote from Anders F Björklund (afb@algonet.se)'s article
> Sean Kelly wrote:
> >> Apparently it's still using some Leopard symbols for pthread.
> >>
> >> Could also be that dmd is now alright, but libphobos.a isn't. But as long as those two (MDT+SDK) are applied, it should be.
> >
> > Darnit... using 10.4 pthreads might be difficult. Posix support was a tad weak on OSX until 10.5. We'd have to version the library code on OS version, which would be a tad weird since Apple doesn't really support old versions of its OS anyway.
> The pthread symbol is there, just not in the UNIX2003 variant. So at this point it's just a linker issue, even if more behind.
Phew! Better that than disabling features.
Sean
|
February 23, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders Bergh | Anders Bergh wrote:
> Just downloaded it and I can confirm that it does run on 10.4:
>
> $ ./dmd
> Digital Mars D Compiler v1.040
> Copyright (c) 1999-2009 by Digital Mars written by Walter Bright
> Documentation: http://www.digitalmars.com/d/1.0/index.html
Woo-hoo!
|
February 23, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> Anders Bergh wrote:
>> Just downloaded it and I can confirm that it does run on 10.4:
>> [evidence]
> Woo-hoo!
Congrats! =)
|
February 26, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright Wrote: > Anders F Björklund wrote: > > I gather this only works with Mac OS X 10.5 "Leopard" ? > > > > $ dmd/osx/bin/dmd hello.d > > Bus error > > > > Could it be rebuilt with the MacOSX10.4u.sdk, perhaps ? > > Is 10.5 really binary incompatible with 10.4 ? And not even a nice message when it isn't? This is exactly the problem. I can confirm that it does not work on 10.4.11. However, it is EXTREMELY easy to get dmd to work on Tiger AND Leopard, but Walter will have to rebuild it linking to /Developer/SDKs/MacOSX10.4u.sdk (just a simple command-line switch when building it). This has to be done when building libphobos too, or we'll get an "Undefined Symbol" error when trying to build our own programs against it. Doing this will make it run on Tiger and Leopard, without having to have two builds for each system. Walter, could you please do this for the 2.026 build, so we Tiger users can have D too? |
February 26, 2009 Re: Just one more thing... | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Stoneham | John Stoneham wrote:
> Walter, could you please do this for the 2.026 build, so we Tiger users can have D too?
It's already done for the compiler (just redownload it), and Sean is working on the library. It isn't as simple as you describe, because 10.4 has a weaker implementation of pthreads.
|
Copyright © 1999-2021 by the D Language Foundation