Bug 243221 - net-p2p/mldonkey: fix build on powerpc64 elfv2
Summary: net-p2p/mldonkey: fix build on powerpc64 elfv2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-09 14:03 UTC by Piotr Kubaj
Modified: 2020-01-22 17:33 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments
patch (366 bytes, patch)
2020-01-09 14:03 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (danfe)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2020-01-09 14:03:24 UTC
Created attachment 210568 [details]
patch

Clang can't build this port on powerpc64:
ld: error: build/client.a(commonShared.o):(function camlCommonShared__ni_2211: .text+0xCE): relocation R_PPC64_TOC16_DS out of range: 121936 is not in [-32768, 32767]
ld: error: build/core.a(donkeyOptions.o):(function camlDonkeyOptions__max_allowed_connected_servers_1641: .text+0x1A): relocation R_PPC64_TOC16_DS out of range: 69120 is not in [-32768, 32767]
ld: error: build/cdk.a(http_lexer.o):(function camlHttp_lexer__get_args_1205: .text+0x12): relocation R_PPC64_TOC16_DS out of range: 203032 is not in [-32768, 32767]
ld: error: build/core.a(donkeySui.o):(function camlDonkeySui__entry: .text+0xE): relocation R_PPC64_TOC16_DS out of range: 67800 is not in [-32768, 32767]
ld: error: build/core.a(bTTracker.o):(function camlBTTracker___s_2187: .text+0x1E): relocation R_PPC64_TOC16_DS out of range: 56416 is not in [-32768, 32767]
ld: error: build/core.a(fasttrackPandora.o):(function camlFasttrackPandora__parse_packets_2974: .text+0xE2): relocation R_PPC64_TOC16_DS out of range: 33376 is not in [-32768, 32767]
ld: error: build/core.a(bTComplexOptions.o):(function camlBTComplexOptions__value_to_stat_2101: .text+0x2A): relocation R_PPC64_TOC16_DS out of range: 54664 is not in [-32768, 32767]
ld: error: build/client.a(commonFile.o):(function camlCommonFile__lprintf_nl_2179: .text+0xE): relocation R_PPC64_TOC16_DS out of range: 115712 is not in [-32768, 32767]
ld: error: build/client.a(commonClient.o):(function camlCommonClient__lprintf_nl_1950: .text+0xE): relocation R_PPC64_TOC16_DS out of range: 111992 is not in [-32768, 32767]
ld: error: build/core.a(donkeySupernode.o):(function camlDonkeySupernode__supernode_browse_handler_3151: .text+0x36): relocation R_PPC64_TOC16_DS out of range: 83480 is not in [-32768, 32767]
ld: error: build/core.a(bTRate.o):(function camlBTRate__update_inner_1301: .text+0x1A): relocation R_PPC64_TOC16_DS out of range: 43592 is not in [-32768, 32767]
ld: error: build/core.a(fileTPGlobals.o):(function camlFileTPGlobals__lprintf_nl_2804: .text+0xE): relocation R_PPC64_TOC16_DS out of range: 36344 is not in [-32768, 32767]
ld: error: build/core.a(bTGlobals.o):(function camlBTGlobals__send_client_3016: .text+0x12): relocation R_PPC64_TOC16_DS out of range: 53800 is not in [-32768, 32767]
ld: error: build/cdk.a(ip_set.o):(function camlIp_set___s_1273: .text+0x1E): relocation R_PPC64_TOC16_DS out of range: 215720 is not in [-32768, 32767]
ld: error: build/core.a(fileTPMain.o):(function camlFileTPMain__disable_2093: .text+0x26): relocation R_PPC64_TOC16_DS out of range: 43000 is not in [-32768, 32767]
ld: error: build/core.a(donkeyShare.o):(function camlDonkeyShare__must_share_file_2899: .text+0x5E): relocation R_PPC64_TOC16_DS out of range: 84280 is not in [-32768, 32767]
ld: error: build/core.a(bTMain.o):(function camlBTMain__lprintf_nl_2218: .text+0xE): relocation R_PPC64_TOC16_DS out of range: 67312 is not in [-32768, 32767]
ld: error: build/cdk.a(misc.o):(function camlMisc__hexa_digit_1204: .text+0x1A): relocation R_PPC64_TOC16_DS out of range: 197920 is not in [-32768, 32767]
ld: error: build/core.a(bTInteractive.o):(function camlBTInteractive___s_2962: .text+0x1E): relocation R_PPC64_TOC16_DS out of range: 62136 is not in [-32768, 32767]
ld: error: build/core.a(donkeySui1.o):(function camlDonkeySui1__fun_1620: .text+0x1A): relocation R_PPC64_TOC16_DS out of range: 67720 is not in [-32768, 32767]
ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Alexey Dokuchaev freebsd_committer freebsd_triage 2020-01-22 14:42:47 UTC
I have no objection, albeit cannot test it myself ATM.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-01-22 17:33:46 UTC
A commit references this bug:

Author: pkubaj
Date: Wed Jan 22 17:32:55 UTC 2020
New revision: 523822
URL: https://svnweb.freebsd.org/changeset/ports/523822

Log:
  net-p2p/mldonkey: fix build on powerpc64 elfv2

  Clang can't build this port on powerpc64:
  ld: error: build/client.a(commonShared.o):(function camlCommonShared__ni_2211: .text+0xCE): relocation R_PPC64_TOC16_DS out of range: 121936 is not in [-32768, 32767]
  ld: error: build/core.a(donkeyOptions.o):(function camlDonkeyOptions__max_allowed_connected_servers_1641: .text+0x1A): relocation R_PPC64_TOC16_DS out of range: 69120 is not in [-32768, 32767]
  ld: error: build/cdk.a(http_lexer.o):(function camlHttp_lexer__get_args_1205: .text+0x12): relocation R_PPC64_TOC16_DS out of range: 203032 is not in [-32768, 32767]

  PR:		243221
  Approved by:	danfe (maintainer)

Changes:
  head/net-p2p/mldonkey/Makefile