secondlife / jira-archive

2 stars 0 forks source link

[BUG-40913] Mac build fails after MAINT-6585 applied #12523

Open sl-service-account opened 7 years ago

sl-service-account commented 7 years ago

Steps to Reproduce

Building viewer-release.

Actual Behavior

Building viewer-release on a mac failed.

Expected Behavior

The build to complete.

Other information

Mini:viewer-release nicky$ python --version Python 2.7.12 Mini:viewer-release nicky$ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/autobuild configure v -c RelWithDebInfoOS - -DLL_TESTS:BOOL=OFF -DFMODEX:BOOL=ON -DOPENAL:BOOL=OFF -DPACKAGE:BOOL=ON -DQUICKTIME:BOOL=ON -DUSE_KDU:BOOL=OFF -DRELEASE_CRASH_REPORTING:BOOL=OFF

Mini:viewer-release nicky$ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/autobuild build -c RelWithDebInfoOS 2>&1 |tee -a DarwinSL.log PhaseScriptExecution CMake\ PostBuild\ Rules /Users/nicky/viewer-release/build-darwin-i386/newview/SecondLife.build/RelWithDebInfo/secondlife-bin.build/Script-B5EAF7FE98AC47EB82B26BF7.sh cd /Users/nicky/viewer-release/indra /bin/sh -c /Users/nicky/viewer-release/build-darwin-i386/newview/SecondLife.build/RelWithDebInfo/secondlife-bin.build/Script-B5EAF7FE98AC47EB82B26BF7.sh /usr/bin/python /Users/nicky/viewer-release/indra/newview/viewer_manifest.py --actions=copy --arch=i386 --artwork=/Users/nicky/viewer-release/indra/newview --build=/Users/nicky/viewer-release/build-darwin-i386/newview --buildtype=RelWithDebInfo --configuration=RelWithDebInfo --dest=/Users/nicky/viewer-release/build-darwin-i386/newview/RelWithDebInfo/Second\ Life.app --grid=agni --channel=Second\ Life\ Test --versionfile=/Users/nicky/viewer-release/build-darwin-i386/newview/viewer_version.txt --source=/Users/nicky/viewer-release/indra/newview Traceback (most recent call last): File "/Users/nicky/viewer-release/indra/newview/viewer_manifest.py", line 47, in from indra.base import llsd ImportError: No module named base make: *** [secondlife-bin_buildpart_0] Error 1 Command /bin/sh failed with exit code 2

** BUILD FAILED **

The following build commands failed: PhaseScriptExecution CMake\ PostBuild\ Rules /Users/nicky/viewer-release/build-darwin-i386/newview/SecondLife.build/RelWithDebInfo/secondlife-bin.build/Script-B5EAF7FE98AC47EB82B26BF7.sh (1 failure) ERROR: building configuration {'default': False, 'configure': {'command': None, 'options': ['-G', "'Xcode'"], 'filters': None, 'arguments': None}, 'name': 'RelWithDebInfoOS', 'build': {'command': 'xcodebuild', 'options': ['-configuration RelWithDebInfo', '-project SecondLife.xcodeproj'], 'filters': None, 'arguments': None}} returned 65 For more information: try re-running your command with --verbose or --debug

This failure is from the removal of viewer python library files associated with MAINT-6585. With all MAINT-6585 reverted the build completes without error.

Full paths for autobuild configure and build are used because of use of a bash script to build. The same error happens when building under Xcode.

Windows and Linux use the same code and there are no errors.

