strange error when running jtreg tests
David Holmes
david.holmes at oracle.com
Fri Aug 12 23:56:13 UTC 2016
On 13/08/2016 12:50 AM, Maurizio Cimadamore wrote:
>
>
> On 12/08/16 14:12, David Holmes wrote:
>> On 12/08/2016 11:06 PM, Maurizio Cimadamore wrote:
>>> Hi,
>>>
>>> I've encountered this error when running jtreg tests from make using the
>>> following command line
>>>
>>> make test JT_HOME=<path to latest jtreg> TEST=jdk_util
>>>
>>> * For target
>>> support_test_hotspot_jtreg_native_support_exeinvoke_BUILD_TEST_invoke_link:
>>>
>>> /w/lt/9/dev/build/linux-x86_64-normal-server-release/support/test/hotspot/jtreg/native/support/exeinvoke/exeinvoke.o:
>>>
>>> In function `main':
>>> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:253:
>>>
>>> undefined reference to `JNI_CreateJavaVM'
>>> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:264:
>>>
>>> undefined reference to `pthread_create'
>>> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:265:
>>>
>>> undefined reference to `pthread_join'
>>> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:277:
>>>
>>> undefined reference to `pthread_create'
>>> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:278:
>>>
>>> undefined reference to `pthread_join'
>>> collect2: error: ld returned 1 exit status
>>> === End of repeated output ===
>>>
>>>
>>> This appeared after I refreshed my repo with latest sources. Anybody has
>>> any clue as to what this is?
>>
>> Did you run "make test-image" first?
>>
>> If not I think make is applying a default compilation rule for .c
>> files and that ain't gonna work.
>
> $ make test-image
>
> ERROR: Build failed for target 'test-image' in configuration
Did you do a clean first? I've not seen nor heard of this before.
David
-----
> 'linux-x86_64-normal-server-release' (exit code 2)
> === Output from failing command(s) repeated here ===
> * For target
> support_test_hotspot_jtreg_native_support_exeinvoke_BUILD_TEST_invoke_link:
> /w/lt/9/dev/build/linux-x86_64-normal-server-release/support/test/hotspot/jtreg/native/support/exeinvoke/exeinvoke.o:
> In function `main':
> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:253:
> undefined reference to `JNI_CreateJavaVM'
> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:264:
> undefined reference to `pthread_create'
> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:265:
> undefined reference to `pthread_join'
> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:277:
> undefined reference to `pthread_create'
> /w/lt/9/dev/hotspot/make/test/../../test/runtime/StackGuardPages/exeinvoke.c:278:
> undefined reference to `pthread_join'
> collect2: error: ld returned 1 exit status
>
>>
>> David
>>
>>> Maurizio
>>>
>
More information about the build-dev
mailing list