Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4468 - PHP doesn't compile with libmcrypt-2.5.1-r4
Summary: PHP doesn't compile with libmcrypt-2.5.1-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-03 01:07 UTC by Michiel Muhlenbaumer
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel Muhlenbaumer 2002-07-03 01:07:17 UTC
See the topic for the problem :)
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-07-03 15:07:35 UTC
what use variables?  where does it break?
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-07-03 15:07:49 UTC
also, which compiler?
Comment 3 Roman Weber 2002-07-03 16:21:22 UTC
And which ebuild? dev-lang/php or the new dev-php/mod_php?
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2002-07-03 19:34:15 UTC
I believe this was submitted before I committed the new directory.
It should be dev-lang/php I would think.
Comment 5 Michiel Muhlenbaumer 2002-07-04 00:53:25 UTC
It configures now: I reinstalled my Gentoo box to 1.2 :)

But now I get compile errors at mutt and php:

/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -
I../main   -DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
DLINUX=22 -DTARGET="apache" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -
DEAPI_MM -I../TSRM  -march=i586 -O3 -pipe -prefer-pic -c -o 
zend_language_parser.lo `test -f zend_language_parser.c || 
echo './'`zend_language_parser.c
gcc: Internal compiler error: program cc1 got fatal signal 11
{standard input}: Assembler messages:
{standard input}:0: Warning: end of file not at end of a line; newline inserted
cpp0: output pipe has been closed
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/php-4.2.1-r1/work/php-4.2.1/Zend'
make: *** [all-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 164, Exitcode 2
!!! compile problem

!!! emerge aborting on  /usr/portage/dev-lang/php/php-4.2.1-r1.ebuild .

I've tried it four times, but everytime it fails at this point.

USE="-xfree -X -kdm -gdm -gnome -kde -qt -gtk imap mysql"
Compilen GCC 2.95.3 (Gentoo 1.2)
dev-lang/php/php-4.2.1-r1.ebuild
Comment 6 Roman Weber 2002-07-04 01:03:05 UTC
Hi Michiel

I don't like the line gcc: "Internal compiler error: program cc1 got fatal
signal 11"

Try to change CFLAGS in make.conf. Look for -O3, change it to -O1.

Then 'emerge php'

Tell me please, if it has helped.

Roman
Comment 7 Michiel Muhlenbaumer 2002-07-04 01:57:25 UTC
Ah ok, but -O1 is less optimized or not?
Comment 8 Michiel Muhlenbaumer 2002-07-04 02:13:33 UTC
I tried with -O2, but I got the same error :(

I tried with -O1, and he goes, but fails again:

/bin/sh /var/tmp/portage/php-4.2.1-r1/work/php-4.2.1/libtool --silent --
mode=compile gcc  -I. -I/var/tmp/portage/php-4.2.1-r1/work/php-
4.2.1/ext/standard -I/var/tmp/portage/php-4.2.1-r1/work/php-4.2.1/main -
I/var/tmp/portage/php-4.2.1-r1/work/php-4.2.1 -I/usr/include/apache -
I/var/tmp/portage/php-4.2.1-r1/work/php-4.2.1/Zend -I/usr/include/libxml2 -
I/usr/include/freetype -I/usr/include/imap -I/usr/include/mysql -
I/var/tmp/portage/php-4.2.1-r1/work/php-4.2.1/ext/xml/expat  -
DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -
DTARGET="apache" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -
I/var/tmp/portage/php-4.2.1-r1/work/php-4.2.1/TSRM -march=i586 -O1 -pipe -
prefer-pic  -c html.c
gcc: Internal compiler error: program cc1 got fatal signal 11
make[3]: *** [html.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/php-4.2.1-r1/work/php-
4.2.1/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/php-4.2.1-r1/work/php-
4.2.1/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/php-4.2.1-r1/work/php-4.2.1/ext'
make: *** [all-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 164, Exitcode 2
!!! compile problem

!!! emerge aborting on  /usr/portage/dev-lang/php/php-4.2.1-r1.ebuild .
Comment 9 Michiel Muhlenbaumer 2002-07-04 02:29:33 UTC
It's compiled with -O1 now :)
Comment 10 Roman Weber 2002-07-04 02:55:17 UTC
Strange.....

Can you tell me which processor and your compiler flags?

(That interests me)
Comment 11 Roman Weber 2002-07-04 03:26:14 UTC
Hmm...libmcrypt compiles sane with php (dev-lang/php) on my machine......
(Or is this now resolved too?)
Comment 12 Michiel Muhlenbaumer 2002-07-04 03:51:57 UTC
Processor: VIA EDEN C3 800 Mhz (i586 architecture)
Compile flags :

# Pentium/Pentium MMX+ exclusive (requires a Pentium Classic or K6 or beyond)
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O3 -pipe"
CXXFLAGS="-march=i586 -O3 -pipe"
Comment 13 Ryan Phillips (RETIRED) gentoo-dev 2002-07-08 17:42:21 UTC
Has this bug been resolved?
Comment 14 Roman Weber 2002-07-08 22:43:28 UTC
I think, you can close it....

The -O3 optimization from gcc for the VIA EDEN processor isn't sane.

Roman