GNU bug report logs - #10241
undefined ffi_type_pointer problem mipsel linux

Previous Next

Package: guile;

Reported by: 珊珊 <byweinno <at> 163.com>

Date: Wed, 7 Dec 2011 08:12:01 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10241 in the body.
You can then email your comments to 10241 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#10241; Package guile. (Wed, 07 Dec 2011 08:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 珊珊 <byweinno <at> 163.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Wed, 07 Dec 2011 08:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 珊珊 <byweinno <at> 163.com>
To: libffi-discuss <at> sourceware.org, green <at> moxielogic.com, bug-guile <at> gnu.org
Subject: undefined ffi_type_pointer problem mipsel linux
Date: Wed, 7 Dec 2011 15:49:21 +0800 (CST)
[Message part 1 (text/plain, inline)]
Dear Mr. Green :

   My box is fuloong 6004, loongson2f cpu, mips64, little endian, more info see
http://www.linux-mips.org/wiki/Loongson#Loongson_2F

Here I want install autogen, then needs guile dependency, guile needs libffi, when I install libffi, afterthat I install guile, problem is  that undefined ffi_type_pointer, I try to several methods, it still can be ok. I checked the ffi.h is extern, shall I defined the use #define for  each one ?

Thanks

bo cheng

 

   CCLD   guile
./.libs/libguile-2.0.so: undefined reference to `ffi_type_pointer'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_float'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_void'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint64'
./.libs/libguile-2.0.so: undefined reference to `ffi_prep_cif'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint32'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_double'
./.libs/libguile-2.0.so: undefined reference to `ffi_prep_closure_loc'
./.libs/libguile-2.0.so: undefined reference to `ffi_call'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint8'
./.libs/libguile-2.0.so: undefined reference to `ffi_closure_free'
./.libs/libguile-2.0.so: undefined reference to `ffi_closure_alloc'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint8'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint32'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint16'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint16'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint64'
collect2: ld returned 1 exit status
make[3]: *** [guile] Error 1
make[3]: Leaving directory `/root/soft/guile-2.0.3/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/soft/guile-2.0.3/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/


Theres is in ffi.h


/* These are defined in types.c */
extern ffi_type ffi_type_void;
extern ffi_type ffi_type_uint8;
extern ffi_type ffi_type_sint8;
extern ffi_type ffi_type_uint16;
extern ffi_type ffi_type_sint16;
extern ffi_type ffi_type_uint32;
extern ffi_type ffi_type_sint32;
extern ffi_type ffi_type_uint64;
extern ffi_type ffi_type_sint64;
extern ffi_type ffi_type_float;
extern ffi_type ffi_type_double;
extern ffi_type ffi_type_pointer;


[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#10241; Package guile. (Wed, 07 Dec 2011 08:25:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 珊珊 <byweinno <at> 163.com>
To: 珊珊 <byweinno <at> 163.com>
Cc: bug-guile <at> gnu.org, green <at> moxielogic.com, libffi-discuss <at> sourceware.org
Subject: Re:undefined ffi_type_pointer problem mipsel linux
Date: Wed, 7 Dec 2011 16:23:46 +0800 (CST)
[Message part 1 (text/plain, inline)]
[root <at> loongson proc]# cat cpuinfo
system type : lemote-fuloong
processor : 0
cpu model : ICT Loongson-2 V0.3 FPU V0.1
BogoMIPS : 530.43
wait instruction : no
microsecond timers : yes
tlb_entries : 64
extra interrupt vector : no
hardware watchpoint : no
ASEs implemented :
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available

[root <at> loongson proc]# cat version
Linux version 2.6.27.7-43 (root <at> loongson.redflag-linux.com) (gcc version 3.4.6) #1 PREEMPT Tue May 5 23:51:30 CST 2009

At 2011-12-07 15:49:21,"珊珊" <byweinno <at> 163.com> wrote:

Dear Mr. Green :

   My box is fuloong 6004, loongson2f cpu, mips64, little endian, more info see
http://www.linux-mips.org/wiki/Loongson#Loongson_2F

Here I want install autogen, then needs guile dependency, guile needs libffi, when I install libffi, afterthat I install guile, problem is  that undefined ffi_type_pointer, I try to several methods, it still can be ok. I checked the ffi.h is extern, shall I defined the use #define for  each one ?

Thanks

bo cheng

 

   CCLD   guile
./.libs/libguile-2.0.so: undefined reference to `ffi_type_pointer'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_float'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_void'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint64'
./.libs/libguile-2.0.so: undefined reference to `ffi_prep_cif'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint32'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_double'
./.libs/libguile-2.0.so: undefined reference to `ffi_prep_closure_loc'
./.libs/libguile-2.0.so: undefined reference to `ffi_call'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint8'
./.libs/libguile-2.0.so: undefined reference to `ffi_closure_free'
./.libs/libguile-2.0.so: undefined reference to `ffi_closure_alloc'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint8'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint32'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint16'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint16'
./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint64'
collect2: ld returned 1 exit status
make[3]: *** [guile] Error 1
make[3]: Leaving directory `/root/soft/guile-2.0.3/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/soft/guile-2.0.3/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/


Theres is in ffi.h


/* These are defined in types.c */
extern ffi_type ffi_type_void;
extern ffi_type ffi_type_uint8;
extern ffi_type ffi_type_sint8;
extern ffi_type ffi_type_uint16;
extern ffi_type ffi_type_sint16;
extern ffi_type ffi_type_uint32;
extern ffi_type ffi_type_sint32;
extern ffi_type ffi_type_uint64;
extern ffi_type ffi_type_sint64;
extern ffi_type ffi_type_float;
extern ffi_type ffi_type_double;
extern ffi_type ffi_type_pointer;





