Xcode successful build

Bug #1630870 reported by Sergei Krivonos on 2016-10-06
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Stellarium
Low
Florian Schaukowitsch

Bug Description

Showing Recent Issues
Ld build/src/Debug/stellarium normal x86_64
    cd /Users/sergejkrivonos/Sources/stellarium
    export MACOSX_DEPLOYMENT_TARGET=10.12
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -L/Users/sergejkrivonos/Sources/stellarium/build/src/Debug -F/Users/sergejkrivonos/Sources/stellarium/build/src/Debug -F/usr/local/opt/qt5/lib -filelist /Users/sergejkrivonos/Sources/stellarium/build/src/Stellarium.build/Debug/stellarium.build/Objects-normal/x86_64/stellarium.LinkFileList -mmacosx-version-min=10.12 -Xlinker -object_path_lto -Xlinker /Users/sergejkrivonos/Sources/stellarium/build/src/Stellarium.build/Debug/stellarium.build/Objects-normal/x86_64/stellarium_lto.o -Xlinker -no_deduplicate -framework Cocoa -framework OpenGL -Wl,-search_paths_first -Wl,-headerpad_max_install_names /usr/lib/libz.dylib /Users/sergejkrivonos/Sources/stellarium/build/plugins/AngleMeasure/src/Debug/libAngleMeasure.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/ArchaeoLines/src/Debug/libArchaeoLines.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/CompassMarks/src/Debug/libCompassMarks.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Exoplanets/src/Debug/libExoplanets.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/EquationOfTime/src/Debug/libEquationOfTime.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/FOV/src/Debug/libFOV.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/MeteorShowers/src/Debug/libMeteorShowers.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/NavStars/src/Debug/libNavStars.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Novae/src/Debug/libNovae.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Observability/src/Debug/libObservability.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Oculars/src/Debug/libOculars.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/PointerCoordinates/src/Debug/libPointerCoordinates.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Pulsars/src/Debug/libPulsars.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Quasars/src/Debug/libQuasars.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/RemoteControl/src/Debug/libRemoteControl.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Satellites/src/Debug/libSatellites.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Scenery3d/src/Debug/libScenery3d.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/SolarSystemEditor/src/Debug/libSolarSystemEditor.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/Supernovae/src/Debug/libSupernovae.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/TextUserInterface/src/Debug/libTextUserInterface.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/TelescopeControl/src/Debug/libTelescopeControl.a /Users/sergejkrivonos/Sources/stellarium/build/plugins/TimeZoneConfiguration/src/Debug/libTimeZoneConfiguration.a /usr/local/opt/qt5/lib/QtConcurrent.framework/QtConcurrent /usr/local/opt/qt5/lib/QtOpenGL.framework/QtOpenGL /usr/local/opt/qt5/lib/QtPrintSupport.framework/QtPrintSupport /usr/local/opt/qt5/lib/QtMultimediaWidgets.framework/QtMultimediaWidgets /usr/local/opt/qt5/lib/QtScript.framework/QtScript /usr/local/opt/qt5/lib/QtSerialPort.framework/QtSerialPort /usr/local/opt/qt5/lib/QtMultimedia.framework/QtMultimedia /usr/local/opt/qt5/lib/QtNetwork.framework/QtNetwork /usr/local/opt/qt5/lib/QtWidgets.framework/QtWidgets /usr/local/opt/qt5/lib/QtGui.framework/QtGui /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AGL.framework /usr/local/opt/qt5/lib/QtCore.framework/QtCore -Xlinker -dependency_info -Xlinker /Users/sergejkrivonos/Sources/stellarium/build/src/Stellarium.build/Debug/stellarium.build/Objects-normal/x86_64/stellarium_dependency_info.dat -o /Users/sergejkrivonos/Sources/stellarium/build/src/Debug/stellarium

ld: can't map file, errno=22 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

the path should precede with -F

Alexander Wolf (alexwolf) wrote :

What is the problem?

tags: added: mac-os-x
Download full text (5.3 KiB)

Hi Alexander,

It is not a problem, just Stellarium build failed with Xcode on MacOS.
I have used cmake generator for Xcode.
I have switched to CLion for now.

2016-10-06 9:36 GMT+03:00 Alexander Wolf <email address hidden>:

