www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dmd 2.066.1 cannot build phobos 2.066.1

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
I wonder how this could have happened. Here's what I did:

git clone --quiet -b v2.066.1 --depth=1 
git://github.com/D-Programming-Language/dmd.git dmd-2.066.1

git clone --quiet -b v2.066.1 --depth=1 
git://github.com/D-Programming-Language/druntime.git druntime-2.066.1

git clone --quiet -b v2.066.1 --depth=1 
git://github.com/D-Programming-Language/phobos.git phobos-2.066.1

After this I had three nice directories. Then I built dmd, it worked. 
Then I built druntime making sure I pass DMD=../dmd-2.066.1/src/dmd in 
make's command line. That worked, too.

When I built phobos I got:

====
Error: unrecognized switch '-conf='
====

How did it happen that the -conf= flag is required by phobos 2.066.1 yet 
was not implemented in the same version of dmd?


Thanks,

Andrei
Mar 12 2015
next sibling parent reply "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"Andrei Alexandrescu"  wrote in message news:mdt2mj$8gc$1 digitalmars.com...

 I wonder how this could have happened. Here's what I did:

 git clone --quiet -b v2.066.1 --depth=1 
 git://github.com/D-Programming-Language/dmd.git dmd-2.066.1
None of these clone commands work for me, I get: "warning: Remote branch v2.066.1 not found in upstream origin, using HEAD instead"
Mar 12 2015
next sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/12/15 5:15 PM, Daniel Murphy wrote:
 "Andrei Alexandrescu"  wrote in message
 news:mdt2mj$8gc$1 digitalmars.com...

 I wonder how this could have happened. Here's what I did:

 git clone --quiet -b v2.066.1 --depth=1
 git://github.com/D-Programming-Language/dmd.git dmd-2.066.1
None of these clone commands work for me, I get: "warning: Remote branch v2.066.1 not found in upstream origin, using HEAD instead"
Could that be because our default remotes are different (e.g. yours is your own fork)? -- Andrei
Mar 12 2015
parent reply "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"Andrei Alexandrescu"  wrote in message news:mdtb6c$f2f$1 digitalmars.com...

 Could that be because our default remotes are different (e.g. yours is 
 your own fork)? -- Andrei
I don't think so, but it could be because I've got an older version of git. I took a quick look at the 2.066.1 tag on github, and it doesn't look like there's any mention of -conf in phobos' posix.mak (https://github.com/D-Programming-Language/phobos/blob/c8fccac8c20a3bdd6300128f610267a24d42473f/posix.mak) Do you maybe have it in an environment variable or dmd.conf that's getting picked up?
Mar 12 2015
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 3/12/15 5:44 PM, Daniel Murphy wrote:
 "Andrei Alexandrescu"  wrote in message
 news:mdtb6c$f2f$1 digitalmars.com...

 Could that be because our default remotes are different (e.g. yours is
 your own fork)? -- Andrei
I don't think so, but it could be because I've got an older version of git. I took a quick look at the 2.066.1 tag on github, and it doesn't look like there's any mention of -conf in phobos' posix.mak (https://github.com/D-Programming-Language/phobos/blob/c8fccac8c20a3bdd6300128f610267a24d42473f/posix.mak) Do you maybe have it in an environment variable or dmd.conf that's getting picked up?
Wait, so aren't we discussing a git-specific thing? (Anyhow I don't have an active dmd.conf. It's a fresh VM.) -- Andrei
Mar 12 2015
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
More info: this is a fresh VM with Ubuntu 14.04. I've installed a number 
of tools with apt-get including gdc. There is no dmd installation. git 
is version 1.9.1. -- Andrei
Mar 12 2015
parent "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"Andrei Alexandrescu"  wrote in message news:mdteff$hdf$2 digitalmars.com...

 More info: this is a fresh VM with Ubuntu 14.04. I've installed a number 
 of tools with apt-get including gdc. There is no dmd installation. git is 
 version 1.9.1. -- Andrei
Hmm. What are the commit hashes for dmd, druntime and phobos?
Mar 12 2015
prev sibling parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Friday, 13 March 2015 at 00:15:32 UTC, Daniel Murphy wrote:
 "Andrei Alexandrescu"  wrote in message 
 news:mdt2mj$8gc$1 digitalmars.com...

 I wonder how this could have happened. Here's what I did:

 git clone --quiet -b v2.066.1 --depth=1 
 git://github.com/D-Programming-Language/dmd.git dmd-2.066.1
None of these clone commands work for me, I get: "warning: Remote branch v2.066.1 not found in upstream origin, using HEAD instead"
What Git version are you using? "git clone --branch" learned to work with tags in Git v1.7.10.
Mar 12 2015
parent "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"Vladimir Panteleev"  wrote in message 
news:tlocllgihbddloqlafgj forum.dlang.org...

 What Git version are you using?

 "git clone --branch" learned to work with tags in Git v1.7.10.
Yeah, it was 1.7.1.
Mar 12 2015
prev sibling parent Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 03/12/2015 06:07 PM, Andrei Alexandrescu wrote:
 I wonder how this could have happened. Here's what I did:

 git clone --quiet -b v2.066.1 --depth=1
 git://github.com/D-Programming-Language/dmd.git dmd-2.066.1

 git clone --quiet -b v2.066.1 --depth=1
 git://github.com/D-Programming-Language/druntime.git druntime-2.066.1

 git clone --quiet -b v2.066.1 --depth=1
 git://github.com/D-Programming-Language/phobos.git phobos-2.066.1

 After this I had three nice directories. Then I built dmd, it worked.
 Then I built druntime making sure I pass DMD=../dmd-2.066.1/src/dmd in
 make's command line. That worked, too.

 When I built phobos I got:

 ====
 Error: unrecognized switch '-conf='
 ====

 How did it happen that the -conf= flag is required by phobos 2.066.1 yet
 was not implemented in the same version of dmd?


 Thanks,

 Andrei
I haven't tried in a fresh VM, but that all works for me on Debian testing x64. I made sure no DMD was on my path and did this: $ which dmd $ mkdir test $ cd test $ git clone --quiet -b v2.066.1 --depth=1 git://github.com/D-Programming-Language/dmd.git dmd-2.066.1 $ git clone --quiet -b v2.066.1 --depth=1 git://github.com/D-Programming-Language/druntime.git druntime-2.066.1 $ git clone --quiet -b v2.066.1 --depth=1 git://github.com/D-Programming-Language/phobos.git phobos-2.066.1 $ cd dmd-2.066.1 $ make -f posix.mak $ cd ../druntime-2.066.1 $ make -f posix.mak DMD=../dmd-2.066.1/src/dmd $ cd ../phobos-2.066.1 $ make -f posix.mak DMD=../dmd-2.066.1/src/dmd DRUNTIME_PATH=../druntime-2.066.1 Any difference from the make arguments you used? What OS?
Mar 16 2015