Thread overview | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 11, 2015 dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Attachments:
| git clone git://github.com/D-Programming-Language/dmd.git cd dmd make -f posix.mak MODEL=64 /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src -f posix.mak no cpu specified, assuming X86 dmd idgen.d g++ -m64: No such file or directory --- errorlevel 255 make[1]: *** [idgen] Error 255 make: *** [all] Error 2 |
May 11, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timothee Cour | On Monday, 11 May 2015 at 08:31:19 UTC, Timothee Cour wrote:
> git clone git://github.com/D-Programming-Language/dmd.git
> cd dmd
> make -f posix.mak MODEL=64
>
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src -f posix.mak
> no cpu specified, assuming X86
> dmd idgen.d
> g++ -m64: No such file or directory
> --- errorlevel 255
> make[1]: *** [idgen] Error 255
> make: *** [all] Error 2
Do you
1) already have a version of dmd installed (relatively new requirement)
and
2) have a working g++, whether of clang or gcc variety? On my machine g++ is in /usr/bin and is actually clang, although not as a symbolic link, as a slightly differently configured executable. Don't really know what apple's thinking here was.
|
May 11, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | "John Colvin" wrote in message news:jsnuhemrispqiwvwlfde@forum.dlang.org... > Do you > 1) already have a version of dmd installed (relatively new requirement) Yeah, it's this. Which page is this that needs updating? |
May 11, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Murphy | On Monday, 11 May 2015 at 12:25:27 UTC, Daniel Murphy wrote: > "John Colvin" wrote in message news:jsnuhemrispqiwvwlfde@forum.dlang.org... > >> Do you >> 1) already have a version of dmd installed (relatively new requirement) > > Yeah, it's this. Which page is this that needs updating? I don't see the necessary info in http://wiki.dlang.org/Building_DMD, but I might have missed it. |
May 11, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin Attachments:
| NOTE: it's on a new laptop; not sure whether build rules implicitly assume (maybe by error?) that something should be there beyond g++/clang/dmd but the error message i get isn't helpful.
1) already have a version of dmd installed (relatively new requirement)
yes (via homebrew; on a new laptop):
dmd --version
DMD64 D Compiler v2.067
2) have a working g++, whether of clang or gcc variety?
yes, I've built llvm from source, etc; both g++ and clang seem to work.
On Mon, May 11, 2015 at 5:55 AM, John Colvin via Digitalmars-d < digitalmars-d@puremagic.com> wrote:
> On Monday, 11 May 2015 at 12:25:27 UTC, Daniel Murphy wrote:
>
>> "John Colvin" wrote in message news:jsnuhemrispqiwvwlfde@forum.dlang.org. ..
>>
>> Do you
>>> 1) already have a version of dmd installed (relatively new requirement)
>>>
>>
>> Yeah, it's this. Which page is this that needs updating?
>>
>
> I don't see the necessary info in http://wiki.dlang.org/Building_DMD, but I might have missed it.
>
|
May 11, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin Attachments:
| note, that this seems to be only happening on master:
if I checkout another tag (git checkout v2.067.1-b1 or any other I've
tried) it builds fine.
So it must be a very recent regression
On Mon, May 11, 2015 at 5:55 AM, John Colvin via Digitalmars-d < digitalmars-d@puremagic.com> wrote:
> On Monday, 11 May 2015 at 12:25:27 UTC, Daniel Murphy wrote:
>
>> "John Colvin" wrote in message news:jsnuhemrispqiwvwlfde@forum.dlang.org. ..
>>
>> Do you
>>> 1) already have a version of dmd installed (relatively new requirement)
>>>
>>
>> Yeah, it's this. Which page is this that needs updating?
>>
>
> I don't see the necessary info in http://wiki.dlang.org/Building_DMD, but I might have missed it.
>
|
May 11, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin Attachments:
| I found the culprit by bisection: hash: 50b7697... HEAD is now at 50b7697... Merge pull request #3970 from yebblies/idgend2 https://github.com/D-Programming-Language/dmd/commit/aa8a7b3dcf985c8332783961c1dd7bc598ec36c5 it builds fine right before this, and fails with this On Mon, May 11, 2015 at 1:56 AM, John Colvin via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Monday, 11 May 2015 at 08:31:19 UTC, Timothee Cour wrote: > >> git clone git://github.com/D-Programming-Language/dmd.git >> cd dmd >> make -f posix.mak MODEL=64 >> >> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src -f >> posix.mak >> no cpu specified, assuming X86 >> dmd idgen.d >> g++ -m64: No such file or directory >> --- errorlevel 255 >> make[1]: *** [idgen] Error 255 >> make: *** [all] Error 2 >> > > Do you > 1) already have a version of dmd installed (relatively new requirement) > and > 2) have a working g++, whether of clang or gcc variety? On my machine g++ > is in /usr/bin and is actually clang, although not as a symbolic link, as a > slightly differently configured executable. Don't really know what apple's > thinking here was. > |
May 11, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin Attachments:
| NOTE:
I had 'export CC=gcc' in my environment, leading to this behavior (ie
worked fine until 'Merge pull request #3970 from yebblies/idgend2', and
breaks after that pull request is merged).
If I 'unset CC' it works. But IMO it should work even when user has set CC
(or at least provide a better error message)
Also I notice CC is set to 'g++' in posix.mak which is untypical (instead
of gcc for example)
Other users could face the same issue which is hard to debug.
On Mon, May 11, 2015 at 5:55 AM, John Colvin via Digitalmars-d < digitalmars-d@puremagic.com> wrote:
> On Monday, 11 May 2015 at 12:25:27 UTC, Daniel Murphy wrote:
>
>> "John Colvin" wrote in message news:jsnuhemrispqiwvwlfde@forum.dlang.org. ..
>>
>> Do you
>>> 1) already have a version of dmd installed (relatively new requirement)
>>>
>>
>> Yeah, it's this. Which page is this that needs updating?
>>
>
> I don't see the necessary info in http://wiki.dlang.org/Building_DMD, but I might have missed it.
>
|
May 11, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timothee Cour | On 2015-05-11 18:08, Timothee Cour via Digitalmars-d wrote: > I found the culprit by bisection: > hash: 50b7697... > > HEAD is now at 50b7697... Merge pull request #3970 from yebblies/idgend2 > > https://github.com/D-Programming-Language/dmd/commit/aa8a7b3dcf985c8332783961c1dd7bc598ec36c5 > > it builds fine right before this, and fails with this I guess that's the first commit that requires a D compiler to build DMD. -- /Jacob Carlborg |
May 12, 2015 Re: dmd build instructions from source don't work anymore | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | "Jacob Carlborg" wrote in message news:miqqqu$2g75$2@digitalmars.com... > On 2015-05-11 18:08, Timothee Cour via Digitalmars-d wrote: > > I found the culprit by bisection: > > hash: 50b7697... > > > > HEAD is now at 50b7697... Merge pull request #3970 from yebblies/idgend2 > > > > https://github.com/D-Programming-Language/dmd/commit/aa8a7b3dcf985c8332783961c1dd7bc598ec36c5 > > > > it builds fine right before this, and fails with this > > I guess that's the first commit that requires a D compiler to build DMD. Yep. |
Copyright © 1999-2021 by the D Language Foundation