Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-06 Thread O. Hartmann
Am Sun, 5 Oct 2014 15:20:20 -0700
Mark Johnston ma...@freebsd.org schrieb:

 On Sun, Oct 05, 2014 at 11:18:55AM +0200, O. Hartmann wrote:
  Am Sun, 5 Oct 2014 05:36:57 +0400
  Arseny Nasokin eir...@gmail.com schrieb:
  
   Mark,
   
   Thank you for patch, I encounter same error and this patch works for me.
   
   ✪
   
   
   -- Eir Nym
   
   On 5 October 2014 04:43, Mark Johnston ma...@freebsd.org wrote:
   
On Sat, Oct 04, 2014 at 04:41:07PM -0700, Russell L. Carter wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1



 On 10/04/14 15:58, Mark Johnston wrote:
  On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org
  wrote:
  On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
  On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston
  ma...@freebsd.org wrote:
  On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
  Recent sources (Revision: 272529) fail to compile:
 
  [...] cc -m32 -march=native -DCOMPAT_32BIT  -isystem
  /usr/obj/usr/src/lib32/usr/include/
  -L/usr/obj/usr/src/lib32/usr/lib32
  -B/usr/obj/usr/src/lib32/usr/lib32  -O2 -pipe -O3 -O3 -pipe
  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
  -fstack-protector -Wsystem-headers -Werror
  -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int
  -Wno-unused-const-variable -Wno-tautological-compare
  -Wno-unused-value -Wno-parentheses-equality
  -Wno-unused-function -Wno-enum-conversion -Wno-switch
  -Wno-switch-enum -Wno-knr-promoted-parameter
  -Wno-parentheses -Qunused-arguments -c
  /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
  all_subdir_libproc --- --- libproc.so.3 ---
  /usr/obj/usr/src/tmp/usr/bin/ld: skipping incompatible
  /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
 
  I'm confused by this message. Are you building with
  -DNO_CLEAN? Do you have anything in make.conf or src.conf,
  especially anything that's changed since libctf was rebuilt?
 
  You might try rebuilding libctf with
 
  $ cd /usr/src $ make -C cddl/lib/libctf clean all
 
  but I'm not sure why ld is ignoring the existing libctf.so.
 
  The failure is coming while building the lib32 compat
  libraries.  Are we not currently building a lib32 libctf.so?
 
  No, we do. One thing I've noticed is that cddl/lib is built after
  lib/ when compiling 32-bit libs, whereas cddl/lib is built first
  when building natively.
 
  Sorry, that's not even true. I misread a part of Makefile.inc1.
 
  I'm still not able to reproduce the problem, but it seems that the
  patch here is appropriate:
  http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
 
  Oliver, could you give this a try?

 Even poudriere can't get past this one.
   