> What is the problem?
>
> ** Tags added: mac-os-x
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1630870
>
> Title:
> Xcode successful build
>
> Status in Stellarium:
> New
>
> Bug description:
>
> Showing Recent Issues
> Ld build/src/Debug/stellarium normal x86_64
> cd /Users/sergejkrivonos/Sources/stellarium
> export MACOSX_DEPLOYMENT_TARGET=10.12
> /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/
> MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -L/Users/sergejkrivonos/
> Sources/stellarium/build/src/Debug -F/Users/sergejkrivonos/
> Sources/stellarium/build/src/Debug -F/usr/local/opt/qt5/lib -filelist
> /Users/sergejkrivonos/Sources/stellarium/build/src/Stellarium.build/Debug/
> stellarium.build/Objects-normal/x86_64/stellarium.LinkFileList
> -mmacosx-version-min=10.12 -Xlinker -object_path_lto -Xlinker
> /Users/sergejkrivonos/Sources/stellarium/build/src/Stellarium.build/Debug/
> stellarium.build/Objects-normal/x86_64/stellarium_lto.o -Xlinker
> -no_deduplicate -framework Cocoa -framework OpenGL -Wl,-search_paths_first
> -Wl,-headerpad_max_install_names /usr/lib/libz.dylib
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/
> AngleMeasure/src/Debug/libAngleMeasure.a /Users/sergejkrivonos/Sources/
> stellarium/build/plugins/ArchaeoLines/src/Debug/libArchaeoLines.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/
> CompassMarks/src/Debug/libCompassMarks.a /Users/sergejkrivonos/Sources/
> stellarium/build/plugins/Exoplanets/src/Debug/libExoplanets.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/
> EquationOfTime/src/Debug/libEquationOfTime.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/FOV/src/Debug/libFOV.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/
> MeteorShowers/src/Debug/libMeteorShowers.a /Users/sergejkrivonos/Sources/
> stellarium/build/plugins/NavStars/src/Debug/libNavStars.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/Novae/src/Debug/libNovae.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/
> Observability/src/Debug/libObservability.a /Users/sergejkrivonos/Sources/
> stellarium/build/plugins/Oculars/src/Debug/libOculars.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/
> PointerCoordinates/src/Debug/libPointerCoordinates.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/Pulsars/src/Debug/libPulsars.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/Quasars/src/Debug/libQuasars.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/
> RemoteControl/src/Debug/libRemoteControl.a /Users/sergejkrivonos/Sources/
> stellarium/build/plugins/Satellites/src/Debug/libSatellites.a
> /Users/sergejkrivonos/Sources/stellarium/build/plugins/
> Scenery3d/src/Debug/libScenery3d.a /Users/s...

Read more...

Alexander Wolf (alexwolf) wrote :

Сборка производилась внутри XCode?

Да

Changed in stellarium:
importance: Undecided → Low
status: New → Opinion
Alexander Wolf (alexwolf) wrote :

Опишите, пожалуйста, Ваш процесс сборки внутри XCode.

это довольно просто - используется cmake генератор для Xcode. В там clang,
у макос есть такое понятие frameworks
<https://www.youtube.com/watch?v=D--APjlPALU> - путь к директории framework
передаётся опцией "-F". без этой опции просто путь трактуется ld, как
библиотека или объектный файл
http://stackoverflow.com/questions/16436333/cant-map-file-errno-22-for-architecture-x86-64

Alexander Wolf (alexwolf) wrote :

Другими словами в cmake неверно работает генератор Xcode?

Я всё ещё пытаюсь понять как это относится к Stellarium'у (я для сборки на OS X никогда не использовал IDE - исключительно CLI; для разработчиков у нас рекомендован к использованию QtCreator).

XCode для разработки Stellarium'а использовал года 3-4 назад только Timothy Reaves.

Да ничего страшного. Будет GSOC - можно будет поручить студенту разобраться. Это же не срочно - другие IDE работают. Xcode хорош в плане энергопотребления на MacBook. Но его и так на часов десять хватает заряда.

Hi there,

I'm compiling Stellarium on OS X with XCode since 4-5 years, and since my upgrade to MacOS 10.12 Sierra this problem occurs (it doesn't occur with 10.11.x, where I can compile Stellarium without problem with Xcode.

I tried to understand your dialogue using Google translate. Hopefully I understand correctly: the linker tries to get a directory as a file, and throws an error 22.

@Sergei: you seem to indicate I've to add option "-F" somewhere, but I can't help to find where. Can you help me? TIA

PS. My main box, where buildbot is installed, is on Sierra, so that my compilations fail systematically :-(

This seems to be fixed as of release 9082. I could just build Stellarium on macOS Sierra. :-)

Alexander Wolf (alexwolf) wrote :

Nicolas, please check it.

Changed in stellarium:
milestone: none → 0.15.2

Confirming that the compilation is successful on macOS Sierra 10.12.2.

See http://gcc10.fsffrance.org:8010/buildslaves/mina-OSX

Alexander Wolf (alexwolf) wrote :

Thanks!

Changed in stellarium:
status: Opinion → Fix Committed
assignee: nobody → Florian Schaukowitsch (fschauk)
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers