- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to perform some benchmarks between Intel Compiler and GCC in Apache environment.
I'm managing to get PHP compiling, but libtool / the process isn't creating .so files (only .a, .la). So this results in no valid libphp5.so module for Apache to load.
Here's my build:
make clean && CC="icc" CFLAGS="-O3 -ip -mp -restrict -xT -fast -mtune=core2 -parallel"
CXX="icpc" CXXFLAGS="-O3 -ip -mp -restrict -xT -fast -mtune=core2 -parallel"
LDFLAGS="-static-libgcc"
./configure
--prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql-sock=/tmp/mysql.sock
--with-mysqli=/usr/local/mysql-client/bin/mysql_config
--enable-mysqlnd
--with-libxml-dir=/usr/local/libxml-intel
--with-xsl=/usr/local/libxslt-intel
--with-config-file-path=/etc
--enable-force-cgi-redirect
--enable-inline-optimization
--with-zlib
--enable-mbstring
--enable-sockets
--with-pear
--disable-cgi
--disable-pdo
--disable-debug
--disable-json
--disable-hash
--disable-session
--disable-simplexml
--disable-tokenizer
--disable-filter
--disable-xmlreader
--disable-xmlwriter
--disable-sockets
--disable-reflection
--without-sqlite
--without-unixODBC
--without-mysql
--without-odbc
--without-gd
&& make -j6 && make install
It builds without error. I'm no Linux/GNU expert so there is probably something very simple I am missing :)
- Cheers
I'm trying to perform some benchmarks between Intel Compiler and GCC in Apache environment.
I'm managing to get PHP compiling, but libtool / the process isn't creating .so files (only .a, .la). So this results in no valid libphp5.so module for Apache to load.
Here's my build:
make clean && CC="icc" CFLAGS="-O3 -ip -mp -restrict -xT -fast -mtune=core2 -parallel"
CXX="icpc" CXXFLAGS="-O3 -ip -mp -restrict -xT -fast -mtune=core2 -parallel"
LDFLAGS="-static-libgcc"
./configure
--prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql-sock=/tmp/mysql.sock
--with-mysqli=/usr/local/mysql-client/bin/mysql_config
--enable-mysqlnd
--with-libxml-dir=/usr/local/libxml-intel
--with-xsl=/usr/local/libxslt-intel
--with-config-file-path=/etc
--enable-force-cgi-redirect
--enable-inline-optimization
--with-zlib
--enable-mbstring
--enable-sockets
--with-pear
--disable-cgi
--disable-pdo
--disable-debug
--disable-json
--disable-hash
--disable-session
--disable-simplexml
--disable-tokenizer
--disable-filter
--disable-xmlreader
--disable-xmlwriter
--disable-sockets
--disable-reflection
--without-sqlite
--without-unixODBC
--without-mysql
--without-odbc
--without-gd
&& make -j6 && make install
It builds without error. I'm no Linux/GNU expert so there is probably something very simple I am missing :)
- Cheers
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I compiledApache & PHPwith icc a long time ago. I remember that I need to compile libtool with icc before compiling some open-source application (sorry I'm not 100% sure thatthe app is PHP). Why don't you try to compile libtool with icc first and compileyour PHPthen?
Thanks,
Feilong
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page