Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2016 09:29:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 213588] lang/gcc5 fails to build www/firefox and lang/ruby22 with DTRACE enabled
Message-ID:  <bug-213588-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213588

            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-bugs@FreeBSD.org
          Reporter: kennethsalerno@yahoo.com
                CC: gecko@FreeBSD.org, gerald@FreeBSD.org,
                    ruby@FreeBSD.org
                CC: gecko@FreeBSD.org, gerald@FreeBSD.org,
                    ruby@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...)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
www/firefox build fails with:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
/usr/local/bin/ld: ../../js/src/js-dtrace.o: warning: relocation against
`_ZN2js
13ExecuteKernelEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectRKNS2_5ValueEN=
S_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.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
lang/ruby22 build fails with:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
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: def=
ined
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 =3D /usr/local/bin/i386-portbld-freebsd11.0-gcc
   XCXX =3D /usr/local/bin/i386-portbld-freebsd11.0-g++
   XCPP =3D /usr/local/bin/i386-portbld-freebsd11.0-cpp
   CROSS_BINUTILS_PREFIX =3D /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 =3D /usr/local/bin/gcc5
   CXX =3D /usr/local/bin/g++5
   CPP =3D /usr/local/bin/cpp5
   CFLAGS +=3D -Wl,-rpath=3D/usr/local/lib/gcc5
   CXXFLAGS +=3D -Wl,-rpath=3D/usr/local/lib/gcc5
   LDFLAGS +=3D -Wl,-rpath=3D/usr/local/lib/gcc5 -L/usr/local/lib/gcc5

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213588-13>