monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] FreeBSD/sparc64


From: Corey Halpin
Subject: [Monotone-devel] FreeBSD/sparc64
Date: Thu, 02 Sep 2004 19:34:52 -0500
User-agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803)

  Hello.
  I've been trying to get monotone to compile on FreeBSD/sparc64.  I
have been successful, after applying the attached patch.

However, the newly built monotone crashes:
moe:~/monotone-0.14-patched$ gdb ./monotone
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc64-marcel-freebsd"...
(gdb) run --version
Starting program: /usr/home/crhalpin/monotone-0.14-patched/monotone
--version

Program received signal SIGSEGV, Segmentation fault.
0x0000000040e5f490 in memcpy () from /lib/libc.so.5
(gdb) bt
#0  0x0000000040e5f490 in memcpy () from /lib/libc.so.5
#1  0x00000000004ddd80 in std::string::append ()
#2  0x000000000027a134 in boost::io::detail::(anonymous
namespace)::mk_str<char, std::char_traits<char> > (address@hidden,
beg=0x75ec18 "C", '?' <repeats 199 times>..., size=-1, w=0,
fill_char=32 ' ', f=4098, prefix_space=0 '\0', center=false)
    at feed_args.hpp:73
#3  0x0000000000279ad0 in boost::io::detail::(anonymous
namespace)::put<char, std::char_traits<char>, char const* const&>
(address@hidden,     address@hidden, address@hidden,
address@hidden) at feed_args.hpp:165
#4  0x0000000000278770 in boost::io::detail::distribute<char,
std::char_traits<char>, char const* const&> (address@hidden,
address@hidden)
    at feed_args.hpp:241
#5  0x00000000002783a8 in boost::io::detail::feed<char,
std::char_traits<char>, char const* const&> (address@hidden,
address@hidden)
    at feed_args.hpp:249
#6  0x0000000000277fb4 in boost::basic_format<char,
std::char_traits<char> >::operator%<char const*> (this=0x7fdffffe120,
address@hidden)
    at format_class.hpp:61
#7  0x000000000035fdf8 in cpp_main (argc=2, argv=0x7fdffffe7c0)
    at monotone.cc:141
#8  0x0000000000362e40 in main_with_signal_handlers (argc=2,
argv=0x7fdffffe7c0)
 at main.cc:282
#9  0x0000000000362fec in main_with_many_flavours_of_exception (argc=2,
    argv=0x7fdffffe7c0) at main.cc:336
#10 0x0000000000363a14 in main (argc=2, argv=0x7fdffffe7c0) at main.cc:456
(gdb)

(apologies for the messy formatting)

  I'm a bit out of my depth here, anybody know what I might do to fix this?

thanks,
crh
diff -ru monotone-0.14/cryptopp/config.h monotone-0.14-patched/cryptopp/config.h
--- monotone-0.14/cryptopp/config.h     Sun May 16 17:23:22 2004
+++ monotone-0.14-patched/cryptopp/config.h     Thu Sep  2 12:32:08 2004
@@ -100,7 +100,7 @@
 NAMESPACE_BEGIN(CryptoPP)
 
 typedef unsigned short word16;
-#if ( defined(__alpha) || defined(__x86_64) ) && !defined(_MSC_VER)
+#if ( defined (__sparc) || defined(__alpha) || defined(__x86_64) ) && 
!defined(_MSC_VER)
        typedef unsigned int word32;
 #else
        typedef unsigned long word32;
@@ -117,14 +117,14 @@
 #endif
 
 // defined this if your CPU is not 64-bit
-#if defined(WORD64_AVAILABLE) && !defined(__alpha) && !defined(__x86_64)
+#if defined(WORD64_AVAILABLE) && !defined(__sparc) && !defined(__alpha) && 
!defined(__x86_64)
 #      define SLOW_WORD64
 #endif
 
 // word should have the same size as your CPU registers
 // dword should be twice as big as word
 
-#if (defined(__GNUC__) && !defined(__alpha)) && !defined(__x86_64) || 
defined(__MWERKS__)
+#if (defined(__GNUC__) && !defined(__sparc) && !defined(__alpha)) && 
!defined(__x86_64) || defined(__MWERKS__)
        typedef unsigned long __attribute__((__may_alias__)) word;
        typedef unsigned long long __attribute__((__may_alias__)) dword;
 #elif defined(_MSC_VER) || defined(__BCPLUSPLUS__)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]