https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213588

            Bug ID: 213588
           Summary: lang/gcc5 fails to build www/firefox and lang/ruby22
                    with DTRACE enabled
           Product: Ports & Packages
           Version: Latest
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-b...@freebsd.org
          Reporter: kennethsale...@yahoo.com
                CC: ge...@freebsd.org, ger...@freebsd.org,
                    r...@freebsd.org
                CC: ge...@freebsd.org, ger...@freebsd.org,
                    r...@freebsd.org

Note: similar linker failure listed in NetBSD PR toolchain/51459

Resolution:
   www/firefox: disable DTRACE
   lang/ruby22: force --disable-dtrace (should be a configurable option...)

=============================
www/firefox build fails with:
=============================
/usr/local/bin/ld: ../../js/src/js-dtrace.o: warning: relocation against
`_ZN2js
13ExecuteKernelEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectRKNS2_5ValueENS_16A
bstractFramePtrEPS9_' in readonly section `.SUNW_dof'
`__x86.get_pc_thunk.bx' referenced in section `.text' of
../../js/src/js-dtrace.o: defined in discarded section
`.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of
../../js/src/js-dtrace.o
`__x86.get_pc_thunk.bx' referenced in section `.text.startup' of
../../js/src/js-dtrace.o: defined in discarded section
`.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of
../../js/src/js-dtrace.o
`__x86.get_pc_thunk.bx' referenced in section `.text.exit' of
../../js/src/js-dtrace.o: defined in discarded section
`.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of
../../js/src/js-dtrace.o
/usr/local/bin/ld: read-only segment has dynamic relocations.

=============================
lang/ruby22 build fails with:
=============================
linking miniruby
`__x86.get_pc_thunk.bx' referenced in section `.text' of probes.o: defined in
discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of
probes.o
`__x86.get_pc_thunk.bx' referenced in section `.text.startup' of probes.o:
defined in discarded section
`.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of probes.o
`__x86.get_pc_thunk.bx' referenced in section `.text.exit' of probes.o: defined
in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of
probes.o
collect2: error: ld returned 1 exit status

My build environment:
poudriere 3.1.14
poudriere jail world (src): 11.0-RELEASE-p1
   XCC = /usr/local/bin/i386-portbld-freebsd11.0-gcc
   XCXX = /usr/local/bin/i386-portbld-freebsd11.0-g++
   XCPP = /usr/local/bin/i386-portbld-freebsd11.0-cpp
   CROSS_BINUTILS_PREFIX = /usr/local/bin/i386-freebsd-

(i386-gcc and i386-binutils are simply a copy of devel/amd64-* xtoolchains
built for i386 with sed -i '' 's/amd64/i386/g; s/x86_64/i386/g' Makefile &&
make && make makeplist >pkg-plist && make clean && make install clean)

ports config:
   CC = /usr/local/bin/gcc5
   CXX = /usr/local/bin/g++5
   CPP = /usr/local/bin/cpp5
   CFLAGS += -Wl,-rpath=/usr/local/lib/gcc5
   CXXFLAGS += -Wl,-rpath=/usr/local/lib/gcc5
   LDFLAGS += -Wl,-rpath=/usr/local/lib/gcc5 -L/usr/local/lib/gcc5

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-ruby@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ruby
To unsubscribe, send any mail to "freebsd-ruby-unsubscr...@freebsd.org"

Reply via email to