It is currently Wed Jul 06, 2011 12:47 pm

All times are UTC - 8 hours




 Page 1 of 1 [ 7 posts ] 
Author Message
 Post subject: build problem on 64-bit
PostPosted: Fri Feb 18, 2011 9:17 am 

Joined: Fri Feb 18, 2011 9:15 am
Posts: 2
I get this build failure, which I am suspecting is due to my box being 64-bit. I don't have solid evidence of that, though.

Quote:
plus(pts/10):~/pulse_simulator% uname -a
Linux plus 2.6.35-25-generic #43-Ubuntu SMP Thu Jan 6 22:25:21 UTC 2011 x86_64 GNU/Linux
plus(pts/10):~/pulse_simulator% file lib/libapp_common.a
lib/libapp_common.a: current ar archive
plus(pts/10):~/pulse_simulator% cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"

~/pulse_simulator% make
gcc -o build/pulse_app -Iinclude -std=gnu99 -g -Wall lib/obj/main.o -Llib -D PULSE_SIMULATOR -lapp_common -lpulse_os -lpulse_protocol -lpulse_widgets -lgtk-x11-2.0 src/pulse_app.c
src/pulse_app.c: In function ‘main_app_init’:
src/pulse_app.c:38: warning: implicit declaration of function ‘draw_box_update_timer’
src/pulse_app.c: In function ‘main_app_handle_button_down’:
src/pulse_app.c:43: warning: implicit declaration of function ‘pulse_printf’
src/pulse_app.c: At top level:
src/pulse_app.c:51: warning: conflicting types for ‘draw_box_update_timer’
src/pulse_app.c:38: note: previous implicit declaration of ‘draw_box_update_timer’ was here
src/pulse_app.c: In function ‘draw_box_update_timer’:
src/pulse_app.c:57: warning: implicit declaration of function ‘draw_box’
src/pulse_app.c:64: warning: passing argument 2 of ‘pulse_register_timer’ from incompatible pointer type
include/pulse_os.h:93: note: expected ‘PulseCallback’ but argument is of type ‘void (*)(int)’
src/pulse_app.c:64: warning: passing argument 3 of ‘pulse_register_timer’ makes pointer from integer without a cast
include/pulse_os.h:93: note: expected ‘void *’ but argument is of type ‘int’
src/pulse_app.c: At top level:
src/pulse_app.c:67: warning: conflicting types for ‘draw_box’
src/pulse_app.c:57: note: previous implicit declaration of ‘draw_box’ was here
/usr/bin/ld: skipping incompatible lib/libapp_common.a when searching for -lapp_common
/usr/bin/ld: cannot find -lapp_common
/usr/bin/ld: skipping incompatible lib/libpulse_os.a when searching for -lpulse_os
/usr/bin/ld: cannot find -lpulse_os
/usr/bin/ld: skipping incompatible lib/libpulse_protocol.a when searching for -lpulse_protocol
/usr/bin/ld: cannot find -lpulse_protocol
collect2: ld returned 1 exit status


Offline
 Profile  
 
 Post subject: Re: build problem on 64-bit
PostPosted: Fri Feb 18, 2011 1:36 pm 
User avatar

Joined: Tue Feb 15, 2011 1:00 am
Posts: 60
I think you're right about 64 bit.

I would recommend using the virtual machine for now:
http://www.getinpulse.com/simulator/

I'll look into the error, but it won't be for a few days.


Offline
 Profile  
 
 Post subject: Re: build problem on 64-bit
PostPosted: Fri Feb 18, 2011 10:50 pm 

Joined: Fri Feb 18, 2011 9:15 am
Posts: 2
Building on a 32-bit netbook worked fine, and the result runs on my 64-bit box.

I tried to attach the build here, but the forum rejected it.


Offline
 Profile  
 
 Post subject: Re: build problem on 64-bit
PostPosted: Sun Feb 20, 2011 12:38 pm 
User avatar

Joined: Mon Feb 14, 2011 7:07 pm
Posts: 172
Hi drewp, I changed the forum settings to allow for up to 10mb uploads. Could you try again? How large is the build?



_________________
---

Lead designer of inPulse
Offline
 Profile  
 
 Post subject: Re: build problem on 64-bit
PostPosted: Sun Feb 20, 2011 4:41 pm 

Joined: Sun Feb 20, 2011 4:39 pm
Posts: 3
I'm seeing the same errors, but I'm on i686 architecture on an older machine.

justin@bug:~/pulse$ uname -a
Linux bug 2.6.27-17-generic #1 SMP Fri Mar 12 03:09:00 UTC 2010 i686 GNU/Linux
justin@bug:~/pulse$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"
justin@bug:~/pulse$ make
gcc -o build/pulse_app  -Iinclude -std=gnu99 -g -Wall lib/obj/main.o -Llib -D PULSE_SIMULATOR -lapp_common -lpulse_os -lpulse_protocol -lpulse_widgets -lgtk-x11-2.0 src/pulse_app.c
src/pulse_app.c: In function ‘main_app_init’:
src/pulse_app.c:38: warning: implicit declaration of function ‘draw_box_update_timer’
src/pulse_app.c: In function ‘main_app_handle_button_down’:
src/pulse_app.c:43: warning: implicit declaration of function ‘pulse_printf’
src/pulse_app.c: At top level:
src/pulse_app.c:51: warning: conflicting types for ‘draw_box_update_timer’
src/pulse_app.c:38: warning: previous implicit declaration of ‘draw_box_update_timer’ was here
src/pulse_app.c: In function ‘draw_box_update_timer’:
src/pulse_app.c:57: warning: implicit declaration of function ‘draw_box’
src/pulse_app.c:64: warning: passing argument 2 of ‘pulse_register_timer’ from incompatible pointer type
src/pulse_app.c:64: warning: passing argument 3 of ‘pulse_register_timer’ makes pointer from integer without a cast
src/pulse_app.c: At top level:
src/pulse_app.c:67: warning: conflicting types for ‘draw_box’
src/pulse_app.c:57: warning: previous implicit declaration of ‘draw_box’ was here


Offline
 Profile  
 
 Post subject: Re: build problem on 64-bit
PostPosted: Sun Feb 20, 2011 10:17 pm 
User avatar

Joined: Tue Feb 15, 2011 1:00 am
Posts: 60
I don't see any errors there, only warnings.

Check to see if it built. There should be a binary in /pulse_simulator/build/ if it did.


Offline
 Profile  
 
 Post subject: Re: build problem on 64-bit
PostPosted: Mon Feb 21, 2011 8:03 pm 

Joined: Mon Feb 21, 2011 7:59 pm
Posts: 1
one can compile and run 32 bit code on a 64 bit machine

on my amd64 ubuntu lucid laptop, I installed libc6-dev-i386, and edited the Makefile to include -m32 in the CFLAGS

seems to work


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: