Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
$ ./tools/build.py samples/sample_extension/sample_extension
make -j 6 BUILDTYPE=DebugIA32 samples/sample_extension/sample_extension
g++ samples/sample_extension/sample_extension.cc -o samples/sample_extension/sample_extension
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 4 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 5 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 6 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 7 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 8 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 9 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 10 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 11 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 12 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 13 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 14 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 15 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 16 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 17 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 18 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 19 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 20 has invalid symbol index 20
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/ccYc34X4.o: In function `sample_extension_Init':
sample_extension.cc:(.text+0x14): undefined reference to `Dart_IsError'
sample_extension.cc:(.text+0x2f): undefined reference to `Dart_SetNativeResolver'
sample_extension.cc:(.text+0x3f): undefined reference to `Dart_IsError'
sample_extension.cc:(.text+0x4e): undefined reference to `Dart_Null'
/tmp/ccYc34X4.o: In function `HandleError(_Dart_Handle*)':
sample_extension.cc:(.text+0x68): undefined reference to `Dart_IsError'
sample_extension.cc:(.text+0x78): undefined reference to `Dart_PropagateError'
/tmp/ccYc34X4.o: In function `SystemRand(_Dart_NativeArguments*)':
sample_extension.cc:(.text+0x8f): undefined reference to `Dart_EnterScope'
sample_extension.cc:(.text+0x9e): undefined reference to `Dart_NewInteger'
sample_extension.cc:(.text+0xbd): undefined reference to `Dart_SetReturnValue'
sample_extension.cc:(.text+0xc2): undefined reference to `Dart_ExitScope'
/tmp/ccYc34X4.o: In function `SystemSrand(_Dart_NativeArguments*)':
sample_extension.cc:(.text+0xd5): undefined reference to `Dart_EnterScope'
sample_extension.cc:(.text+0xea): undefined reference to `Dart_GetNativeArgument'
sample_extension.cc:(.text+0x102): undefined reference to `Dart_IsInteger'
sample_extension.cc:(.text+0x119): undefined reference to `Dart_IntegerFitsIntoInt64'
sample_extension.cc:(.text+0x13c): undefined reference to `Dart_IntegerToInt64'
sample_extension.cc:(.text+0x15e): undefined reference to `Dart_NewBoolean'
sample_extension.cc:(.text+0x178): undefined reference to `Dart_SetReturnValue'
sample_extension.cc:(.text+0x17d): undefined reference to `Dart_ExitScope'
/tmp/ccYc34X4.o: In function `wrappedRandomArray(long, long, _Dart_CObject*)':
sample_extension.cc:(.text+0x2f2): undefined reference to `Dart_PostCObject'
sample_extension.cc:(.text+0x31d): undefined reference to `Dart_PostCObject'
/tmp/ccYc34X4.o: In function `randomArrayServicePort(_Dart_NativeArguments*)':
sample_extension.cc:(.text+0x330): undefined reference to `Dart_EnterScope'
sample_extension.cc:(.text+0x335): undefined reference to `Dart_Null'
sample_extension.cc:(.text+0x347): undefined reference to `Dart_SetReturnValue'
sample_extension.cc:(.text+0x35b): undefined reference to `Dart_NewNativePort'
sample_extension.cc:(.text+0x372): undefined reference to `Dart_NewSendPort'
sample_extension.cc:(.text+0x391): undefined reference to `Dart_SetReturnValue'
sample_extension.cc:(.text+0x396): undefined reference to `Dart_ExitScope'
/tmp/ccYc34X4.o: In function `ResolveName(_Dart_Handle*, int)':
sample_extension.cc:(.text+0x3b3): undefined reference to `Dart_IsString8'
sample_extension.cc:(.text+0x3d1): undefined reference to `Dart_EnterScope'
sample_extension.cc:(.text+0x3e4): undefined reference to `Dart_StringToCString'
sample_extension.cc:(.text+0x451): undefined reference to `Dart_ExitScope'
collect2: ld returned 1 exit status
make: *** [samples/sample_extension/sample_extension] Error 1
BUILD FAILED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment