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

Exception when running buck build #1

Closed
JakeSc opened this issue Aug 20, 2017 · 2 comments
Closed

Exception when running buck build #1

JakeSc opened this issue Aug 20, 2017 · 2 comments

Comments

@JakeSc
Copy link

JakeSc commented Aug 20, 2017

$ buck build src/ImportObjC
[-] PROCESSING BUCK FILES...FINISHED 0.0s 🏖  Watchman reported no changes
[-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)
[-] BUILDING...FINISHED 0.0s
[2017-08-20 13:00:48.450][error][command:null][tid:313][com.facebook.buck.cli.Main] Uncaught exception at top level
java.lang.StackOverflowError
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
	at java.util.TimSort.sort(TimSort.java:220)
	at java.util.Arrays.sort(Arrays.java:1512)
	at com.google.common.collect.ImmutableSortedSet.construct(ImmutableSortedSet.java:369)
	at com.google.common.collect.ImmutableSortedSet.copyOf(ImmutableSortedSet.java:298)
	at com.google.common.collect.ImmutableSortedSet.copyOf(ImmutableSortedSet.java:321)
	at com.google.common.collect.ImmutableSortedSet.copyOf(ImmutableSortedSet.java:235)
	at com.facebook.buck.rules.TargetNodeFactory.create(TargetNodeFactory.java:124)
	at com.facebook.buck.rules.TargetNodeFactory.copyNodeWithFlavors(TargetNodeFactory.java:188)
	at com.facebook.buck.rules.TargetNode.copyWithFlavors(TargetNode.java:202)
	at com.facebook.buck.rules.TargetGraph.getInternal(TargetGraph.java:68)
	at com.facebook.buck.rules.TargetGraph.get(TargetGraph.java:78)
	at com.facebook.buck.rules.BuildRuleResolver.requireRule(BuildRuleResolver.java:132)
	at com.facebook.buck.rules.BuildRuleResolver.requireAllRules(BuildRuleResolver.java:158)
	at com.facebook.buck.rules.DefaultTargetNodeToBuildRuleTransformer.transform(DefaultTargetNodeToBuildRuleTransformer.java:39)
	at com.facebook.buck.rules.BuildRuleResolver.requireRule(BuildRuleResolver.java:133)

The stack trace is hundreds of lines long, and consists of the last three lines repeated.

@JakeSc
Copy link
Author

JakeSc commented Aug 20, 2017

I don't see this anymore after upgrading Buck from 2017.05.09.01 to 2017.05.31.01. However, I do see a compile error:

#import <ImportObjC/A.h>
        ^
<unknown>:0: error: failed to import bridging header 'src/ImportObjC/bridging-header.h'

I'll dig in and perhaps file another issue. Closing this one.

@JakeSc JakeSc closed this as completed Aug 20, 2017
@zayhero-zz
Copy link
Collaborator

@JakeSc
The requireRule dead loop is caused by a bug in watchman, you can turn it off or specify NO_BUCKD=True in your buck build command to get around it.

For the import issue is caused, as what we put on the this repo README, the mixed languages build does NOT work with buck master repo.
It only work with our fork https://github.com/airbnb/buck/tree/airbnb_ios_current.

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

2 participants