Last modified: 2014-10-09 15:03:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70944, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68944 - hphpize inject $PWD used at time of building to HHVM_INCLUDE_DIRS
hphpize inject $PWD used at time of building to HHVM_INCLUDE_DIRS
Status: VERIFIED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Normal normal (vote)
: ---
Assigned To: Giuseppe Lavagetto
: hhvm, upstream
Depends on:
Blocks: 63120
  Show dependency treegraph
 
Reported: 2014-07-31 19:35 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-10-09 15:03 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2014-07-31 19:35:26 UTC
Forked from bug 63120

Ori quoted a discussion from Giuseppe:

> hphpize adds to the list of paths it configures the $PWD at the time of building
> so when people try to use hphpize from the package I built, cmake complains it
> cannot find /root/joe/hhvm

After running cmake ., the CMakeLists.txt file has something like:

 set(HHVM_INCLUDE_DIRS;<snip>;/root/joe/hhvm)


That causes the build to abort with:

 cc1plus: error: /root/hhvm/joe/hhvm: Permission denied


The workaround for Jenkins is to use sed to strip the invalid path entirely.
Comment 1 Gerrit Notification Bot 2014-07-31 19:39:23 UTC
Change 150895 had a related patch set uploaded by Hashar:
Workaround hphpize injecting some bad include path

https://gerrit.wikimedia.org/r/150895
Comment 2 Antoine "hashar" Musso (WMF) 2014-07-31 19:41:50 UTC
Using sed in Jenkins to get rid of the incorrect path has let Jenkins build the FastStringSearch extension!

https://integration.wikimedia.org/ci/job/php-FastStringSearch-hhvm-build/2/console
Comment 3 Gerrit Notification Bot 2014-08-01 08:20:57 UTC
Change 150895 merged by jenkins-bot:
Workaround hphpize injecting some bad include path

https://gerrit.wikimedia.org/r/150895
Comment 4 Antoine "hashar" Musso (WMF) 2014-09-15 14:13:18 UTC
I have updated the Trusty Jenkins slave:

Unpacking hhvm-dev (3.3-dev+20140728+wmf7) over (3.3-dev+20140728+wmf5) ...


I have reran a job and it fails: https://integration.wikimedia.org/ci/job/php-FastStringSearch-hhvm-build/10/console

 00:00:03.176 cc1plus: error: /root/hhvm/joe/hhvm: Permission denied

This reopening.
Comment 5 Gerrit Notification Bot 2014-09-15 14:13:39 UTC
Change 160447 had a related patch set uploaded by Hashar:
Revert "Workaround hphpize injecting some bad include path"

https://gerrit.wikimedia.org/r/160447
Comment 6 Antoine "hashar" Musso (WMF) 2014-09-17 09:25:20 UTC
CWD is still injected with hhvm 3.3-dev+20140728+wmf7
Comment 7 Antoine "hashar" Musso (WMF) 2014-09-18 10:06:24 UTC
Apparently it has been fixed upstream by da0635499 https://github.com/facebook/hhvm/pull/3323

hphp/tools/hphpize/CMakeLists.txt

+  elseif(dir STREQUAL "${HPHP_HOME}")
+    # omit: base dir should not be included


I guess we want to cherry pick that patch on our hhvm build.
Comment 8 Bryan Davis 2014-09-24 00:26:56 UTC
*** Bug 71177 has been marked as a duplicate of this bug. ***
Comment 9 Bryan Davis 2014-09-24 00:30:32 UTC
Assigning to Giuseppe who can ensure the upstream fix makes it into our HHVM binary packages.
Comment 10 Giuseppe Lavagetto 2014-09-25 06:51:41 UTC
A new package for hhvm-3.3.0 is in our apt repo. I just confirmed this bug is fixed
Comment 11 Gerrit Notification Bot 2014-10-09 15:03:00 UTC
Change 160447 merged by jenkins-bot:
Revert "Workaround hphpize injecting some bad include path"

https://gerrit.wikimedia.org/r/160447
Comment 12 Antoine "hashar" Musso (WMF) 2014-10-09 15:03:55 UTC
$ jenkins-jobs --conf jenkins_jobs.ini update config/ '*hhvm-build'
 INFO:root:Updating jobs in ['config/'] (['*hhvm-build'])
 INFO:jenkins_jobs.builder:Reconfiguring jenkins job php-FastStringSearch-hhvm-build
 INFO:jenkins_jobs.builder:Reconfiguring jenkins job php-luasandbox-hhvm-build
 INFO:jenkins_jobs.builder:Reconfiguring jenkins job php-wikidiff2-hhvm-build

Job pass now https://integration.wikimedia.org/ci/job/php-FastStringSearch-hhvm-build/11/console


Thank you!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links