Ticket #1271 (closed defect: fixed)

Opened 2 years ago

Last modified 3 months ago

rtorrent r1041 compile error on FreeBSD 6.2

Reported by: artifex@freemail.hu Owned by: rakshasa
Priority: normal Milestone:
Component: rtorrent Version: HEAD
Severity: blocker Keywords:
Cc:

Description

I had problem with r1041. It gives the following error when I compile:

gc++-2.0/include -I/usr/local/include   -I/usr/local/include -MT dht_manager.o -MD -MP -MF ".deps/dht_manager.Tpo" -c -o dht_manager.o dht_manager.cc;  then mv -f ".deps/dht_manager.Tpo" ".deps/dht_manager.Po"; else rm -f ".deps/dht_manager.Tpo"; exit 1; fi
g++: Internal error: Illegal instruction: 4 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Stop in /root/src/rtorrent/rtorrent/src/core.
*** Error code 1

Stop in /root/src/rtorrent/rtorrent/src.
*** Error code 1

Stop in /root/src/rtorrent/rtorrent.
*** Error code 1

Stop in /root/src/rtorrent/rtorrent.

r1040 compiled flawless though. I am using FreeBSD 6.2 with the standard gcc version 3.4.6 [FreeBSD] 20060305.

Attachments

rt_triple.patch (0.6 KB) - added by daniel-gl@gmx.net 20 months ago.
fix

Change History

follow-up: ↓ 2   Changed 2 years ago by anonymous

An internal error in g++ is by definition a compiler bug. Update to a more recent compiler version, 3.4.x is ancient.

in reply to: ↑ 1   Changed 2 years ago by artifex@freemail.hu

Replying to anonymous:

An internal error in g++ is by definition a compiler bug. Update to a more recent compiler version, 3.4.x is ancient.

Thanks for your answer! I will upgrade my system to version 7.x but no deadline yet.

BTW, I think if this version of the compiler is good for my 254 ports and r1040 it would be good for new versions as well.

  Changed 2 years ago by rakshasa

  • status changed from new to closed
  • resolution set to worksforme

  Changed 22 months ago by anonymous

  • status changed from closed to reopened
  • resolution worksforme deleted

I get a similar error when trying to build rtorrent using GCC 3.4.6 on a linkstation running Freelink/Debian; is there any hope for a bugfix for those of us who cannot upgrade to new versions of GCC?

  Changed 22 months ago by anonymous

Considering how rakshasa closed it as "worksforme", you're apparently on your own. There's no guarantee it can be fixed easily and wasting time to attempt to find a way to work around compiler bugs which have been fixed long ago already is asking a bit much.

You're better off trying to get your distro to switch to a recent compiler version.

  Changed 22 months ago by anonymous

... but I'm not on my own - there's the guy who opened the ticket in the first place, and two other people on the libtorrent-devel list are in the same boat. It may well be due to an error in the compiler, but previous versions of rtorrent worked OK, so there may be something easy to fix in the source code that will make it work again - I don't know. The trac is for reporting bugs, so that's what I'm doing; and rather than creating a new, superfluous ticket, I thought it better just to reopen the existing one. I'm sorry if I'm wasting anyone's time.

  Changed 22 months ago by rakshasa

  • status changed from reopened to closed
  • resolution set to invalid

You're not alone as you said, but you're still without me. _

  Changed 21 months ago by anonymous

I'm have same error too,

freebsd 6.2 with GCC 3.4.6/GCC 4.2.4

  Changed 20 months ago by daniel-gl@gmx.net

  • status changed from closed to reopened
  • resolution invalid deleted

src/rpc/command.h needlessly uses templates for two copy constructors in rt_triple. Instead of U1, U2, U3 the original template parameters T1, T2, T3 should be used.

Changed 20 months ago by daniel-gl@gmx.net

fix

  Changed 19 months ago by kolundin@gmail.com

I confirm successful build with above patch applied.

--
(CentOS release 4.6 / Linux 2.6.9-67.0.20.EL #1 i386 GNU/Linux / g++ (GCC) 3.4.6 20060404)

  Changed 18 months ago by anonymous

i can also confirm successful build with patch (Same error as bug report states now fixed by patch)

Freebsd 6.2

  Changed 13 months ago by danpritts

adding RHEL4 as search bait

  Changed 7 months ago by anonymous

thanks danpritts I'll need this patch for compiling on sme server

  Changed 3 months ago by rakshasa

  • status changed from reopened to closed
  • resolution set to fixed

Fixed in next commit.

Add/Change #1271 (rtorrent r1041 compile error on FreeBSD 6.2)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.