-
Notifications
You must be signed in to change notification settings - Fork 2
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
Comments
@rlavaee Hi, can you help? TIA. |
Hi Uttam,
Php build uses the libtool. The right flags to use might be a little difficult to figure out for libtool.
By the way, you might want to try google/llvm-propeller (search on github) This is the tool we are working on at google and is in a much better shape.
…Sent from my iPhone
On Oct 17, 2019, at 9:55 AM, Uttam Pawar ***@***.***> wrote:
@rlavaee Hi, can you help? TIA.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@rlavaee Thanks for your response. I'll take a look at llvm-propeller project. |
@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. |
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
The text was updated successfully, but these errors were encountered: