Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building from source failed #3188

Closed
adamdruppe opened this issue Oct 10, 2019 · 5 comments · Fixed by #3191

Comments

@adamdruppe
Copy link

@adamdruppe adamdruppe commented Oct 10, 2019

I downloaded, git submodule init, cmake ., make and it spat this out:

[ 27%] Built target LDCShared
make[2]: *** No rule to make target 'lib/libldmd.a', needed by 'bin/ldmd2'. Stop.
make[1]: *** [CMakeFiles/Makefile2:126: CMakeFiles/ldmd2.dir/all] Error 2

did i miss something or is the makefile broken?

@kinke

This comment has been minimized.

Copy link
Member

@kinke kinke commented Oct 10, 2019

We don't recommend building with make, but ninja instead (https://wiki.dlang.org/Building_LDC_from_source), though such an error should obviously never surface (and I've never seen it).

@adamdruppe

This comment has been minimized.

Copy link
Author

@adamdruppe adamdruppe commented Oct 10, 2019

well a fresh thing with ninja worked this time. maybe something crept into the cmake thingy cuz it isn't as widely used.

i'm willing to close this as user error if you all have never seen it either.

(btw I kinda wanna work on porting the objective C stuff from dmd over to ldc over the next couple weeks!)

@kinke

This comment has been minimized.

Copy link
Member

@kinke kinke commented Oct 10, 2019

well a fresh thing with ninja worked this time

Using the src dir directly as build dir again, as the 1st try with make? I've never tried that.

i'm willing to close this as user error if you all have never seen it either

It's strange because AFAIK we don't have any special logic for ninja/make at all. I assume you're using GNU make?

btw I kinda wanna work on porting the objective C stuff from dmd over to ldc

All the best. You don't need to start from 0, it's only the 2.080 and 2.085 additions (#3007, #2670) that haven't been ported. [I haven't heard a single request/complaint so far.]

@Alzimzim

This comment has been minimized.

Copy link

@Alzimzim Alzimzim commented Oct 15, 2019

I downloaded, git submodule init, cmake ., make and it spat this out:

[ 27%] Built target LDCShared
make[2]: *** No rule to make target 'lib/libldmd.a', needed by 'bin/ldmd2'. Stop.
make[1]: *** [CMakeFiles/Makefile2:126: CMakeFiles/ldmd2.dir/all] Error 2

did i miss something or is the makefile broken?

I rolled back to v1.17.0
1.18.0-beta2 does not work build with LLVM9

kinke added a commit to kinke/ldc that referenced this issue Oct 15, 2019
@kinke

This comment has been minimized.

Copy link
Member

@kinke kinke commented Oct 15, 2019

maybe something crept into the cmake thingy

Indeed, very recently in the Android PR.

@kinke kinke closed this in #3191 Oct 16, 2019
kinke added a commit that referenced this issue Oct 16, 2019
Fixes #3188.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.