-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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