Sorry, it was incomplete. It's been updated:
http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to 
freebsd-current-unsubscr...@freebsd.org
   
   ___
   freebsd-current@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-current
   To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
  
  After some minor corrections to the patch (the patched original sources 
  seem not to
  match most recent CURRENT sources as of revision 272562), buildworld works 
  again as
  expected.
  
  Thank you very much.
 
 Committed as r272576. Sorry for the breakage.
 
 The patch was generated from my git tree, which didn't contain r272484,
 so the patch wouldn't apply to svn cleanly. I'll be sure to check that
 next time. :(
 
 Thanks,
 -Mark
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

... everything is shiny here ...

Oliver


signature.asc
Description: PGP signature


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-05 Thread O. Hartmann
Am Sat, 4 Oct 2014 15:58:48 -0700
Mark Johnston ma...@freebsd.org schrieb:

 On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org wrote:
  On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
  On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston ma...@freebsd.org wrote:
   On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
   Recent sources (Revision: 272529) fail to compile:
  
   [...]
   cc -m32 -march=native -DCOMPAT_32BIT  -isystem 
   /usr/obj/usr/src/lib32/usr/include/
   -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32  
   -O2 -pipe
   -O3 -O3 -pipe  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc 
   -std=gnu99
   -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign 
   -Wno-empty-body
   -Wno-string-plus-int -Wno-unused-const-variable 
   -Wno-tautological-compare
   -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
   -Wno-enum-conversion -Wno-switch -Wno-switch-enum 
   -Wno-knr-promoted-parameter
   -Wno-parentheses -Qunused-arguments -c 
   /usr/src/lib/librpcsvc/yp_passwd.c -o
   yp_passwd.o --- all_subdir_libproc --- --- libproc.so.3
   --- /usr/obj/usr/src/tmp/usr/bin/ld: skipping
   incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
  
   I'm confused by this message. Are you building with -DNO_CLEAN? Do you
   have anything in make.conf or src.conf, especially anything that's
   changed since libctf was rebuilt?
  
   You might try rebuilding libctf with
  
   $ cd /usr/src
   $ make -C cddl/lib/libctf clean all
  
   but I'm not sure why ld is ignoring the existing libctf.so.
 
  The failure is coming while building the lib32 compat libraries.  Are
  we not currently building a lib32 libctf.so?
 
  No, we do. One thing I've noticed is that cddl/lib is built after lib/
  when compiling 32-bit libs, whereas cddl/lib is built first when building
  natively.
 
 Sorry, that's not even true. I misread a part of Makefile.inc1.
 
 I'm still not able to reproduce the problem, but it seems that the
 patch here is appropriate:
 http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
 
 Oliver, could you give this a try?

This patch doesn't apply with sources at rev. 272559, as it bails out. 
Investigating the
situation shows, that my top-level Makefile.inc seems different from what the 
patch is
supposed to expect:

root@gate [src] patch -p1  /tmp/libctf_prebuild.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--
|diff --git a/Makefile.inc1 b/Makefile.inc1
|index 3b92aef..9350339 100644
|--- a/Makefile.inc1
|+++ b/Makefile.inc1
--
Patching file Makefile.inc1 using Plan A...
Hunk #1 succeeded at 1536 with fuzz 1 (offset 2 lines).
Hunk #2 failed at 1584.
1 out of 2 hunks failed--saving rejects to Makefile.inc1.rej
done



The patch at line 1530 ff:

[...]
lib/libgeom \
${_cddl_lib_libumem} ${_cddl_lib_libnvpair} \
${_cddl_lib_libuutil} \
${_cddl_lib_libavl} \
${_cddl_lib_libzfs_core} \
${_cddl_lib_libctf} \
lib/libutil lib/libpjdlog ${_lib_libypclnt} lib/libz lib/msun \
${_secure_lib_libcrypto} ${_lib_libldns} \
${_secure_lib_libssh} ${_secure_lib_libssl}

My source tree is clean and sober as svn status reports.

A bit spooky, isn't it?

Oliver


signature.asc
Description: PGP signature


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-05 Thread O. Hartmann
Am Sun, 5 Oct 2014 05:36:57 +0400
Arseny Nasokin eir...@gmail.com schrieb:

 Mark,
 
 Thank you for patch, I encounter same error and this patch works for me.
 
 ✪
 
 
 -- Eir Nym
 
 On 5 October 2014 04:43, Mark Johnston ma...@freebsd.org wrote:
 
  On Sat, Oct 04, 2014 at 04:41:07PM -0700, Russell L. Carter wrote:
   -BEGIN PGP SIGNED MESSAGE-
   Hash: SHA1
  
  
  
   On 10/04/14 15:58, Mark Johnston wrote:
On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org
wrote:
On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston
ma...@freebsd.org wrote:
On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
Recent sources (Revision: 272529) fail to compile:
   
[...] cc -m32 -march=native -DCOMPAT_32BIT  -isystem
/usr/obj/usr/src/lib32/usr/include/
-L/usr/obj/usr/src/lib32/usr/lib32
-B/usr/obj/usr/src/lib32/usr/lib32  -O2 -pipe -O3 -O3 -pipe
-DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
-fstack-protector -Wsystem-headers -Werror
-Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int
-Wno-unused-const-variable -Wno-tautological-compare
-Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-switch
-Wno-switch-enum -Wno-knr-promoted-parameter
-Wno-parentheses -Qunused-arguments -c
/usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
all_subdir_libproc --- --- libproc.so.3 ---
/usr/obj/usr/src/tmp/usr/bin/ld: skipping incompatible
/usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
   
I'm confused by this message. Are you building with
-DNO_CLEAN? Do you have anything in make.conf or src.conf,
especially anything that's changed since libctf was rebuilt?
   
You might try rebuilding libctf with
   
$ cd /usr/src $ make -C cddl/lib/libctf clean all
   
but I'm not sure why ld is ignoring the existing libctf.so.
   
The failure is coming while building the lib32 compat
libraries.  Are we not currently building a lib32 libctf.so?
   
No, we do. One thing I've noticed is that cddl/lib is built after
lib/ when compiling 32-bit libs, whereas cddl/lib is built first
when building natively.
   
Sorry, that's not even true. I misread a part of Makefile.inc1.
   
I'm still not able to reproduce the problem, but it seems that the
patch here is appropriate:
http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
   
Oliver, could you give this a try?
  
   Even poudriere can't get past this one.
 
  Sorry, it was incomplete. It's been updated:
  http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
  ___
  freebsd-current@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-current
  To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
 
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

After some minor corrections to the patch (the patched original sources seem 
not to match
most recent CURRENT sources as of revision 272562), buildworld works again as 
expected.

Thank you very much.

Oliver


signature.asc
Description: PGP signature


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-05 Thread Arseny Nasokin
Waiting for patch in -CURRENT.

-- Eir Nym

On 5 October 2014 13:18, O. Hartmann ohart...@zedat.fu-berlin.de wrote:

 Am Sun, 5 Oct 2014 05:36:57 +0400
 Arseny Nasokin eir...@gmail.com schrieb:

  Mark,
 
  Thank you for patch, I encounter same error and this patch works for me.
 
  ✪
 
 
  -- Eir Nym
 
  On 5 October 2014 04:43, Mark Johnston ma...@freebsd.org wrote:
 
   On Sat, Oct 04, 2014 at 04:41:07PM -0700, Russell L. Carter wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
   
   
   
On 10/04/14 15:58, Mark Johnston wrote:
 On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org
 wrote:
 On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
 On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston
 ma...@freebsd.org wrote:
 On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
 Recent sources (Revision: 272529) fail to compile:

 [...] cc -m32 -march=native -DCOMPAT_32BIT  -isystem
 /usr/obj/usr/src/lib32/usr/include/
 -L/usr/obj/usr/src/lib32/usr/lib32
 -B/usr/obj/usr/src/lib32/usr/lib32  -O2 -pipe -O3 -O3 -pipe
 -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
 -fstack-protector -Wsystem-headers -Werror
 -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int
 -Wno-unused-const-variable -Wno-tautological-compare
 -Wno-unused-value -Wno-parentheses-equality
 -Wno-unused-function -Wno-enum-conversion -Wno-switch
 -Wno-switch-enum -Wno-knr-promoted-parameter
 -Wno-parentheses -Qunused-arguments -c
 /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
 all_subdir_libproc --- --- libproc.so.3 ---
 /usr/obj/usr/src/tmp/usr/bin/ld: skipping incompatible
 /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for

 I'm confused by this message. Are you building with
 -DNO_CLEAN? Do you have anything in make.conf or src.conf,
 especially anything that's changed since libctf was rebuilt?

 You might try rebuilding libctf with

 $ cd /usr/src $ make -C cddl/lib/libctf clean all

 but I'm not sure why ld is ignoring the existing libctf.so.

 The failure is coming while building the lib32 compat
 libraries.  Are we not currently building a lib32 libctf.so?

 No, we do. One thing I've noticed is that cddl/lib is built after
 lib/ when compiling 32-bit libs, whereas cddl/lib is built first
 when building natively.

 Sorry, that's not even true. I misread a part of Makefile.inc1.

 I'm still not able to reproduce the problem, but it seems that the
 patch here is appropriate:
 http://people.freebsd.org/~markj/patches/libctf_prebuild.diff

 Oliver, could you give this a try?
   
Even poudriere can't get past this one.
  
   Sorry, it was incomplete. It's been updated:
   http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
   ___
   freebsd-current@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-current
   To unsubscribe, send any mail to 
 freebsd-current-unsubscr...@freebsd.org
  
  ___
  freebsd-current@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-current
  To unsubscribe, send any mail to 
 freebsd-current-unsubscr...@freebsd.org

 After some minor corrections to the patch (the patched original sources
 seem not to match
 most recent CURRENT sources as of revision 272562), buildworld works again
 as expected.

 Thank you very much.

 Oliver

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-05 Thread Ranjan1018 .
2014-10-05 11:37 GMT+02:00 Arseny Nasokin eir...@gmail.com:

 Waiting for patch in -CURRENT.

 -- Eir Nym

 This patch work in r272559 for me: http://pastebin.com/2QJRYjCK

Regards
Maurizio
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-05 Thread Mark Johnston
On Sun, Oct 05, 2014 at 11:18:55AM +0200, O. Hartmann wrote:
 Am Sun, 5 Oct 2014 05:36:57 +0400
 Arseny Nasokin eir...@gmail.com schrieb:
 
  Mark,
  
  Thank you for patch, I encounter same error and this patch works for me.
  
  ✪
  
  
  -- Eir Nym
  
  On 5 October 2014 04:43, Mark Johnston ma...@freebsd.org wrote:
  
   On Sat, Oct 04, 2014 at 04:41:07PM -0700, Russell L. Carter wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
   
   
   
On 10/04/14 15:58, Mark Johnston wrote:
 On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org
 wrote:
 On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
 On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston
 ma...@freebsd.org wrote:
 On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
 Recent sources (Revision: 272529) fail to compile:

 [...] cc -m32 -march=native -DCOMPAT_32BIT  -isystem
 /usr/obj/usr/src/lib32/usr/include/
 -L/usr/obj/usr/src/lib32/usr/lib32
 -B/usr/obj/usr/src/lib32/usr/lib32  -O2 -pipe -O3 -O3 -pipe
 -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
 -fstack-protector -Wsystem-headers -Werror
 -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int
 -Wno-unused-const-variable -Wno-tautological-compare
 -Wno-unused-value -Wno-parentheses-equality
 -Wno-unused-function -Wno-enum-conversion -Wno-switch
 -Wno-switch-enum -Wno-knr-promoted-parameter
 -Wno-parentheses -Qunused-arguments -c
 /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
 all_subdir_libproc --- --- libproc.so.3 ---
 /usr/obj/usr/src/tmp/usr/bin/ld: skipping incompatible
 /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for

 I'm confused by this message. Are you building with
 -DNO_CLEAN? Do you have anything in make.conf or src.conf,
 especially anything that's changed since libctf was rebuilt?

 You might try rebuilding libctf with

 $ cd /usr/src $ make -C cddl/lib/libctf clean all

 but I'm not sure why ld is ignoring the existing libctf.so.

 The failure is coming while building the lib32 compat
 libraries.  Are we not currently building a lib32 libctf.so?

 No, we do. One thing I've noticed is that cddl/lib is built after
 lib/ when compiling 32-bit libs, whereas cddl/lib is built first
 when building natively.

 Sorry, that's not even true. I misread a part of Makefile.inc1.

 I'm still not able to reproduce the problem, but it seems that the
 patch here is appropriate:
 http://people.freebsd.org/~markj/patches/libctf_prebuild.diff

 Oliver, could you give this a try?
   
Even poudriere can't get past this one.
  
   Sorry, it was incomplete. It's been updated:
   http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
   ___
   freebsd-current@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-current
   To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
  
  ___
  freebsd-current@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-current
  To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
 
 After some minor corrections to the patch (the patched original sources seem 
 not to match
 most recent CURRENT sources as of revision 272562), buildworld works again as 
 expected.
 
 Thank you very much.

Committed as r272576. Sorry for the breakage.

The patch was generated from my git tree, which didn't contain r272484,
so the patch wouldn't apply to svn cleanly. I'll be sure to check that
next time. :(

Thanks,
-Mark
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-04 Thread Mark Johnston
On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
 Recent sources (Revision: 272529) fail to compile:
 
 [...]
 cc -m32 -march=native -DCOMPAT_32BIT  -isystem 
 /usr/obj/usr/src/lib32/usr/include/
 -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32  -O2 
 -pipe -O3 -O3
 -pipe  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99 
 -fstack-protector
 -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body 
 -Wno-string-plus-int
 -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value
 -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion 
 -Wno-switch
 -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses 
 -Qunused-arguments
 -c /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o --- all_subdir_libproc 
 --- ---
 libproc.so.3 --- /usr/obj/usr/src/tmp/usr/bin/ld: skipping
 incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for

I'm confused by this message. Are you building with -DNO_CLEAN? Do you
have anything in make.conf or src.conf, especially anything that's
changed since libctf was rebuilt?

You might try rebuilding libctf with

$ cd /usr/src
$ make -C cddl/lib/libctf clean all

but I'm not sure why ld is ignoring the existing libctf.so.

 -lctf /usr/obj/usr/src/tmp/usr/bin/ld: skipping
 incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.a when searching for
 -lctf /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lctf cc: error: linker 
 command failed
 with exit code 1 (use -v to see invocation) *** [libproc.so.3] Error code 1
 
 make[5]: stopped in /usr/src/lib/libproc
 --- libproc.a ---
 ranlib -D libproc.a
 [...]
 
 oh


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-04 Thread O. Hartmann
Am Sat, 4 Oct 2014 11:33:38 -0700
Mark Johnston ma...@freebsd.org schrieb:

 On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
  Recent sources (Revision: 272529) fail to compile:
  
  [...]
  cc -m32 -march=native -DCOMPAT_32BIT  -isystem 
  /usr/obj/usr/src/lib32/usr/include/
  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32  -O2 
  -pipe -O3
  -O3 -pipe  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
  -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body
  -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare
  -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function 
  -Wno-enum-conversion
  -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses
  -Qunused-arguments -c /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
  all_subdir_libproc --- --- libproc.so.3 --- 
  /usr/obj/usr/src/tmp/usr/bin/ld: skipping
  incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
 
 I'm confused by this message. Are you building with -DNO_CLEAN? Do you
 have anything in make.conf or src.conf, especially anything that's
 changed since libctf was rebuilt?

I do not build with -DNO_CLEAN. I use a script which kills everything in 
/usr/obj/ and
build then from scratch. 

 
 You might try rebuilding libctf with
 
 $ cd /usr/src
 $ make -C cddl/lib/libctf clean all

I can build libctf.so that way, also installation is no problem, but next time 
when I
buildworld, I run into the same situation.

 
 but I'm not sure why ld is ignoring the existing libctf.so.

Me either.

 
  -lctf /usr/obj/usr/src/tmp/usr/bin/ld: skipping
  incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.a when searching for
  -lctf /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lctf cc: error: linker 
  command
  failed with exit code 1 (use -v to see invocation) *** [libproc.so.3] Error 
  code 1
  
  make[5]: stopped in /usr/src/lib/libproc
  --- libproc.a ---
  ranlib -D libproc.a
  [...]
  
  oh




signature.asc
Description: PGP signature


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-04 Thread Ryan Stone
On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston ma...@freebsd.org wrote:
 On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
 Recent sources (Revision: 272529) fail to compile:

 [...]
 cc -m32 -march=native -DCOMPAT_32BIT  -isystem 
 /usr/obj/usr/src/lib32/usr/include/
 -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32  -O2 
 -pipe -O3 -O3
 -pipe  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99 
 -fstack-protector
 -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body 
 -Wno-string-plus-int
 -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value
 -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion 
 -Wno-switch
 -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses 
 -Qunused-arguments
 -c /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o --- all_subdir_libproc 
 --- ---
 libproc.so.3 --- /usr/obj/usr/src/tmp/usr/bin/ld: skipping
 incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for

 I'm confused by this message. Are you building with -DNO_CLEAN? Do you
 have anything in make.conf or src.conf, especially anything that's
 changed since libctf was rebuilt?

 You might try rebuilding libctf with

 $ cd /usr/src
 $ make -C cddl/lib/libctf clean all

 but I'm not sure why ld is ignoring the existing libctf.so.

The failure is coming while building the lib32 compat libraries.  Are
we not currently building a lib32 libctf.so?
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-04 Thread Mark Johnston
On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
 On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston ma...@freebsd.org wrote:
  On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
  Recent sources (Revision: 272529) fail to compile:
 
  [...]
  cc -m32 -march=native -DCOMPAT_32BIT  -isystem 
  /usr/obj/usr/src/lib32/usr/include/
  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32  
  -O2 -pipe -O3 -O3
  -pipe  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99 
  -fstack-protector
  -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body 
  -Wno-string-plus-int
  -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value
  -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion 
  -Wno-switch
  -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses 
  -Qunused-arguments
  -c /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o --- 
  all_subdir_libproc --- ---
  libproc.so.3 --- /usr/obj/usr/src/tmp/usr/bin/ld: skipping
  incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
 
  I'm confused by this message. Are you building with -DNO_CLEAN? Do you
  have anything in make.conf or src.conf, especially anything that's
  changed since libctf was rebuilt?
 
  You might try rebuilding libctf with
 
  $ cd /usr/src
  $ make -C cddl/lib/libctf clean all
 
  but I'm not sure why ld is ignoring the existing libctf.so.
 
 The failure is coming while building the lib32 compat libraries.  Are
 we not currently building a lib32 libctf.so?

No, we do. One thing I've noticed is that cddl/lib is built after lib/
when compiling 32-bit libs, whereas cddl/lib is built first when building
natively. But that doesn't cause any problems for me. I also don't see
why ld would be searching /usr/obj/usr/src/tmp for a 32-bit lib.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-04 Thread Mark Johnston
On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org wrote:
 On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
 On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston ma...@freebsd.org wrote:
  On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
  Recent sources (Revision: 272529) fail to compile:
 
  [...]
  cc -m32 -march=native -DCOMPAT_32BIT  -isystem 
  /usr/obj/usr/src/lib32/usr/include/
  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32  
  -O2 -pipe -O3 -O3
  -pipe  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99 
  -fstack-protector
  -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body 
  -Wno-string-plus-int
  -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value
  -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion 
  -Wno-switch
  -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses 
  -Qunused-arguments
  -c /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o --- 
  all_subdir_libproc --- ---
  libproc.so.3 --- /usr/obj/usr/src/tmp/usr/bin/ld: skipping
  incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
 
  I'm confused by this message. Are you building with -DNO_CLEAN? Do you
  have anything in make.conf or src.conf, especially anything that's
  changed since libctf was rebuilt?
 
  You might try rebuilding libctf with
 
  $ cd /usr/src
  $ make -C cddl/lib/libctf clean all
 
  but I'm not sure why ld is ignoring the existing libctf.so.

 The failure is coming while building the lib32 compat libraries.  Are
 we not currently building a lib32 libctf.so?

 No, we do. One thing I've noticed is that cddl/lib is built after lib/
 when compiling 32-bit libs, whereas cddl/lib is built first when building
 natively.

Sorry, that's not even true. I misread a part of Makefile.inc1.

I'm still not able to reproduce the problem, but it seems that the
patch here is appropriate:
http://people.freebsd.org/~markj/patches/libctf_prebuild.diff

Oliver, could you give this a try?
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-04 Thread Russell L. Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 10/04/14 15:58, Mark Johnston wrote:
 On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org
 wrote:
 On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
 On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston
 ma...@freebsd.org wrote:
 On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
 Recent sources (Revision: 272529) fail to compile:
 
 [...] cc -m32 -march=native -DCOMPAT_32BIT  -isystem
 /usr/obj/usr/src/lib32/usr/include/ 
 -L/usr/obj/usr/src/lib32/usr/lib32
 -B/usr/obj/usr/src/lib32/usr/lib32  -O2 -pipe -O3 -O3 -pipe
 -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
 -fstack-protector -Wsystem-headers -Werror
 -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
 -Wno-unused-const-variable -Wno-tautological-compare
 -Wno-unused-value -Wno-parentheses-equality
 -Wno-unused-function -Wno-enum-conversion -Wno-switch 
 -Wno-switch-enum -Wno-knr-promoted-parameter
 -Wno-parentheses -Qunused-arguments -c
 /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
 all_subdir_libproc --- --- libproc.so.3 ---
 /usr/obj/usr/src/tmp/usr/bin/ld: skipping incompatible
 /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
 
 I'm confused by this message. Are you building with
 -DNO_CLEAN? Do you have anything in make.conf or src.conf,
 especially anything that's changed since libctf was rebuilt?
 
 You might try rebuilding libctf with
 
 $ cd /usr/src $ make -C cddl/lib/libctf clean all
 
 but I'm not sure why ld is ignoring the existing libctf.so.
 
 The failure is coming while building the lib32 compat
 libraries.  Are we not currently building a lib32 libctf.so?
 
 No, we do. One thing I've noticed is that cddl/lib is built after
 lib/ when compiling 32-bit libs, whereas cddl/lib is built first
 when building natively.
 
 Sorry, that's not even true. I misread a part of Makefile.inc1.
 
 I'm still not able to reproduce the problem, but it seems that the 
 patch here is appropriate: 
 http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
 
 Oliver, could you give this a try?

Even poudriere can't get past this one.

Russell
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJUMIWTAAoJEFnLrGVSDFaEPNkP/i0eo+rmHzyT9qH7F+iJOn8r
2WbN7OKT8Q086nI/rtHAqEeOiIUkXPhxfQiU2zrjXt551zgrAsfdqe39P6kLm1ha
L3yA3joVkjLdWwpDMKEUtm9EChVG//rM258xWKhSTnGBnw4Qvtzy458SdAIXap3J
HjTMJfZ95QuWanoK0HIN0glVoXdO/gVjmifm4CMmRKpKESjsU3vvCckbqDBim0Vi
kmSWhL+dHucaX4b/8hQ/Csn6AKIZoo6LNw8cphZGS9dAvf+0f4PKCZ2KJhwV61TE
rCi5AstFYoWgCk3LKAxMR4bquvtNusTvT5YokDQ4qMwwpihNR8PL6C5IP3bo/RkI
tp4x959Yq5b7RVmmU7IDTQlWA5WoiQMYDGj/HC4iMkfBHzf7Cxl4sl4/HZwJ3fXu
TkCm/EKKyah3heS/wF4tKx4npjBLu6+rWJLFdhCTLS2PWmdMNzBUB65vFrvdTEZl
EFWpiITuV0Dd3Kb46s/Jm/26X1UMZRnKDJEMGtEauJj7hfwoR35+ym/WxI0PnMsz
b4x+NxdPWQbOlRX3pnumcGVI1fuaRMJ8Dbdof7r/CXQITzZjHgbXVvZ0nnAh67L3
Om1G8be2w0jXfTPDI7qQxHIQfoua95VYMdvOcq48mnq3kDSuU+y3BUXamnqsrWqT
K3N72p7T3F/8TsmiFzAI
=IbPc
-END PGP SIGNATURE-
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-04 Thread Mark Johnston
On Sat, Oct 04, 2014 at 04:41:07PM -0700, Russell L. Carter wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 
 On 10/04/14 15:58, Mark Johnston wrote:
  On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org
  wrote:
  On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
  On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston
  ma...@freebsd.org wrote:
  On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
  Recent sources (Revision: 272529) fail to compile:
  
  [...] cc -m32 -march=native -DCOMPAT_32BIT  -isystem
  /usr/obj/usr/src/lib32/usr/include/ 
  -L/usr/obj/usr/src/lib32/usr/lib32
  -B/usr/obj/usr/src/lib32/usr/lib32  -O2 -pipe -O3 -O3 -pipe
  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
  -fstack-protector -Wsystem-headers -Werror
  -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
  -Wno-unused-const-variable -Wno-tautological-compare
  -Wno-unused-value -Wno-parentheses-equality
  -Wno-unused-function -Wno-enum-conversion -Wno-switch 
  -Wno-switch-enum -Wno-knr-promoted-parameter
  -Wno-parentheses -Qunused-arguments -c
  /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
  all_subdir_libproc --- --- libproc.so.3 ---
  /usr/obj/usr/src/tmp/usr/bin/ld: skipping incompatible
  /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
  
  I'm confused by this message. Are you building with
  -DNO_CLEAN? Do you have anything in make.conf or src.conf,
  especially anything that's changed since libctf was rebuilt?
  
  You might try rebuilding libctf with
  
  $ cd /usr/src $ make -C cddl/lib/libctf clean all
  
  but I'm not sure why ld is ignoring the existing libctf.so.
  
  The failure is coming while building the lib32 compat
  libraries.  Are we not currently building a lib32 libctf.so?
  
  No, we do. One thing I've noticed is that cddl/lib is built after
  lib/ when compiling 32-bit libs, whereas cddl/lib is built first
  when building natively.
  
  Sorry, that's not even true. I misread a part of Makefile.inc1.
  
  I'm still not able to reproduce the problem, but it seems that the 
  patch here is appropriate: 
  http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
  
  Oliver, could you give this a try?
 
 Even poudriere can't get past this one.

Sorry, it was incomplete. It's been updated:
http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

2014-10-04 Thread Arseny Nasokin
Mark,

Thank you for patch, I encounter same error and this patch works for me.

✪


-- Eir Nym

On 5 October 2014 04:43, Mark Johnston ma...@freebsd.org wrote:

 On Sat, Oct 04, 2014 at 04:41:07PM -0700, Russell L. Carter wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
 
 
  On 10/04/14 15:58, Mark Johnston wrote:
   On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston ma...@freebsd.org
   wrote:
   On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
   On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston
   ma...@freebsd.org wrote:
   On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
   Recent sources (Revision: 272529) fail to compile:
  
   [...] cc -m32 -march=native -DCOMPAT_32BIT  -isystem
   /usr/obj/usr/src/lib32/usr/include/
   -L/usr/obj/usr/src/lib32/usr/lib32
   -B/usr/obj/usr/src/lib32/usr/lib32  -O2 -pipe -O3 -O3 -pipe
   -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
   -fstack-protector -Wsystem-headers -Werror
   -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int
   -Wno-unused-const-variable -Wno-tautological-compare
   -Wno-unused-value -Wno-parentheses-equality
   -Wno-unused-function -Wno-enum-conversion -Wno-switch
   -Wno-switch-enum -Wno-knr-promoted-parameter
   -Wno-parentheses -Qunused-arguments -c
   /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
   all_subdir_libproc --- --- libproc.so.3 ---
   /usr/obj/usr/src/tmp/usr/bin/ld: skipping incompatible
   /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
  
   I'm confused by this message. Are you building with
   -DNO_CLEAN? Do you have anything in make.conf or src.conf,
   especially anything that's changed since libctf was rebuilt?
  
   You might try rebuilding libctf with
  
   $ cd /usr/src $ make -C cddl/lib/libctf clean all
  
   but I'm not sure why ld is ignoring the existing libctf.so.
  
   The failure is coming while building the lib32 compat
   libraries.  Are we not currently building a lib32 libctf.so?
  
   No, we do. One thing I've noticed is that cddl/lib is built after
   lib/ when compiling 32-bit libs, whereas cddl/lib is built first
   when building natively.
  
   Sorry, that's not even true. I misread a part of Makefile.inc1.
  
   I'm still not able to reproduce the problem, but it seems that the
   patch here is appropriate:
   http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
  
   Oliver, could you give this a try?
 
  Even poudriere can't get past this one.

 Sorry, it was incomplete. It's been updated:
 http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org