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

Building PHP v7.x fails with the codestitcher code #1

Open
uttampawar opened this issue Oct 16, 2019 · 4 comments
Open

Building PHP v7.x fails with the codestitcher code #1

uttampawar opened this issue Oct 16, 2019 · 4 comments

Comments

@uttampawar
Copy link

uttampawar commented Oct 16, 2019

Hi,
I'm trying to reproduce your test results for PHP interpreter to understand the code layout algorithm and see it's impact on the CPU frontend but my build with with the codestitcher's included clang,binutils are failing. Included 'test' program is built and ran okay but not PHP.
Any help is much appreciated.

See details below,
OS version: Ubuntu v18.04
kernel: 4.15.0-58-generic
gcc: gcc version 7.4.0
$ which ld (default ld)
/usr/bin/ld
$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.30

Steps:
$ git clone https://github.com/rlavaee/codestitcher.git
$ cd codestitcher
$ ./install.sh
$ mkdir workloads
$ cd workloads
$ git clone https://github.com/php/php-src.git
$ git checkout PHP-7.0

export PATH=$HOME/codestitcher/build/llvm/bin:$HOME/codestitcher/build/binutils/bin:$PATH
$ clang --version
clang version 3.9.1 (branches/release_39 301135)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/upawar/codestitcher/build/llvm/bin

$ cd php-src
$ ./buildconf
$ CC="clang" CXX=clang++ CFLAGS="-pthread -O3 -flto -Wl,-plugin-opt,-emit-bb-symbols" ./configure
$ make
...
...
/home/upawar/codestitcher/build/binutils/bin/ld: fatal error: --plugin-opt requires --plugin.
clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:853: recipe for target 'ext/opcache/opcache.la' failed
make: *** [ext/opcache/opcache.la] Error 1

Am I missing another option?

TIA.
--Uttam

@uttampawar
Copy link
Author

@rlavaee Hi, can you help? TIA.

@rlavaee
Copy link
Owner

rlavaee commented Oct 17, 2019 via email

@uttampawar
Copy link
Author

@rlavaee Thanks for your response. I'll take a look at llvm-propeller project.

@uttampawar
Copy link
Author

@rlavaee OTOH, it would be really cool to reproduce the results you have shown in your paper for MySQL, httpd, PHP, clang workloads/runtimes. I was able to build httpd binary not the whole project. I wasn't able build MySQL, PHP. Any, as I said, I'll take a look at propeller project. It would be great if you remember the config details for PHP or MySQL projects used with codestitcher. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants