Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{febio, febio-studio}: darwin sdk refactor #352943

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

khaneliman
Copy link
Contributor

@khaneliman khaneliman commented Nov 1, 2024

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@khaneliman
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 352943


x86_64-linux


aarch64-linux


x86_64-darwin

❌ 2 packages failed to build:
  • febio
  • febio-studio

aarch64-darwin

@emilazy
Copy link
Member

emilazy commented Nov 1, 2024

I don’t remember why I did this in #331864 but probably I had a reason.

@khaneliman
Copy link
Contributor Author

Interesting... looking upstream they had available checks for 10.13 so I assumed it wouldn't need to do anything.

@emilazy
Copy link
Member

emilazy commented Nov 1, 2024

That’s backwards: the 10.12 SDK cannot compile code with availability checks for 10.13+ APIs, because it doesn’t have the 10.13+ APIs. Availability checks are a runtime thing: you need an SDK that is at least the maximum of all availability checks. Rarely, things will use the preprocessor MAC_OS_X_VERSION_MAX_ALLOWED definition to gate their availability checks, but in that case you’re still missing out on functionality for no gain in compatibility by using an old SDK.

@khaneliman
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 352943


x86_64-linux


aarch64-linux


x86_64-darwin

❌ 1 package failed to build:
  • febio-studio
✅ 1 package built:
  • febio

aarch64-darwin

@khaneliman
Copy link
Contributor Author

Interesting...

FAILED: CMakeFiles/FEBioStudio.dir/FEBioStudio/FileViewer.cpp.o
/nix/store/d2jm2gdf5qmyfbqk579f7h65sbi497sr-clang-wrapper-16.0.6/bin/clang++ -DFFMPEG -DHAS_SSH -DHAVE_ZLIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DTETLIBRARY -D__APPLE__
-I/tmp/nix-build-febio-studio-2.7.drv-0/source/build/CMakeFiles/AutoGen/FEBioStudio_autogen/include -I/tmp/nix-build-febio-studio-2.7.drv-0/source/.
-F/nix/store/nzfcir6lrdq1dx2vkwl5xv996p60zhnq-apple-sdk-12.3/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -isystem /nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/lib/QtCore.framework/Headers -iframework
/nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/lib -isystem /nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/mkspecs/macx-clang -isystem /nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/lib/QtWidgets.framework/Headers -isystem
/nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/lib/QtGui.framework/Headers -isystem /nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/lib/QtNetwork.framework/Headers -isystem /nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/lib/QtOpenGL.framework/Headers -isystem /nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/lib/QtOpenGLWidgets.framework/Headers -O3 -DNDEBUG -std=gnu++17 -isysroot /nix/store/nzfcir6lrdq1dx2vkwl5xv996p60zhnq-apple-sdk-12.3/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.15
-F/nix/store/6sqx120cqlp20k69fp5al6aji6rri5k0-apple-sdk-10.12.2/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks  -w -fPIC -MD -MT CMakeFiles/FEBioStudio.dir/FEBioStudio/FileViewer.cpp.o -MF CMakeFiles/FEBioStudio.dir/FEBioStudio/FileViewer.cpp.o.d -oCMakeFiles/FEBioStudio.dir/FEBioStudio/FileViewer.cpp.o -c /tmp/nix-build-febio-studio-2.7.drv-0/source/FEBioStudio/FileViewer.cpp
/tmp/nix-build-febio-studio-2.7.drv-0/source/FEBioStudio/FileViewer.cpp:651:17: error: variable has incomplete type 'QDirIterator'
                        QDirIterator it(path, { "*.fs2", "*.fsm", "*.feb", "*.xplt" }, QDir::AllEntries | QDir::NoSymLinks | QDir::NoDotAndDotDot);
                                     ^
/nix/store/24n4sn70knrm4ma6g8j3dv4xfbq2axvj-qtbase-6.8.0/lib/QtCore.framework/Headers/qdir.h:17:7: note: forward declaration of 'QDirIterator'
class QDirIterator;
      ^
1 error generated.

@emilazy
Copy link
Member

emilazy commented Nov 1, 2024

Qt 6.8 issue?

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Nov 2, 2024
@ofborg ofborg bot requested a review from Scriptkiddi November 2, 2024 06:47
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 10.rebuild-linux: 0 This PR does not cause any packages to rebuild labels Nov 2, 2024
@khaneliman
Copy link
Contributor Author

Qt 6.8 issue?

Just came back to this, tried building it on master and see the same error.

@khaneliman khaneliman changed the title febio: darwin sdk refactor febio: darwin sdk refactor; febio-studio: darwin sdk refactor Nov 4, 2024
@khaneliman khaneliman changed the title febio: darwin sdk refactor; febio-studio: darwin sdk refactor {febio, febio-studio}: darwin sdk refactor Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 1-10 10.rebuild-linux: 0 This PR does not cause any packages to rebuild
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants