bugGuile - Bugs: bug #33082, guile-2.0 build on FreeBSD 8 Fails

 
 

bug #33082: guile-2.0 build on FreeBSD 8 Fails

Submitted by:  Brad Whitlock <bwhitlock>
Submitted on:  Fri 15 Apr 2011 05:02:08 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 25 Apr 2011 08:13:05 AM UTC, comment #6:

Cool, thanks for the note. 2.0.1 will add a check for iconv support in libunistring, so others shouldn't experience this same error.

Cheers,

Andy

Andy Wingo <wingo>
Project Administrator
Mon 25 Apr 2011 02:51:22 AM UTC, comment #5:

Andy,

You sir, are a master. I had not compiled libunistring with libiconv support; to my surprise.

Once that was fixed it was clear sailing and now I think I am the first guy on my block with Guile 2.0 on FreeBSD.

Thanks!
-Brad

Brad Whitlock <bwhitlock>
Thu 21 Apr 2011 10:11:08 AM UTC, comment #4:

Or is it possible that your libunistring was not built with iconv support?

Andy Wingo <wingo>
Project Administrator
Thu 21 Apr 2011 09:28:48 AM UTC, comment #3:

Hi Bradley,

On Sun 17 Apr 2011 05:52, Brad Whitlock <INVALID.NOREPLY@gnu.org> writes:

> I did a little probing and found that errno was set to 78, which on FreeBSD
> supposedly means function is not implemented and I think this may be a
> libunistring issue.


It might be the same as Douglas Mencken's error that Mark Weaver debugged more here:

http://thread.gmane.org/gmane.lisp.guile.bugs/5381/focus=5496

Can you try running that test program that only links against libunistring, not against Guile itself?

Thanks,

Andy

Andy Wingo <wingo>
Project Administrator
Sun 17 Apr 2011 03:52:24 AM UTC, comment #2:

Andy,

I think the problem originates in scm_ungetc (from call to u32_conv_to_encoding) because I have gotten make to complete (by removing failing targets) and when I invoke the guile executable I get an error like:
scm_ungetc failed to covert to ecoding #f 78 (

I believe it is trying to convert the '(' charactar to ISO-8859-1 encoding.

I did a little probing and found that errno was set to 78, which on FreeBSD supposedly means function is not implemented and I think this may be a libunistring issue. I wish I could disable all the conversion stuff since I don't care about being able to represent any non-ansi chars. fyiw.

Here is the backtrace:

==== BEGIN BT
[brad@riley ~/data/downloads/guile-2.0.0/build]$ GUILE_AUTO_COMPILE=0 meta/gdb-uninstalled-guile
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
(gdb) run
Starting program: /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/guile
(no debugging symbols found)...[New LWP 100134]
[New Thread 28701140 (LWP 100134)]
guile: uncaught throw to encoding-error: (scm_ungetc conversion to port encoding failed 78 #f ()

Cannot exit gracefully when init is in progress; aborting.

Program received signal SIGABRT, Aborted.
[Switching to Thread 28701140 (LWP 100134)]
0x285f7117 in kill () from /lib/libc.so.7
(gdb) bt
#0 0x285f7117 in kill () from /lib/libc.so.7
#1 0x2823d397 in raise () from /lib/libthr.so.3
#2 0x285f5c4a in abort () from /lib/libc.so.7
#3 0x28102419 in cleanup_for_exit () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#4 0x285d69b3 in __cxa_finalize () from /lib/libc.so.7
#5 0x2857f94a in exit () from /lib/libc.so.7
#6 0x2814947b in scm_primitive_exit ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#7 0x28180887 in vm_regular_engine () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#8 0x2819f698 in scm_c_vm_run () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#9 0x280df009 in eval () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#10 0x280e0f38 in boot_closure_apply ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#11 0x28180fb1 in vm_regular_engine () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#12 0x2819f698 in scm_c_vm_run () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#13 0x281a0302 in scm_call_with_vm () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#14 0x280e0549 in scm_apply () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#15 0x280df80b in scm_apply_1 () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#16 0x281770a1 in scm_throw () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#17 0x2816b553 in scm_encoding_error ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#18 0x28134dca in scm_ungetc () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#19 0x28144df3 in scm_read () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#20 0x28180887 in vm_regular_engine () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#21 0x2819f698 in scm_c_vm_run () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#22 0x280df009 in eval () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#23 0x280e0d07 in prepare_boot_closure_env_for_eval ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#24 0x280def5a in eval () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#25 0x280de927 in eval () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#26 0x280e0d07 in prepare_boot_closure_env_for_eval ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#27 0x280def5a in eval () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#28 0x280e0d07 in prepare_boot_closure_env_for_eval ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#29 0x280def5a in eval () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#30 0x280e0f38 in boot_closure_apply ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#31 0x28180fb1 in vm_regular_engine () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#32 0x2819f698 in scm_c_vm_run () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
---Type <return> to continue, or q <return> to quit---
#33 0x281a0302 in scm_call_with_vm () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#34 0x280df091 in eval () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#35 0x280e0f38 in boot_closure_apply ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#36 0x28180fb1 in vm_regular_engine () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#37 0x2819f698 in scm_c_vm_run () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#38 0x280df647 in scm_call_1 () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#39 0x280e03aa in scm_c_primitive_eval ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#40 0x28180887 in vm_regular_engine () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#41 0x2819f698 in scm_c_vm_run () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#42 0x280e0413 in scm_primitive_eval ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#43 0x2810a5ea in scm_primitive_load ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#44 0x2810bb24 in scm_primitive_load_path ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#45 0x2810bb55 in scm_c_primitive_load_path ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#46 0x28102263 in scm_load_startup_files ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#47 0x281026e4 in scm_i_init_guile () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#48 0x28173eaa in scm_i_init_thread_for_guile ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#49 0x28173fc4 in scm_i_with_guile_and_parent ()
from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#50 0x28173f1e in scm_with_guile () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#51 0x281022bf in scm_boot_guile () from /mnt/data/homes/brad/data/downloads/guile-2.0.0/build/libguile/.libs/libguile-2.0.so.22
#52 0x080488c2 in main ()
(gdb)

==== END BT

Brad Whitlock <bwhitlock>
Fri 15 Apr 2011 08:04:18 AM UTC, comment #1:

Can you get a backtrace, please?

$ GUILE_AUTO_COMPILE=0 meta/gdb-uninstalled-guile
run
bt

Thanks

Andy Wingo <wingo>
Project Administrator
Fri 15 Apr 2011 05:02:08 AM UTC, original submission:

build log attached

failure:
SNARF version.doc
SNARF vports.doc
SNARF weaks.doc
SNARF filesys.doc
SNARF posix.doc
SNARF net_db.doc
SNARF socket.doc
SNARF regex-posix.doc
CCLD guile
GEN guile-procedures.texi
Cannot exit gracefully when init is in progress; aborting.
Abort trap (core dumped)

      • Error code 1

1 error

      • Error code 2

1 error

      • Error code 1

1 error

      • Error code 2

1 error

Brad Whitlock <bwhitlock>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23249:  guile_build.log added by bwhitlock (60KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wingo (Posted a comment)
  • -unavailable- added by bwhitlock (Submitted the item)
  • -unavailable- added by bwhitlock
  • -unavailable- added by bwhitlock
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 25 Apr 2011 08:13:05 AM UTCwingoStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Fri 15 Apr 2011 05:02:08 AM UTCbwhitlockAttached File-=>Added guile_build.log, #23249
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1