Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799227 - dev-java/openjfx-8.1000: fails to build with whitespace in LDFLAGS (gcc: error: : linker input file not found: No such file or directory)
Summary: dev-java/openjfx-8.1000: fails to build with whitespace in LDFLAGS (gcc: erro...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-29 14:18 UTC by Toralf Förster
Modified: 2024-03-06 15:29 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.69 KB, text/plain)
2021-06-29 14:18 UTC, Toralf Förster
Details
dev-java:openjfx-8.1000:20210629-133101.log (dev-java:openjfx-8.1000:20210629-133101.log,365.49 KB, text/plain)
2021-06-29 14:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,372.67 KB, text/plain)
2021-06-29 14:18 UTC, Toralf Förster
Details
environment (environment,178.76 KB, text/plain)
2021-06-29 14:18 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,26.95 KB, application/x-bzip)
2021-06-29 14:18 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 2021-06-29 14:18:41 UTC
Starting process 'command 'gcc''. Working directory: /var/tmp/portage/dev-java/openjfx-8.1000/work/openjfx-8.1000/modules/graphics Command: gcc -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -W -Wall -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -pipe -march=native -fno-diagnostics-color -O2  -fcommon -I/usr/lib64/openjdk-8/include -I/usr/lib64/openjdk-8/include/linux -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -ffast-math -I/var/tmp/portage/dev-java/openjfx-8.1000/work/openjfx-8.1000/modules/graphics/build/generated-src/headers/jsl-decora -I/var/tmp/portage/dev-java/openjfx-8.1000/work/openjfx-8.1000/modules/graphics/build/generated-src/jsl-decora -I/var/tmp/portage/dev-java/openjfx-8.1000/work/openjfx-8.1000/modules/graphics/src/main/native-decora -o /var/tmp/portage/dev-java/openjfx-8.1000/work/openjfx-8.1000/modules/graphics/build/native/jsl-decora/linux/SSEBlend_SRC_OVERPeer.obj /var/tmp/portage/dev-java/openjfx-8.1000/work/openjfx-8.1000/modules/graphics/build/generated-src/jsl-decora/SSEBlend_SRC_OVERPeer.cc

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j3-20210622-121719

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.1.0 *
/usr/lib/llvm/12
12.0.0
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
1)	OpenJDK 8.292_p10 [openjdk-8]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *
  HEAD of ::gentoo
commit 7b719f3c1d7c5e8b9ea650e31e9f5a7a2570b66b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jun 29 12:06:37 2021 +0000

    2021-06-29 12:06:36 UTC

emerge -qpvO dev-java/openjfx
[ebuild  N    ] dev-java/openjfx-11.0.9_p0  USE="media -debug -doc -source" CPU_FLAGS_X86="sse2"
Comment 1 Toralf Förster gentoo-dev 2021-06-29 14:18:42 UTC
Created attachment 720159 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-29 14:18:44 UTC
Created attachment 720162 [details]
dev-java:openjfx-8.1000:20210629-133101.log
Comment 3 Toralf Förster gentoo-dev 2021-06-29 14:18:46 UTC
Created attachment 720165 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-06-29 14:18:47 UTC
Created attachment 720168 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-06-29 14:18:49 UTC
Created attachment 720171 [details]
etc.portage.tar.bz2
Comment 6 freswa 2022-02-17 00:31:14 UTC
We've investigated this in our build and it was caused by consecutive spaces in our CFLAGS variable which led to gradle parsing every space as an argument. Just a heads up for you and everyone who's finding this on google :)
Comment 7 Georgy Yakovlev archtester gentoo-dev 2022-02-17 04:09:47 UTC
(In reply to freswa from comment #6)
> We've investigated this in our build and it was caused by consecutive spaces
> in our CFLAGS variable which led to gradle parsing every space as an
> argument. Just a heads up for you and everyone who's finding this on google
> :)

lol, thanks for letting us know.
not sure what to do here besides burning gradle and forgetting about it.

I think I'll remove openjfx-8 since it's unsupported and likely very vulnerable despite patchset with backports.

openjfx-11 or 17 should be better.
Comment 8 Larry the Git Cow gentoo-dev 2024-03-06 15:21:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6da9779d9b80919be7a96f11a5316f74746d4d0f

commit 6da9779d9b80919be7a96f11a5316f74746d4d0f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-06 15:18:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-06 15:21:36 +0000

    dev-java/openjfx: various fixes to 11.x
    
    I don't even know where to start with this, so I'll keep it brief before
    I pop several veins.
    
    * Filter LTO (bundled gstreamer breaks).
    * Waste several hours debugging broken arg handling, despite inventing a DSL
      for the build system, making the same errors as CMake. Most of the build
      failure bugs linked are actually because of whitespace _somewhere_ within
      {C,CXX,LD}FLAGS. Strip it.
    * Respect AR, CC, CXX.
    * Various Modern C fixes from Fedora (and are upstream).
    
    Bug: https://bugs.gentoo.org/713488
    Bug: https://bugs.gentoo.org/857942
    Closes: https://bugs.gentoo.org/715092
    Closes: https://bugs.gentoo.org/719484
    Closes: https://bugs.gentoo.org/799227
    Closes: https://bugs.gentoo.org/915727
    Closes: https://bugs.gentoo.org/919413
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/openjfx/files/11/0001-c99.patch           |  22 ++
 dev-java/openjfx/files/11/0002-c99.patch           |  18 ++
 dev-java/openjfx/files/11/0003-c99.patch           |  19 ++
 dev-java/openjfx/files/11/respect-cc.patch         |  15 ++
 .../files/11/strip-blank-elements-flags.patch      |  29 +++
 dev-java/openjfx/openjfx-11.0.11_p1-r2.ebuild      | 231 +++++++++++++++++++++
 6 files changed, 334 insertions(+)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-06 15:23:42 UTC
Technically not fixed for 8, but I'm not going to do it.