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 on fedora 25 (x64) #30435

Closed
crunch3 opened this issue Aug 15, 2017 · 4 comments
Closed

building from source on fedora 25 (x64) #30435

crunch3 opened this issue Aug 15, 2017 · 4 comments

Comments

@crunch3
Copy link

crunch3 commented Aug 15, 2017

Executing: ./tools/build.py --mode release --arch x64 create_sdk
I get the following...
gn gen --check in out/ReleaseX64
Traceback (most recent call last):
File "/home/mike/Downloads/dart-lang/sdk/tools/gn.py", line 496, in
sys.exit(Main(sys.argv))
File "/home/mike/Downloads/dart-lang/sdk/tools/gn.py", line 483, in Main
results = pool.map(RunCommand, commands, chunksize=1)
File "/usr/lib64/python2.7/multiprocessing/pool.py", line 251, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib64/python2.7/multiprocessing/pool.py", line 567, in get
raise self._value
OSError: [Errno 2] No such file or directory
Tried to run GN, but it failed. Try running it manually:
$ python /home/mike/Downloads/dart-lang/sdk/tools/gn.py -m release -a x64 - -os host -v
Traceback (most recent call last):
File "./tools/build.py", line 616, in
sys.exit(Main())
File "./tools/build.py", line 609, in Main
mode, arch) != 0:
File "./tools/build.py", line 489, in BuildOneConfig
args = BuildNinjaCommand(options, target, target_os, mode, arch)
File "./tools/build.py", line 471, in BuildNinjaCommand
if UseGoma(out_dir):
File "./tools/build.py", line 429, in UseGoma
return 'use_goma = true' in open(args_gn, 'r').read()
IOError: [Errno 2] No such file or directory: 'out/ReleaseX64/args.gn'

@rmacnak-google
Copy link
Contributor

Did you get an error when you gclient syncd? I suspect it failed or got interrupted if you're missing out/ReleaseX64/args.gn.

@crunch3
Copy link
Author

crunch3 commented Aug 16, 2017

I didn't have gclient. I used git clone https://github.com/dart-lang/sdk/ in a dart-lang directory.
I deleted the sdk, re-cloning with git and got the same error. gn.py (496 lines worth) is present in tools.
....... so, I installed the depot_tools and building!

@crunch3 crunch3 closed this as completed Aug 16, 2017
@wzhuzhu
Copy link

wzhuzhu commented Nov 8, 2017

on fc26, build ok.
step:

sudo yum -y install git subversion make gcc-c++  libstdc++.i686
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:`pwd`/depot_tools
mkdir dart-sdk
cd dart-sdk
gclient config https://dart.googlesource.com/sdk.git
gclient sync
cd sdk
./tools/build.py --mode release --arch x64 create_sdk

@MuAladdinIbrahim
Copy link

I made the steps and terminal shows me that. what the solution to build dart sdk ?

ninja -C out/ReleaseX64 create_sdk
ninja: Entering directory `out/ReleaseX64'
ninja: error: loading 'build.ninja': No such file or directory
BUILD FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants