Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

5 b3 build segfaults for s390x #72

Open
andypost opened this issue Feb 3, 2019 · 4 comments
Open

5 b3 build segfaults for s390x #72

andypost opened this issue Feb 3, 2019 · 4 comments

Comments

@andypost
Copy link
Contributor

andypost commented Feb 3, 2019

I pushed upgrade to 5 beta 3 (for php 7.2) alpinelinux/aports@2d7cbaa

But build for x86 (not 64 bit) fails, log https://build.alpinelinux.org/buildlogs/build-edge-x86/testing/php7-tideways_xhprof/php7-tideways_xhprof-5.0_beta3-r1.log

In file included from /home/buildozer/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tracing.h:1,
                 from /home/buildozer/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tideways_xhprof.c:13:
/home/buildozer/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/timer.h: In function 'time_milliseconds':
/home/buildozer/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/timer.h:79:13: error: a label can only be part of a statement and a declaration is not a statement
             int64_t ret;
             ^~~~~~~
In file included from /home/buildozer/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tracing.h:1,
                 from /home/buildozer/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tracing.c:11:
/home/buildozer/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/timer.h: In function 'time_milliseconds':
/home/buildozer/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/timer.h:79:13: error: a label can only be part of a statement and a declaration is not a statement
             int64_t ret;
             ^~~~~~~
make: *** [Makefile:196: tracing.lo] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:194: tideways_xhprof.lo] Error 1

Any idea what's wrong?

@andypost
Copy link
Contributor Author

andypost commented Feb 8, 2019

btw aarch64 build fails on

config.status: creating config.h
/bin/sh /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/libtool --mode=compile gcc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1    -I. -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3 -DPHP_ATOM_INC -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/include -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/main -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3 -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib  -Os -fomit-frame-pointer -DHAVE_CONFIG_H  -Os -fomit-frame-pointer   -c /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tideways_xhprof.c -o tideways_xhprof.lo 
/bin/sh /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/libtool --mode=compile gcc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1    -I. -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3 -DPHP_ATOM_INC -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/include -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/main -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3 -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib  -Os -fomit-frame-pointer -DHAVE_CONFIG_H  -Os -fomit-frame-pointer   -c /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tracing.c -o tracing.lo 
mkdir .libs
mkdir .libs
mkdir: can't create directory '.libs': File exists
 gcc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3 -DPHP_ATOM_INC -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/include -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/main -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3 -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -Os -fomit-frame-pointer -DHAVE_CONFIG_H -Os -fomit-frame-pointer -c /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tideways_xhprof.c  -fPIC -DPIC -o .libs/tideways_xhprof.o
 gcc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3 -DPHP_ATOM_INC -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/include -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/main -I/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3 -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -Os -fomit-frame-pointer -DHAVE_CONFIG_H -Os -fomit-frame-pointer -c /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tracing.c  -fPIC -DPIC -o .libs/tracing.o
In file included from /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tracing.h:1,
                 from /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tracing.c:11:
/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/timer.h: In function 'time_milliseconds':
/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/timer.h:89:2: error: #error You need to define CycleTimer for your OS and CPU
 #error You need to define CycleTimer for your OS and CPU
  ^~~~~
In file included from /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tracing.h:1,
                 from /home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/tideways_xhprof.c:13:
/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/timer.h: In function 'time_milliseconds':
/home/andypost/aports/testing/php7-tideways_xhprof/src/php-xhprof-extension-5.0-beta3/timer.h:89:2: error: #error You need to define CycleTimer for your OS and CPU
 #error You need to define CycleTimer for your OS and CPU
  ^~~~~
make: *** [Makefile:194: tideways_xhprof.lo] Error 1

@andypost
Copy link
Contributor Author

andypost commented Feb 8, 2019

and the same error on all arm* & s390x arches

@andypost
Copy link
Contributor Author

andypost commented Feb 8, 2019

Looks related google/benchmark#540

@andypost andypost changed the title 5 b3 build x86 fails 5 b3 build segfaults for s390x Aug 19, 2019
@andypost
Copy link
Contributor Author

x86, arm and ppc64 were fixed in #74

but s390x still segfailts - details #74 (comment)

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

No branches or pull requests

1 participant