When compiling openoffice-2.3.1.1 minor revbump, this error occurs : Making: ../../unxlngx6.pro/slo/mono_bridge.obj x86_64-pc-linux-gnu-g++ -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing -Wuninitialized -D_REENTRANT -pthread -I/usr/lib64/pkgconfig/../../include/mono-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I. -I../../unxlngx6.pro/inc/cli_uno -I../inc -I../../inc/pch -I../../inc -I../../unx/inc -I../../unxlngx6.pro/inc -I. -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/solver/680/unxlngx6.pro/inc/stl -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/solver/680/unxlngx6.pro/inc/external -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/solver/680/unxlngx6.pro/inc -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/solenv/unxlngx6/inc -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/solenv/inc -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/res -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/solver/680/unxlngx6.pro/inc/stl -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/solenv/inc/Xp31 -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux -I/opt/blackdown-jdk-1.4.2.03/include/native_threads/include -Idefault_x_includes -I/var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/solver/680/unxlngx6.pro/inc/offuh -I. -I../../res -I. -pipe -march=native -mtune=native -O2 -pipe -msse3 -ftree-vectorize -fno-ident -fweb -fomit-frame-pointer -Wno-ctor-dtor-privacy -fno-use-cxa-atexit -fvisibility-inlines-hidden -g -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DGSTREAMER -DCUI -DSOLAR_JAVA -DOOG680=OOG680 -DSHAREDLIB -D_DLL_ -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON -o ../../unxlngx6.pro/slo/mono_bridge.o /var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/cli_ure/source/mono_bridge/mono_bridge.cxx In file included from /var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/cli_ure/source/mono_bridge/mono_bridge.cxx:77: /usr/lib64/pkgconfig/../../include/mono-1.0/mono/metadata/threads.h:17:41: error: mono/metadata/threads-types.h: No such file or directory In file included from /var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/cli_ure/source/mono_bridge/mono_bridge.cxx:77: /usr/lib64/pkgconfig/../../include/mono-1.0/mono/metadata/threads.h:70: error: 'MonoThreadState' has not been declared /usr/lib64/pkgconfig/../../include/mono-1.0/mono/metadata/threads.h:71: error: 'MonoThreadState' has not been declared /usr/lib64/pkgconfig/../../include/mono-1.0/mono/metadata/threads.h:72: error: 'MonoThreadState' has not been declared dmake: Error code 1, while making '../../unxlngx6.pro/slo/mono_bridge.obj' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/cli_ure/source/mono_bridge make: *** [stamp/build] Error 1 Reproducible: Always
Created attachment 138532 [details] emerge --info
links to emerge log file : http://www2.partage-facile.com/1007795-app-office:openoffice-2.3.1:20071214-213322.log.html
Sigh... <snip> CFLAGS="-march=native -mtune=native -O3 -pipe -msse3 -finline-functions -ftree-vectorize -fno-ident -fweb -fstack-protector -fomit-frame-pointer -funroll-all-loops -freschedule-modulo-scheduled-loops" CXXFLAGS="-march=native -mtune=native -O3 -pipe -msse3 -finline-functions -ftree-vectorize -fno-ident -fweb -fstack-protector -fomit-frame-pointer -funroll-all-loops -freschedule-modulo-scheduled-loops" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags,--hash-style=gnu,-zdynsort,-z,--sort-common -s" </snip> Kindly review the following: http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/build-environment/index.html http://www.gentoo.org/doc/en/gcc-optimization.xml
Created attachment 138533 [details] custom cflags for OOo I beg your pardon Jakub, here is my cunstom cflags for OOo ;-)
@gentoo_e17_powa You may check your mono package: ... -I/usr/lib64/pkgconfig/../../include/mono-1.0 ... /usr/lib64/pkgconfig/../../include/mono-1.0/mono/metadata/threads.h:17:41: error: mono/metadata/threads-types.h: No such file or directory ...
(In reply to comment #5) > @gentoo_e17_powa > You may check your mono package: > > ... > -I/usr/lib64/pkgconfig/../../include/mono-1.0 > ... > /usr/lib64/pkgconfig/../../include/mono-1.0/mono/metadata/threads.h:17:41: > error: mono/metadata/threads-types.h: No such file or directory > ... > I have emerged mono-1.2.6 which don't create threads-types.h file, just threads.h one.
Hi, same error here: dmake: Error code 1, while making '../../unxlngi6.pro/slo/mono_bridge.obj' ---* tg_merge.mk *--- ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/cli_ure/source/mono_bridge make: *** [stamp/build] Error 1 * * ERROR: app-office/openoffice-2.3.1 failed. ........ !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.5 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.13" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="" .# emerge --info >>> cfg-update-1.8.2-r1: Creating checksum index... Portage 2.1.4_rc10 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686) ================================================================= System uname: 2.6.23-gentoo-r3 i686 AMD Athlon(tm) processor Timestamp of tree: Sun, 16 Dec 2007 14:46:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.1.3 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="cs_CZ" LDFLAGS="-Wl,-O1" LINGUAS="cs fr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/xwing /usr/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://mirror.gentoo.sk/gentoo-portage" USE="3dnow X a52 aac acpi alsa amr apache2 asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt css cups curl dbus dri dts dvd dvdr dvdread encode evo exif expat ffmpeg firefox flac flash fortran ftp gd gdbm gif glut gmp gpm gstreamer gtk gtk2 hal iconv icq idn jabber java jpeg kde kdeenablefinal kdehiddenvisibility lcms logrotate mad midi mikmod mime mmx mng mono moznoirc moznomail mozsvg mp3 mpeg mudflap musepack mysql nas ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl php pic png python qt3 qt3support quicktime readline reflection ruby sdl session slang sndfile spell spl ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts vorbis win32codecs wma x264 x86 xine xinerama xml xorg xprint xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs fr" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Same here. This is on a 64-bit Core2Quad. My CFLAGS are pretty tame. I tried re-emerging dev-lang/mono-1.2.6 before openoffice as well, but it seemed to have no effect. -------------------------- deliver -- version: 1.120 deliver -- version: 1.120 1 module(s): cli_ure need(s) to be rebuilt Reason(s): ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.3.1/work/ooo/build/OOG680_m9/cli_ure/source/mono_bridge Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from cli_ure" make: *** [stamp/build] Error 1 * * ERROR: app-office/openoffice-2.3.1 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * openoffice-2.3.1.ebuild, line 341: Called die * The specific snippet of code: * make || die "Build failed" * The die message: * Build failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-office/openoffice-2.3.1/temp/build.log'. * !!! When you file a bug report, please include the following information: GENTOO_VM=blackdown-jdk-1.4.2 CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="" and of course, the output of emerge --info ------------------------------------- dygenguard ~ # emerge --info Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64) ================================================================= System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz Timestamp of tree: Sun, 16 Dec 2007 23:46:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://adelie.polymtl.ca/ " LANG="en_US.utf8" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://192.168.2.105/gentoo-portage" USE="X a52 aac aalib accessibility acl acpi aim alsa amd64 anthy ao apache2 arts ati audiofile avahi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo calmav canna cdparanoia cdr chasen cjk cli composite cracklib crypt cscope ctype cups curl curlwrappers dbm dbus dbx dga directfb doc dri dts dv dvd dvdr dvdread eds emboss encode esd evo exif expat fam fastcgi fbcon ffmpeg fftw firefox flac flatfile foomaticdb fortran freetds freewnn ftp gd gdbm geoip ggi gif gimp glitz glut gnome gnustep gnutls gphoto2 gpm gps graphviz gstreamer gtk hal hvm iconv icq ieee1394 imagemagick immqt-bc inifile ipod ipv6 isdnlog jabber jack java javascript jbig joystick jpeg jpeg2k junit kde kerberos lash ldap libg++ libsamplerate libwww lm_sensors lua mad matroska mdnsresponder-compat midi migemo mikmod mime mmap mmx mmxext mng mnogosearch mono motif mp3 mpeg mpi mplayer msn mudflap musepack musicbrainz mysql ncurses neXt nis nls nptl nptlonly nsplugin nvidia odbc ogg openal openexr opengl openmp oracle osc oscar oss pam pcntl pcre pda pdf perl php plotutils png pni portaudio posix postgres ppds pppd pulseaudio python qemu qt3 qt3support qt4 quicktime rdesktop readline reflection ruby samba sasl scanner sdl session shorten simplexml sndfile snmp soap sockets sox speex spell spl sse sse2 sse3 ssl ssse3 svg szip tck tcktk tcpd theora threads tidy tiff tk tokenizer truetype truetype-fonts type1-fonts unicode usb v4l vcd vhosts videos vim-syntax vorbis wifi wmf wxwindows x264 xcomposite xen xine xinerama xinetd xml xmlrpc xorg xosd xpm xprint xsl xv xvid xvmc yahoo yaz zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia fglrx radeon vesa vmware vga nv v4l" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I see it here too. It's definitely not cflags-related. As far as I can tell, it looks like a bad mono build (1.2.6). I'm going to back off to the last "good" mono build to see if that helps. ... Ok, I masked mono-1.2.6 and that appears to work, or, at least OOo is beyond the mono bridge stage in compilation. So, mono-1.2.6 is, indeed, borked. It's something to do with missing or incorrectly configured header files. Cheers, - Brendan
Adding Mono herd. Could you please take a look at this?
I've noticed upstream about this, now I'm waiting for their response.
threads-types.h is shipped in mono-1.2.6.tar.bz2, but not installed (it's referred to as "private").
It really shouldn't be being referred to by a public header, in that case. Here's the guilty commit: http://anonsvn.mono-project.com/viewcvs/branches/mono-1-2-6/mono/mono/metadata/threads.h?rev=89268&view=log#rev87516 Revision 87516 - (view) (download) - [select for diffs] Modified Mon Oct 15 14:49:11 2007 UTC (2 months ago) by dick File length: 2785 byte(s) Diff to previous 85138 2007-10-15 Dick Porter <dick@ximian.com> * monitor.c (mono_monitor_try_enter_internal): Set thread state to WaitSleepJoin while it is waiting to acquire a lock. Fixes bug 81646. * threads.c: Turn the thread synch_lock into a CRITICAL_SECTION, instead of a monitor lock. This means that monitor_try_enter and co can set the thread state safely. (ves_icall_System_Threading_Thread_Interrupt_internal): Always set thread_interrupt_requested, so interrupt actually works. * socket-io.c (ves_icall_System_Net_Sockets_Socket_Poll_internal, ves_icall_System_Net_Sockets_Socket_Select_internal): Use thread state accessor function
Reported upstream: https://bugzilla.novell.com/show_bug.cgi?id=349952
Created attachment 138937 [details, diff] threads-types-private-prototypes.patch Patch submitted upstream at https://bugzilla.novell.com/show_bug.cgi?id=349952#c1
(In reply to comment #15) > Created an attachment (id=138937) [edit] > threads-types-private-prototypes.patch > > Patch submitted upstream at > https://bugzilla.novell.com/show_bug.cgi?id=349952#c1 > (In reply to comment #15) > Created an attachment (id=138937) [edit] > threads-types-private-prototypes.patch > > Patch submitted upstream at > https://bugzilla.novell.com/show_bug.cgi?id=349952#c1 > Patch works fine for me, thanks to all.
Fixed in mono-1.2.6-r1, thanks!