Original Jira Fields | Field | Value | | ------------- | ------------- | | Issue | BUG-40913 | | Summary | Mac build fails after MAINT-6585 applied | | Type | Bug | | Priority | Unset | | Status | Accepted | | Resolution | Accepted | | Reporter | Nicky Perian (nicky.perian) | | Created at | 2016-11-17T10:24:40Z | | Updated at | 2016-11-17T19:21:28Z | ``` { 'Business Unit': ['Platform'], 'Date of First Response': '2016-11-17T13:08:22.844-0600', "Is there anything you'd like to add?": 'Mini:viewer-release nicky$ python --version\r\nPython 2.7.12\r\nMini:viewer-release nicky$ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/autobuild configure -v -c RelWithDebInfoOS -- -DLL_TESTS:BOOL=OFF -DFMODEX:BOOL=ON -DOPENAL:BOOL=OFF -DPACKAGE:BOOL=ON -DQUICKTIME:BOOL=ON -DUSE_KDU:BOOL=OFF -DRELEASE_CRASH_REPORTING:BOOL=OFF\r\n\r\nMini:viewer-release nicky$ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/autobuild build -c RelWithDebInfoOS 2>&1 |tee -a DarwinSL.log\r\nPhaseScriptExecution CMake\\ PostBuild\\ Rules /Users/nicky/viewer-release/build-darwin-i386/newview/SecondLife.build/RelWithDebInfo/secondlife-bin.build/Script-B5EAF7FE98AC47EB82B26BF7.sh\r\n cd /Users/nicky/viewer-release/indra\r\n /bin/sh -c /Users/nicky/viewer-release/build-darwin-i386/newview/SecondLife.build/RelWithDebInfo/secondlife-bin.build/Script-B5EAF7FE98AC47EB82B26BF7.sh\r\n/usr/bin/python /Users/nicky/viewer-release/indra/newview/viewer_manifest.py --actions=copy --arch=i386 --artwork=/Users/nicky/viewer-release/indra/newview --build=/Users/nicky/viewer-release/build-darwin-i386/newview --buildtype=RelWithDebInfo --configuration=RelWithDebInfo --dest=/Users/nicky/viewer-release/build-darwin-i386/newview/RelWithDebInfo/Second\\ Life.app --grid=agni --channel=Second\\ Life\\ Test --versionfile=/Users/nicky/viewer-release/build-darwin-i386/newview/viewer_version.txt --source=/Users/nicky/viewer-release/indra/newview\r\nTraceback (most recent call last):\r\n File "/Users/nicky/viewer-release/indra/newview/viewer_manifest.py", line 47, in \r\n from indra.base import llsd\r\nImportError: No module named base\r\nmake: *** [secondlife-bin_buildpart_0] Error 1\r\nCommand /bin/sh failed with exit code 2\r\n\r\n** BUILD FAILED **\r\n\r\n\r\nThe following build commands failed:\r\n\tPhaseScriptExecution CMake\\ PostBuild\\ Rules /Users/nicky/viewer-release/build-darwin-i386/newview/SecondLife.build/RelWithDebInfo/secondlife-bin.build/Script-B5EAF7FE98AC47EB82B26BF7.sh\r\n(1 failure)\r\nERROR: building configuration {\'default\': False, \'configure\': {\'command\': None, \'options\': [\'-G\', "\'Xcode\'"], \'filters\': None, \'arguments\': None}, \'name\': \'RelWithDebInfoOS\', \'build\': {\'command\': \'xcodebuild\', \'options\': [\'-configuration RelWithDebInfo\', \'-project SecondLife.xcodeproj\'], \'filters\': None, \'arguments\': None}} returned 65\r\nFor more information: try re-running your command with --verbose or --debug\r\n\r\nThis failure is from the removal of viewer python library files associated with MAINT-6585. With all MAINT-6585 reverted the build completes without error.\r\n\r\nFull paths for autobuild configure and build are used because of use of a bash script to build. The same error happens when building under Xcode.\r\n\r\nWindows and Linux use the same code and there are no errors.', 'ReOpened Count': 0.0, 'Severity': 'Unset', 'System': 'SL Viewer', 'Target Viewer Version': 'viewer-development', 'What just happened?': 'Building viewer-release on a mac failed.', 'What were you doing when it happened?': 'Building viewer-release.', 'What were you expecting to happen instead?': 'The build to complete.', } ```
sl-service-account commented 7 years ago

Nicky Perian commented at 2016-11-17T11:13:11Z

This issue occurs when a fresh clone is created. The same code when added to an existing repo works fine.

sl-service-account commented 7 years ago

Whirly Fizzle commented at 2016-11-17T19:08:23Z

Building the new viewer-release tip on Windows 7 64bit was failing for me too but I "fixed" it. Bear in mind I'm not a dev so I may have done something stupid.

Fresh clone of viewer-release. Configuring with autobuild configure c ReleaseOS - -DFMODEX:BOOL=FALSE -DPACKAGE:BOOL=TRUE -DLL_TESTS:BOOL=FALSE Build failed.

I noticed that secondlife-bin was no longer being set as the startup project in Visual Studio, instead it was set to ALL_BUILD. Once I changed secondlife-bin to the startup project, build succeeded.