Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 14561] New: OpenJDK does not compile when building in WSL
@ 2022-01-31 18:10 bugzilla
  2024-06-15 15:00 ` [Buildroot] [Bug 14561] " bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-01-31 18:10 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14561

            Bug ID: 14561
           Summary: OpenJDK does not compile when building in WSL
           Product: buildroot
           Version: 2021.11
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: colin.foster@in-advantage.com
                CC: buildroot@uclibc.org
  Target Milestone: ---

Tested in 2021.11. As the summary suggests, when building in WSLv2, OpenJDK
fails. If I were to wager a guess, OpenJDK is trying to be too smart about the
fact that it is building on a Windows OS. Jumping to a Linux machine and
compiling with the same config works as expected.

checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for a sed that does not truncate output... /usr/bin/sed
checking for df... /usr/bin/df
checking for nice... /usr/bin/nice
checking for greadlink... [not found]
checking for readlink... /usr/bin/readlink
checking for cygpath... [not found]
checking for wslpath... /usr/bin/wslpath
checking for lsb_release... /usr/bin/lsb_release
checking for cmd.exe... /mnt/c/Windows/system32/cmd.exe
checking for cmp... /usr/bin/cmp
checking for uniq... /usr/bin/uniq
checking build system type... x86_64-pc-wsl
checking host system type... arm-buildroot-linux-gnueabihf
checking target system type... arm-buildroot-linux-gnueabihf
checking openjdk-build os-cpu... windows-x86_64
checking openjdk-target os-cpu... linux-arm
checking openjdk-target C library... default
checking compilation type... cross
/home/colin/src/buildroot/output/build/openjdk-17.0.1+12/build/.configure-support/generated-configure.sh:
line 34833: import: command not found
/home/colin/src/buildroot/output/build/openjdk-17.0.1+12/build/.configure-support/generated-configure.sh:
line 34834: verify: command not found
configure: error: The path of TOPDIR, which resolves as
"/home/colin/src/buildroot/output/build/openjdk-17.0.1+12", could not be
imported.
configure exiting with result code 1
make: *** [package/pkg-generic.mk:285:
/home/colin/src/buildroot/output/build/openjdk-17.0.1+12/.stamp_configured]
Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-15 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-31 18:10 [Buildroot] [Bug 14561] New: OpenJDK does not compile when building in WSL bugzilla
2024-06-15 15:00 ` [Buildroot] [Bug 14561] " bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox