Skip to content

libnftnl: Enable parallel building. Disable -fortify when cross-compiling with Clang#195975

Closed
peperunas wants to merge 2 commits intoNixOS:stagingfrom
peperunas:libnftnl-i686
Closed

libnftnl: Enable parallel building. Disable -fortify when cross-compiling with Clang#195975
peperunas wants to merge 2 commits intoNixOS:stagingfrom
peperunas:libnftnl-i686

Conversation

@peperunas
Copy link
Copy Markdown
Contributor

Description of changes

This issue is part of a series of bugfixes to improve the i686 cross-compilation pipeline.

Tracking issue: #195967

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested review from ajs124 and fpletz October 14, 2022 13:45
@ofborg ofborg bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Oct 14, 2022
@lovesegfault
Copy link
Copy Markdown
Member

This has to target staging due to the mass rebuilds.

@peperunas peperunas changed the base branch from master to staging October 15, 2022 15:36
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You sure this isn't an exported symbol and we're not changing the ABI by doing this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, have you checked this can't be solved by simply doing hardeningDisable = lib.optional stdenv.cc.isClang "fortify"?

I would check but I'm unable to reproduce your problem - don't know how you're building things but pkgsLLVM.libnftnl builds for me without problems.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely @risicle; thank you for your suggestion.

I have also added an extra check to make sure we are cross-compiling.

@peperunas peperunas force-pushed the libnftnl-i686 branch 2 times, most recently from 20aa343 to 0bd67a1 Compare October 20, 2022 14:13
@peperunas peperunas changed the title libnftnl: Fix clang build libnftnl: Enable parallel building. Disable -fortify when cross-compiling with Clang Oct 20, 2022
@peperunas peperunas requested review from risicle and removed request for ajs124 and fpletz October 20, 2022 14:19
@ofborg ofborg bot requested review from ajs124 and fpletz October 20, 2022 14:28
@siraben
Copy link
Copy Markdown
Member

siraben commented Nov 1, 2022

Result of nixpkgs-review pr 195975 run on aarch64-darwin 1

