Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874621 - dev-java/openjdk-8.345_p01 - /.../LinuxNativeDispatcher.c: error: implicit declaration of function free [-Werror=implicit-function
Summary: dev-java/openjdk-8.345_p01 - /.../LinuxNativeDispatcher.c: error: implicit de...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
: 882239 (view as bug list)
Depends on:
Blocks: c99-porting, clang-16-porting
  Show dependency tree
 
Reported: 2022-10-03 10:29 UTC by Toralf Förster
Modified: 2022-11-20 21:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.40 KB, text/plain)
2022-10-03 10:29 UTC, Toralf Förster
Details
dev-java:openjdk-8.345_p01:20221003-094424.log.bz2 (dev-java:openjdk-8.345_p01:20221003-094424.log.bz2,98.15 KB, application/x-bzip)
2022-10-03 10:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,79.21 KB, text/plain)
2022-10-03 10:29 UTC, Toralf Förster
Details
environment (environment,164.61 KB, text/plain)
2022-10-03 10:29 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.95 KB, application/x-bzip)
2022-10-03 10:29 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,112.11 KB, application/x-bzip)
2022-10-03 10:29 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,133.19 KB, application/x-bzip)
2022-10-03 10:29 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-10-03 10:29:16 UTC
too long lines were shrinked:

echo  "Compiling MagicFileTypeDetector.c (for libnio.so)"
Compiling MagicFileTypeDetector.c (for libnio.so)
/usr/bin/x86_64-pc-linux-gnu-gcc -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 -pipe -fstack-protector -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -fno-omit-frame-pointer -D_LP64=1 -D_LITTLE_ENDIAN -DLINUX -DARCH='"amd64"' -Damd64 -DNDEBUG -DRELEASE='"1.8.0_345"' -
/var/tmp/portage/dev-java/openjdk-8.345_p01/work/jdk8u-jdk8u345-ga/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c: In function Java_sun_nio_fs_LinuxNativeDispatcher_getlinelen:
/var/tmp/portage/dev-java/openjdk-8.345_p01/work/jdk8u-jdk8u345-ga/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c:251:9: error: implicit declaration of function free [-Werror=implicit-function-declaration]
  251 |         free(lineBuffer);
      |         ^~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20221002-192609

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
GENTOO_VM=openjdk-bin-8  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.345_p01"
JAVACFLAGS="-source 8 -target 8" COMPILER=""
The following VMs are available for generation-2:
1)	OpenJDK 17.0.5_p5 [openjdk-17]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-17 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 74c0618a2d34ff6f9122f11ce7063d834bf90725
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 3 08:49:11 2022 +0000

    2022-10-03 08:49:10 UTC

emerge -qpvO dev-java/openjdk
[ebuild   R   ] dev-java/openjdk-17.0.5_p5  USE="alsa cups jbootstrap source (system-bootstrap) systemtap (-big-endian) -debug -doc -examples -headless-awt (-javafx) (-selinux)"
Comment 1 Toralf Förster gentoo-dev 2022-10-03 10:29:17 UTC
Created attachment 817549 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 10:29:21 UTC
Created attachment 817552 [details]
dev-java:openjdk-8.345_p01:20221003-094424.log.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-03 10:29:22 UTC
Created attachment 817555 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-03 10:29:25 UTC
Created attachment 817558 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-03 10:29:26 UTC
Created attachment 817561 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 10:29:28 UTC
Created attachment 817564 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-03 10:29:30 UTC
Created attachment 817567 [details]
temp.tar.bz2
Comment 8 Holger Hoffstätte 2022-10-03 11:47:22 UTC
There seems to be some confusion for this one.

- the buid uses gcc, not clang

- JDK-8 does not really build with clang on Linux due broken toolchain configuration; clang support in JDK-8 is meant for OSX. This was fixed in later JDKs: JDK-18 built & ran fine when I built it with clang a few months ago.

- JDK-8 itself is full of undefined behaviour and other problems which will make clang trip over or lead to segfaults in hotspot.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-20 21:52:46 UTC
*** Bug 882239 has been marked as a duplicate of this bug. ***