[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#10241; Package guile. (Wed, 07 Dec 2011 17:47:04 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Anthony Green <green <at> moxielogic.com>
To: ɺɺ <byweinno <at> 163.com>
Cc: bug-guile <at> gnu.org, libffi-discuss <at> sourceware.org
Subject: Re: undefined ffi_type_pointer problem mipsel linux
Date: Wed, 07 Dec 2011 05:54:14 -0500
On 12/7/2011 2:49 AM, ɺɺ wrote:
> Dear Mr. Green :
>
>    My box is fuloong 6004, loongson2f cpu, mips64, little endian, more 
> info see
> http://www.linux-mips.org/wiki/Loongson#Loongson_2F
>
> Here I want install autogen, then needs guile dependency, guile needs 
> libffi, when I install libffi, afterthat I install guile, problem is  
> that undefined ffi_type_pointer, I try to several methods, it still 
> can be ok. I checked the ffi.h is extern, shall I defined the use 
> #define for  each one ?


This just looks like libffi isn't being linked to guile at all.  Can you 
verify that libffi was actually built and installed in the right place?  
Next, I would see what "CCLD guile" is really doing.  I'm not sure how 
guile is built these days, but maybe you just have to add V=1 to the 
"make" command line.

AG


>
> Thanks
>
> bo cheng
>
>
>
>    CCLD   guile
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_pointer'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_float'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_void'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint64'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_prep_cif'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint32'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_double'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_prep_closure_loc'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_call'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint8'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_closure_free'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_closure_alloc'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint8'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint32'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint16'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_sint16'
> ./.libs/libguile-2.0.so: undefined reference to `ffi_type_uint64'
> collect2: ld returned 1 exit status
> make[3]: *** [guile] Error 1
> make[3]: Leaving directory `/root/soft/guile-2.0.3/libguile'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/root/soft/guile-2.0.3/libguile'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/
>
>
> Theres is in ffi.h
>
>
> /* These are defined in types.c */
> extern ffi_type ffi_type_void;
> extern ffi_type ffi_type_uint8;
> extern ffi_type ffi_type_sint8;
> extern ffi_type ffi_type_uint16;
> extern ffi_type ffi_type_sint16;
> extern ffi_type ffi_type_uint32;
> extern ffi_type ffi_type_sint32;
> extern ffi_type ffi_type_uint64;
> extern ffi_type ffi_type_sint64;
> extern ffi_type ffi_type_float;
> extern ffi_type ffi_type_double;
> extern ffi_type ffi_type_pointer;
>
>
>
>





Information forwarded to bug-guile <at> gnu.org:
bug#10241; Package guile. (Wed, 07 Dec 2011 20:19:01 GMT) Full text and rfc822 format available.

Message #14 received at 10241 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: 珊珊 <byweinno <at> 163.com>
Cc: 10241 <at> debbugs.gnu.org, green <at> moxielogic.com, libffi-discuss <at> sourceware.org
Subject: Re: bug#10241: undefined ffi_type_pointer problem mipsel linux
Date: Wed, 07 Dec 2011 15:16:25 -0500
Can you please run "make V=1" so that we can see the complete command
used in the failing link (CCLD guile) command?  As Anthony Green said,
it appears that libffi was not linked.

I can think of a few possible reasons:

* Did you forget to run "ldconfig" after installing libffi?
* Was libffi present when you last ran Guile's configure?
* Is there a problem with pkg-config on your system?
  (What is the output of "pkg-config --libs libffi"?)

    Thanks,
      Mark




Reply sent to Andy Wingo <wingo <at> pobox.com>:
You have taken responsibility. (Wed, 07 Dec 2011 20:19:02 GMT) Full text and rfc822 format available.

Notification sent to 珊珊 <byweinno <at> 163.com>:
bug acknowledged by developer. (Wed, 07 Dec 2011 20:19:02 GMT) Full text and rfc822 format available.

Message #19 received at 10241-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: Anthony Green <green <at> moxielogic.com>
Cc: ɺɺ <byweinno <at> 163.com>, 10241-done <at> debbugs.gnu.org,
	libffi-discuss <at> sourceware.org
Subject: Re: bug#10241: undefined ffi_type_pointer problem mipsel linux
Date: Wed, 07 Dec 2011 21:17:40 +0100
On Wed 07 Dec 2011 11:54, Anthony Green <green <at> moxielogic.com> writes:

> On 12/7/2011 2:49 AM, ɺɺ wrote:
>> Dear Mr. Green :
>>
>>    My box is fuloong 6004, loongson2f cpu, mips64, little endian, more
>> info see
>> http://www.linux-mips.org/wiki/Loongson#Loongson_2F
>>
>> Here I want install autogen, then needs guile dependency, guile needs
>> libffi, when I install libffi, afterthat I install guile, problem is
>> that undefined ffi_type_pointer, I try to several methods, it still
>> can be ok. I checked the ffi.h is extern, shall I defined the use
>> #define for  each one ?
>
>
> This just looks like libffi isn't being linked to guile at all.  Can you
> verify that libffi was actually built and installed in the right place?
> Next, I would see what "CCLD guile" is really doing.  I'm not sure how
> guile is built these days, but maybe you just have to add V=1 to the
> "make" command line.

Indeed.  Libffi certainly builds on mipsel machines, as does Guile, so I
suspect this is an error configuring Guile.  Perhaps you needed to set
PKG_CONFIG_PATH, ɺɺ?

Andy
-- 
http://wingolog.org/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Jan 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.