296 packages marked as broken and skipped:
  • ajour
  • almanah
  • arcanPackages.arcan
  • arcanPackages.xarcan
  • baresip
  • bashSnippets
  • beamerpresenter
  • beamerpresenter-mupdf
  • beamerpresenter-poppler
  • bedup
  • biboumi
  • bluetooth_battery
  • brickd
  • brltty
  • btrbk
  • bucklespring-libinput
  • cardboard
  • chkservice
  • cloud-init
  • clutter
  • codecserver
  • connman_dmenu
  • cutemaze
  • dbmonster
  • dhcp
  • digiham
  • dockle
  • emacsPackages.ac-mozc
  • emacsPackages.mozc
  • emacsPackages.mozc-cand-posframe
  • emacsPackages.mozc-im
  • emacsPackages.mozc-popup
  • emacsPackages.mozc-temp
  • entangle
  • evillimiter
  • exaile
  • fast-cli
  • fgallery
  • filebeat7
  • flycast
  • fusionInventory
  • gcr_4
  • gmic-qt-krita
  • gnome-recipes
  • gnome.nautilus-python
  • gusb
  • hyperion-ng
  • ibus-engines.libthai
  • idasen
  • ike
  • journalbeat
  • journalbeat6
  • jpsxdec
  • kaffeine
  • kodiPackages.inputstream-adaptive
  • kodiPackages.inputstream-ffmpegdirect
  • kodiPackages.inputstream-rtmp
  • kodiPackages.joystick
  • kodiPackages.libretro
  • kodiPackages.libretro-genplus
  • kodiPackages.libretro-mgba
  • kodiPackages.libretro-snes9x
  • kodiPackages.pvr-hdhomerun
  • kodiPackages.pvr-hts
  • kodiPackages.pvr-iptvsimple
  • kodiPackages.steam-controller
  • kodiPackages.vfs-libarchive
  • kodiPackages.vfs-sftp
  • kodiPackages.visualization-waveform
  • krunner-pass
  • latte-dock
  • liberio
  • libinput
  • liblogging
  • libmanette
  • libretro.dolphin
  • libsForQt5.alkimia
  • libsForQt5.falkon
  • libsForQt512.alkimia
  • libsForQt512.falkon
  • libsForQt514.alkimia
  • libsForQt514.falkon
  • libsForQt515.alkimia
  • libsForQt515.falkon
  • lightly-qt
  • linux-wifi-hotspot
  • lorien
  • maia-icon-theme
  • malcontent
  • malcontent-ui
  • mate.mate-power-manager
  • mate.mate-screensaver
  • mate.mate-session-manager
  • mate.mate-system-monitor
  • mate.mate-utils
  • mirakurun
  • miredo
  • mojave-gtk-theme
  • mullvad
  • neard
  • networkmanager_dmenu
  • onboard
  • openwebrx
  • pandoc-drawio-filter
  • pdns
  • perl534Packages.LogJournald
  • perl536Packages.LogJournald
  • picard
  • piglit
  • plasma-pass
  • plasma5Packages.alkimia
  • plasma5Packages.falkon
  • polaris
  • polaris-web
  • prometheus-postfix-exporter
  • pulseaudioFull
  • puppeteer-cli
  • pykms
  • python310Packages.adax-local
  • python310Packages.aiohomekit
  • python310Packages.airthings-ble
  • python310Packages.atc-ble
  • python310Packages.bedup
  • python310Packages.bleak-retry-connector
  • python310Packages.bless
  • python310Packages.bluemaestro-ble
  • python310Packages.bluetooth-adapters
  • python310Packages.bluetooth-sensor-state-data
  • python310Packages.bt-proximity
  • python310Packages.bthome-ble
  • python310Packages.cometblue-lite
  • python310Packages.ds4drv
  • python310Packages.fjaraskupan
  • python310Packages.gattlib
  • python310Packages.govee-ble
  • python310Packages.guestfs
  • python310Packages.halohome
  • python310Packages.home-assistant-bluetooth
  • python310Packages.homeassistant-pyozw
  • python310Packages.ibeacon-ble
  • python310Packages.idasen
  • python310Packages.inkbird-ble
  • python310Packages.journalwatch
  • python310Packages.kegtron-ble
  • python310Packages.led-ble
  • python310Packages.loopy
  • python310Packages.mkdocs-drawio-exporter
  • python310Packages.moat-ble
  • python310Packages.nxt-python
  • python310Packages.paperwork-backend
  • python310Packages.paperwork-shell
  • python310Packages.pybluez
  • python310Packages.pycec
  • python310Packages.pydigiham
  • python310Packages.pykulersky
  • python310Packages.pymicrobot
  • python310Packages.pyqt6
  • python310Packages.pyqt6-webengine
  • python310Packages.pystemd
  • python310Packages.python-gammu
  • python310Packages.python-uinput
  • python310Packages.python-vlc
  • python310Packages.pyudev
  • python310Packages.qingping-ble
  • python310Packages.rtslib
  • python310Packages.sensorpro-ble
  • python310Packages.sensorpush-ble
  • python310Packages.systemd
  • python310Packages.thermobeacon-ble
  • python310Packages.thermopro-ble
  • python310Packages.tilt-ble
  • python310Packages.tpm2-pytss
  • python310Packages.xiaomi-ble
  • python310Packages.yalexs-ble
  • python39Packages.adax-local
  • python39Packages.aiohomekit
  • python39Packages.airthings-ble
  • python39Packages.atc-ble
  • python39Packages.bedup
  • python39Packages.bleak-retry-connector
  • python39Packages.bless
  • python39Packages.bluemaestro-ble
  • python39Packages.bluetooth-adapters
  • python39Packages.bluetooth-sensor-state-data
  • python39Packages.bt-proximity
  • python39Packages.bthome-ble
  • python39Packages.cometblue-lite
  • python39Packages.ds4drv
  • python39Packages.fjaraskupan
  • python39Packages.gattlib
  • python39Packages.govee-ble
  • python39Packages.guestfs
  • python39Packages.halohome
  • python39Packages.home-assistant-bluetooth
  • python39Packages.homeassistant-pyozw
  • python39Packages.ibeacon-ble
  • python39Packages.idasen
  • python39Packages.inkbird-ble
  • python39Packages.journalwatch
  • python39Packages.kegtron-ble
  • python39Packages.led-ble
  • python39Packages.loopy
  • python39Packages.mkdocs-drawio-exporter
  • python39Packages.moat-ble
  • python39Packages.nxt-python
  • python39Packages.paperwork-backend
  • python39Packages.paperwork-shell
  • python39Packages.pybluez
  • python39Packages.pycec
  • python39Packages.pydigiham
  • python39Packages.pykulersky
  • python39Packages.pymicrobot
  • python39Packages.pyqt6
  • python39Packages.pyqt6-webengine
  • python39Packages.pystemd
  • python39Packages.python-gammu
  • python39Packages.python-uinput
  • python39Packages.python-vlc
  • python39Packages.pyudev
  • python39Packages.qingping-ble
  • python39Packages.rtslib
  • python39Packages.sensorpro-ble
  • python39Packages.sensorpush-ble
  • python39Packages.systemd
  • python39Packages.thermobeacon-ble
  • python39Packages.thermopro-ble
  • python39Packages.tilt-ble
  • python39Packages.tpm2-pytss
  • python39Packages.xiaomi-ble
  • python39Packages.yalexs-ble
  • qemu_full
  • qemu_xen
  • qemu_xen-light
  • qemu_xen_4_10
  • qemu_xen_4_10-light
  • qlcplus
  • qt6Packages.poppler
  • qt6Packages.quazip
  • quassel
  • quasselClient
  • quodlibet
  • quodlibet-full
  • quodlibet-without-gst-plugins
  • quodlibet-xine
  • quodlibet-xine-full
  • qutebrowser-qt6
  • retroarchFull
  • rpcbind
  • rshell
  • rubyPackages.ruby-lxc
  • rubyPackages_2_7.ruby-lxc
  • rubyPackages_3_0.ruby-lxc
  • rubyPackages_3_1.ruby-lxc
  • run-scaled
  • sanoid
  • sharedown
  • strongswanNM
  • stubby
  • sublime-music
  • subsurface
  • sway-contrib.grimshot
  • sysprof
  • telepresence
  • tvheadend
  • udiskie
  • uhub
  • unbound-full
  • unbound-with-systemd
  • update-resolv-conf
  • utox
  • vimix-gtk-themes
  • virt-manager-qt
  • waffle
  • waybar
  • wayfire
  • wayfireApplications-unwrapped.wayfire
  • wayfireApplications-unwrapped.wayfirePlugins.wayfire
  • wayfireApplications-unwrapped.wayfirePlugins.wf-shell
  • wayfireApplications-unwrapped.wcm
  • wayfirePlugins.wayfire
  • wayfirePlugins.wf-shell
  • wcm
  • whitesur-gtk-theme
  • wshowkeys
  • x11basic
  • xfce.xfce4-weather-plugin
  • xorg.xf86inputevdev
  • xorg.xf86inputlibinput
  • xorg.xf86videoamdgpu
  • xorg.xf86videoati
  • xorg.xf86videonouveau
  • xorg.xf86videoopenchrome
  • xorg.xf86videoqxl
  • yambar
  • zerotierone
  • zpool-auto-expand-partitions

@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 3, 2024
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 9, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 9, 2024
@NickCao
Copy link
Copy Markdown
Member

NickCao commented Dec 4, 2024

No longer seems to be an issue on current master, and the package builds quick enough even without parallel building.

@NickCao NickCao closed this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants