Internal error: Invalid feature tested: fprof

David Holmes david.holmes at oracle.com
Wed Aug 22 10:03:24 UTC 2018


On 22/08/2018 5:20 PM, Petr Sumbera wrote:
> But maybe I use just wrong repo:
> 
> http://hg.openjdk.java.net/jdk10/jdk10/
> 
> I should probably use:
> 
> http://hg.openjdk.java.net/jdk/jdk10/

The former is an old version of the latter (before repositories were 
consolidated). The latter was used to produce the JDK 10 GA release. As 
Andrew notes further updates are in the jdk10u forest.

That aside, checking out either of the above forests should still give 
you a buildable repo _provided_ your build tools and environment are 
compatible with the version you are trying to build.

The jdk10/jdk10 forest still has fprof but that doesn't explain why you 
got an error.

The jdk/jdk10 forest doesn't have fprof so you'd get the error if you 
tried to ask for it.

The build log you linked doesn't show the fprof error it shows the javac 
error.

The javac error is caused by your boot JDK being too old:

* Boot JDK:       java version "1.8.0_172"

To build JDK 10 you need a JDK 9 boot JDK.

David
-----

> ?
> 
> Sorry I new to this.
> 
> Petr
> 
> On 22.08.2018 9:17, Petr Sumbera wrote:
>> Hi David,
>>
>> On 22.08.2018 3:28, David Holmes wrote:
>>> Hi Petr,
>>>
>>> On 22/08/2018 12:03 AM, Petr Sumbera wrote:
>>>> Hi,
>>>>
>>>> I'm building JDK 10 for Solaris and I'm getting following error:
>>>>
>>>> gmake[4]: Leaving directory 
>>>> '/builds/psumbera/userland-openjdk/components/openjdk-10/hotspot/make'
>>>> lib/JvmFeatures.gmk:91: *** Internal error: Invalid feature tested: 
>>>> fprof.  Stop.
>>>
>>> fprof was removed during JDK 10 development. Are you using an old 
>>> script to call configure?
>>
>> Possibly. This is my build log:
>>
>> http://strax.us.oracle.com//builds/psumbera/userland-openjdk/components/openjdk-10/build.log 
>>
>>
>> which calls:
>>
>> "/builds/psumbera/userland-openjdk/components/openjdk-10/jdk-10-dbc0484fa215/configure" 
>>
>>
>> To overcome the issue I have tried:
>>
>> http://strax.us.oracle.com//builds/psumbera/userland-openjdk/components/openjdk-10/patches/hotspot-fprof.patch_1 
>>
>>
>> But it gives me another issue (probably not related):
>>
>> ERROR: Build failed for target 'all' in configuration 
>> '/builds/psumbera/userland-openjdk/components/openjdk-10/build/amd64' 
>> (exit code 2)
>> gmake[3]: Entering directory 
>> '/builds/psumbera/userland-openjdk/components/openjdk-10/jdk-10-dbc0484fa215' 
>>
>>
>> === Output from failing command(s) repeated here ===
>> * For target jdk_modules_java.base__the.java.base_batch:
>> javac: invalid source release: 10
>> Usage: javac <options> <source files>
>> use --help for a list of possible options
>>
>> * All command lines available in 
>> /builds/psumbera/userland-openjdk/components/openjdk-10/build/amd64/make-support/failure-logs. 
>>
>> === End of repeated output ===
>>
>> Thanks!
>>
>> Petr



More information about the build-dev mailing list