Closed FooBarWidget closed 10 years ago
From honglilai on February 09, 2009 09:07:47
Which gcc version do you have?
From jeremie.horhant@titinux.net on February 09, 2009 11:41:31
I use gcc 4.1.2
From jeremie.horhant@titinux.net on February 19, 2009 01:55:54
I've finally found a solution on this page http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485434 I've modified the Rakefile
I will test this build in pre-production and i'll post result here.
From honglilai on February 19, 2009 02:02:12
Could you try the Phusion Passenger version from git master? I believe this has been fixed a few weeks ago.
From jeremie.horhant@titinux.net on February 19, 2009 14:28:35
I'm afraid that I have the same error with master version. I've also tried with gcc 4.3.2 with the same result. :-\
From honglilai on March 15, 2009 03:28:09
So defining BOOST_SP_USE_PTHREADS works for you?
Do you know whether defining this macro on Solaris-Sparc might cause problems for other versions of Solaris?
From jeremie.horhant@titinux.net on March 15, 2009 09:19:57
I've just try to build the 2.1.2 version of passenger on my sparc and the problem is still present.
g++ ApplicationPoolServerExecutable.cpp Utils.o Logging.o SystemTime.o
CachedFileStat.o -o ApplicationPoolServerExecutable -I.. -Wall -g -DPASSENGER_DEBUG
-DBOOST_DISABLE_ASSERTS -D_REENTRANT -D_GLIBCPPPTHREADS -I/usr/local/include
../libboost_oxt.a -lpthread
/tmp/cc3AIVSD.o: In function boost::detail::atomic_decrement(int*)': /root/tmp/passenger-2.1.2/ext/apache2/../boost/detail/sp_counted_base_sync.hpp:44: undefined reference to
sync_fetch_and_add_4'
/tmp/cc3AIVSD.o: In function boost::detail::atomic_increment(int*)': /root/tmp/passenger-2.1.2/ext/apache2/../boost/detail/sp_counted_base_sync.hpp:39: undefined reference to
sync_fetch_and_add_4'
/tmp/cc3AIVSD.o: In function boost::detail::atomic_conditional_increment(int*)': /root/tmp/passenger-2.1.2/ext/apache2/../boost/detail/sp_counted_base_sync.hpp:62: undefined reference to
sync_val_compare_and_swap_4'
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [g++ ApplicationPoolServerExecutable.cpp Ut...]
/root/tmp/passenger-2.1.2/Rakefile:177
The THREADING_FLAGS var seems to have been removed from the Rakefile so i've modified the CXXFLAGS var
+CXXFLAGS = "-Wall #{OPTIMIZATION_FLAGS} -DBOOST_SP_USE_PTHREADS"
And with this modification all works fine with and without optimization.
@honglila I'm sorry but I have never used Solaris so I can't tell you anything related with it.
From honglilai on March 15, 2009 09:24:57
Oops, I mistook the report to mean Solaris on Sparc. You're running Gentoo. :)
Can you post the output of the following command?
echo | cpp -dM
From jeremie.horhant@titinux.net on March 15, 2009 09:31:04
Of course ;-)
My version of cpp is "(Gentoo 4.3.2- r3 p1.6, pie-10.1.5) 4.3.2"
From honglilai on March 15, 2009 09:53:33
What happens if you modify ext/boost/detail/sp_counted_base.hpp and change
to
defined( __sparcv9 ) )
From jeremie.horhant@titinux.net on March 15, 2009 11:02:49
I've remove my old modification and i've put your's.
The error is different :
g++ ApplicationPoolServerExecutable.cpp Utils.o Logging.o SystemTime.o CachedFileStat.o -o ApplicationPoolServerExecutable -I.. -Wall -g -O2 -DBOOST_DISABLE_ASSERTS -D_REENTRANT -D_GLIBCPP__PTHREADS -I/usr/local/include ../libboost_oxt.a -lpthread
/tmp/ccriPSIb.s: Assembler messages:
/tmp/ccriPSIb.s:102: Error: Architecture mismatch on "cas".
/tmp/ccriPSIb.s:102: (Requires v9|v9a|v9b; requested architecture is sparclite.)
/tmp/ccriPSIb.s:501: Error: Architecture mismatch on "cas".
/tmp/ccriPSIb.s:501: (Requires v9|v9a|v9b; requested architecture is sparclite.)
/tmp/ccriPSIb.s:1719: Error: Architecture mismatch on "cas".
/tmp/ccriPSIb.s:1719: (Requires v9|v9a|v9b; requested architecture is sparclite.)
/tmp/ccriPSIb.s:1785: Error: Architecture mismatch on "cas".
/tmp/ccriPSIb.s:1785: (Requires v9|v9a|v9b; requested architecture is sparclite.) .... hundreads of lines like that. :-\
From honglilai on March 15, 2009 11:58:05
OK so that doesn't work. I'll go with the other solution.
Could you post the output of:
ruby -e "puts RUBY_PLATFORM"
From jeremie.horhant@titinux.net on March 15, 2009 13:28:48
The output is sparc-linux
From honglilai on March 15, 2009 13:38:52
Could you check whether the latest git commit works?
From jeremie.horhant@titinux.net on March 15, 2009 16:50:15
I build passenger with the master branch and all works fine.
Thank you very much for your work. :-)
And in the future, if you have to test something on sparc I would be pleased to help you. (My username on github is titinux)
From honglilai on March 16, 2009 02:07:31
Status: Fixed
Labels: Milestone-2.2.0
From jeremie.horhant@titinux.net on February 08, 2009 16:41:35
*\ What steps will reproduce the problem?
*\ What is the expected output? What do you see instead?
I've attached my build log. I think there is a problem to link with boost lib.
*\ What version of the product are you using? On what operating system?
I'm using gentoo linux on a ultra-sparc. I've tried 2.0.3 and 2.0.6 (with gem system, gentoo packages and from source).
*\ Please provide any additional information below.
I don't know if these information will be usefull but there is a full description of my system
Portage 2.1.6.4 (default/linux/sparc/2008.0/server, gcc-4.1.2,
glibc-2.6.1- r0 , 2.6.27-gentoo sparc64)
System uname: Linux-2.6.27-gentoo-sparc64-sun4u-with-glibc2.0
Timestamp of tree: Sat, 07 Feb 2009 22:45:01 +0000
app-shells/bash:3.2_p39
dev-lang/python:2.4.4- r14 , 2.5.2- r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1- r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.5, 1.7.9- r1 , 1.9.6- r2 , 1.10.2 sys-devel/binutils: 2.18- r3 sys-devel/gcc-config: 1.4.0- r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27- r2 ACCEPT_KEYWORDS="sparc" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc -pipe -mvis" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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 -mcpu=ultrasparc -pipe -mvis" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS=" ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ " LDFLAGS="-Wl,-O1" LINGUAS="fr" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl apache2 bzip2 clamav cli cracklib crypt dri fortran gcc64 gdbm gpm iconv ipv6 isdnlog logrotate mailwrapper midi mudflap mysql nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp sparc spl ssl sysfs tcpd threads truetype unicode vhosts xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga r128 radeonsunbw2 suncg14 suncg3 suncg6 sunffb sunleo tdfx voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Attachment: build.log
Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=200