English Amiga Board


Go Back   English Amiga Board > Support > support.OtherUAE

 
 
Thread Tools
Old 25 March 2010, 19:57   #81
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
What were your configuration parameters?
gilgamesh is offline  
Old 25 March 2010, 20:32   #82
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
foul@Foulnux:/$ uname -a
Linux Foulnux 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux
foul@Foulnux:/$

./configure --with-sdl-sound --with-sdl-gfx --with-sdl-gl --enable-gccopt
Foul is offline  
Old 25 March 2010, 20:59   #83
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
If I remember (and understood) correctly, you need to compile P-UAE to 32bit even without JIT, because of the emitted getcpuid command. Something like
Code:
./configure  --with-sdl  --with-sdl-sound  --with-sdl-gl  --with-sdl-gfx --host=i586 --target=i586 CFLAGS="-m32" LDFLAGS="-m32"
gilgamesh is offline  
Old 25 March 2010, 21:48   #84
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
foul@Foulnux:~/Téléchargements/puaex$ ./configure --with-sdl --with-sdl-sound --with-sdl-gl --with-sdl-gfx --host=i586 --target=i586 CFLAGS="-m32" LDFLAGS="-m32"
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... i586-pc-none
checking target system type... i586-pc-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i586-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for i586-gcc... no
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/home/foul/Téléchargements/puaex':
configure: error: C compiler cannot create executables
See `config.log' for more details.
foul@Foulnux:~/Téléchargements/puaex$

tested without "--host=i586", same thing ...

edit: compilation ok without "CFLAGS="-m32" LDFLAGS="-m32" but always "segmentation error" at Start


Last edited by Foul; 25 March 2010 at 21:53.
Foul is offline  
Old 25 March 2010, 21:51   #85
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
Oh, you must install the 32bit version of gcc (and sdl) first. I have no clue how Ubuntu handles this, but there probably is a package.

EDIT: see here, maybe it is an easier option
gilgamesh is offline  
Old 25 March 2010, 22:07   #86
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
not very easy to include all 32 bits version of missing packages. A native x64 version could be cool without modifying tons of codes.

i'm not developper .. just user so i can wait for better development of PUAE

i will test all the future version
Foul is offline  
Old 25 March 2010, 22:11   #87
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
Ok, but maybe it is worth the trouble to give philpem's approach a shot and just comment out the call to cpuid in compemu_raw_x86.c before waiting? Might work then.
gilgamesh is offline  
Old 25 March 2010, 22:20   #88
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
Code:
 ((compop_func *) cpuid_space) (0);
not existing on line 2363

it's now :

Code:
cache_free (cpuid_space);
and .... don't start ... on commenting it.
Foul is offline  
Old 25 March 2010, 22:40   #89
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
gilgamesh is offline  
Old 28 March 2010, 22:03   #90
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
any news/update ?
Foul is offline  
Old 05 April 2010, 17:46   #91
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
up ?
Foul is offline  
Old 07 April 2010, 09:11   #92
GnoStiC
PUAE maintainer
 
GnoStiC's Avatar
 
Join Date: Feb 2010
Location: fort lauderdale
Posts: 195
yet another "i'm alive" release.. a lot has changed, i mean "a lot"..

this may not work for you so let me the error messages you get and we'll sort them out..

http://www.gamzeguckiran.com/puaex_2010_04_07.tgz
________
herbal vaporizers

Last edited by GnoStiC; 20 January 2011 at 11:14.
GnoStiC is offline  
Old 07 April 2010, 09:47   #93
gilgamesh
Linux snob
 
gilgamesh's Avatar
 
Join Date: Sep 2008
Location: Monkey Island
Posts: 997
Here we go
Code:
audio.c:939: error: storage size of ‘sdpaula’ isn’t known
commented out the lines
Code:
/*static struct sound_data sdpaula;
 *static struct sound_data *sdp = &sdpaula;
 */
and compilation continues until
Code:
debug.c:(.text+0x5707): undefined reference to `totupper'
then I changed totuper()->toupper() in cfgfile.c and debug.c. What follows is
Code:
zfile.o: In function `extadf':
zfile.c:(.text+0x2544): undefined reference to `zfile_seterror'
zfile.c:(.text+0x25ec): undefined reference to `zfile_seterror'
zfile.o: In function `fdi':
zfile.c:(.text+0x2da1): undefined reference to `zfile_seterror'
zfile.c:(.text+0x2e5d): undefined reference to `zfile_seterror'
zfile.o: In function `dsq':
zfile.c:(.text+0x3108): undefined reference to `archive_directory_lzx'
zfile.c:(.text+0x312d): undefined reference to `archive_access_lzx'
zfile.c:(.text+0x33ad): undefined reference to `zfile_fclose_archive'
filesys.o: In function `filesys_media_change':
filesys.c:(.text+0x1f20): undefined reference to `filesys_delayed_change'
filesys.c:(.text+0x2000): undefined reference to `filesys_eject'
filesys.c:(.text+0x207f): undefined reference to `target_get_volume_name'
filesys.c:(.text+0x21ae): undefined reference to `filesys_insert'
filesys.c:(.text+0x2203): undefined reference to `filesys_insert'
gilgamesh is offline  
Old 07 April 2010, 10:36   #94
xaind
Registered User
 
Join Date: Apr 2006
Location: Sydney / Australia
Posts: 113
Quote:
Originally Posted by GnoStiC View Post
yet another "i'm alive" release.. a lot has changed, i mean "a lot"..

this may not work for you so let me the error messages you get and we'll sort them out..

http://www.gamzeguckiran.com/puaex_2010_04_07.tgz
Ok, compiling on the Mac.

Code:
In file included from memory.c:9:
../../src/od-generic/memory.c: In function ‘preinit_shm’:
../../src/od-generic/memory.c:115: error: ‘_SC_PHYS_PAGES’ undeclared (first use in this function)
(od-macosx/memory.c does a #include on od-generic/memory.c)

The relevant lines of code are:

Code:
totalphys64 = sysconf (_SC_PHYS_PAGES) * sysconf (_SC_PAGESIZE);
total64 = (uae_u64)sysconf (_SC_PHYS_PAGES) * (uae_u64)sysconf (_SC_PAGESIZE);
The Mac OS X sysconf() doesn't have the _SC_PHYS_PAGES flag. I replaced those lines with the code below. It compiles, at least, and I *think* it will work properly.

Code:
#ifdef __APPLE__
        int mib[2];
        size_t len;
        
        mib[0] = CTL_HW;
        mib[1] = HW_MEMSIZE; /* gives a 64 bit int */
        len = sizeof(totalphys64);
        sysctl(mib, 2, &totalphys64, &len, NULL, 0);
        total64 = (uae_u64) totalphys64;
#else
        totalphys64 = sysconf (_SC_PHYS_PAGES) * sysconf (_SC_PAGESIZE);
        total64 = (uae_u64)sysconf (_SC_PHYS_PAGES) * (uae_u64)sysconf (_SC_PAGESIZE);
#endif
I also needed to add

Code:
#include <sys/sysctl.h>
at the top of the file.

Unfortunately I haven't figured out the second error yet:

Code:
In file included from compemu_support.c:608:
compemu_raw_x86.c:1997: warning: ‘struct sigcontext’ declared inside parameter list
compemu_raw_x86.c:1997: warning: its scope is only this definition or declaration, which is probably not what you want
compemu_raw_x86.c:1997: error: parameter 2 (‘sc’) has incomplete type
The Mac OS X signal handling API doesn't define the sigcontext structure, (at least not for i386, as far as I can tell.) This code hasn't really changed since the previous release though, and I don't yet understand why it is causing a problem now when it didn't before.
xaind is online now  
Old 07 April 2010, 12:24   #95
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
./bootstrap ok
./configuration ok
./make ok
./uae ok
start : segmentation error

Foul is offline  
Old 07 April 2010, 12:49   #96
GnoStiC
PUAE maintainer
 
GnoStiC's Avatar
 
Join Date: Feb 2010
Location: fort lauderdale
Posts: 195
@gilgamesh & xaind: fixed (i hope)

@foul:
1) load uae within debugger; "gdb uae"
2) "r"(un)
3) after the crash; "bt"
4) "q"(uit)

copy paste the bt result here..
________
silver surfer vaporizer

Last edited by GnoStiC; 20 January 2011 at 11:14.
GnoStiC is offline  
Old 07 April 2010, 13:03   #97
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
Code:
foul@Foulnux:~$ gdb uae
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.           
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"   
and "show warranty" for details.                                             
This GDB was configured as "x86_64-linux-gnu".                               
For bug reporting instructions, please see:                                  
<http://www.gnu.org/software/gdb/bugs/>...                                   
Reading symbols from /usr/local/bin/uae...done.                              
(gdb) r                                                                      
Starting program: /usr/local/bin/uae                                         
[Thread debugging using libthread_db enabled]                                
[New Thread 0x7fffeb2fb910 (LWP 2235)]                                       
[New Thread 0x7fffeaafa910 (LWP 2236)]                                       
PUAE 2.1.0                                                                   
Build date: Mar 24 2010 23:24:13                                             
SDLGFX: Initialized.                                                         
SDLGFX: Using SDL version 1.2.13.                                            
SDLGFX: Display is 32 bits deep.                                             
SDLGFX: Found screenmode: 1680x1050.                                         
SDLGFX: Found screenmode: 1600x1024.                                         
SDLGFX: Found screenmode: 1440x900.                                          
SDLGFX: Found screenmode: 1400x1050.                                         
SDLGFX: Found screenmode: 1360x768.                                          
SDLGFX: Found screenmode: 1280x1024.                                         
SDLGFX: Found screenmode: 1280x960.                                          
SDLGFX: Found screenmode: 1152x864.                                          
SDLGFX: Found screenmode: 1024x768.                                          
SDLGFX: Found screenmode: 960x720.                                           
SDLGFX: Found screenmode: 960x600.                                           
SDLGFX: Found screenmode: 960x540.                                           
SDLGFX: Found screenmode: 928x696.                                           
SDLGFX: Found screenmode: 896x672.                                           
SDLGFX: Found screenmode: 840x525.                                           
SDLGFX: Found screenmode: 832x624.                                           
SDLGFX: Found screenmode: 800x600.                                           
SDLGFX: Found screenmode: 800x512.                                           
SDLGFX: Found screenmode: 720x450.                                           
SDLGFX: Found screenmode: 720x400.                                           
SDLGFX: Found screenmode: 700x525.                                           
SDLGFX: Found screenmode: 680x384.                                           
SDLGFX: Found screenmode: 640x512.                                           
SDLGFX: Found screenmode: 640x480.                                           
SDLGFX: Found screenmode: 640x400.                                           
SDLGFX: Found screenmode: 640x350.                                           
SDLGFX: Found screenmode: 576x432.                                           
SDLGFX: Found screenmode: 512x384.                                           
SDLGFX: Found screenmode: 416x312.                                           
SDLGFX: Found screenmode: 400x300.                                           
SDLGFX: Found screenmode: 360x200.                                           
SDLGFX: Found screenmode: 320x240.                                           
Found 3 joystick(s)                                                          
Found x11pc raw keyboard mapping                                             
Using cooked keymap                                                          
Opening cfgfile '/home/foul/.uaerc'...failed                                 
Opening cfgfile '.uaerc'...failed                                            
Testing the RDTSC instruction ... done.                                      
TSC frequency: 2999,000000 MHz                                               
[New Thread 0x7fffe9914910 (LWP 2243)]                                       
[Thread 0x7fffe9914910 (LWP 2243) exited]                                    
Found x11pc raw keyboard mapping                                             
Using cooked keymap                                                          
Found x11pc raw keyboard mapping                                             
Using cooked keymap                                                          
Entered action_replay_load()                                                 
ROM loader..                                                                 
Rmemory init end                                                             
SDLGFX: Added P96 mode: 320x200x32                                           
SDLGFX: Added P96 mode: 320x200x8                                            
SDLGFX: Added P96 mode: 320x240x32                                           
SDLGFX: Added P96 mode: 320x240x8                                            
SDLGFX: Added P96 mode: 320x256x32                                           
SDLGFX: Added P96 mode: 320x256x8                                            
SDLGFX: Added P96 mode: 320x400x32                                           
SDLGFX: Added P96 mode: 320x400x8                                            
SDLGFX: Added P96 mode: 640x350x32                                           
SDLGFX: Added P96 mode: 640x350x8                                            
SDLGFX: Added P96 mode: 640x480x32                                           
SDLGFX: Added P96 mode: 640x480x8                                            
SDLGFX: Added P96 mode: 640x512x32                                           
SDLGFX: Added P96 mode: 640x512x8                                            
SDLGFX: Added P96 mode: 800x600x32                                           
SDLGFX: Added P96 mode: 800x600x8                                            
SDLGFX: Added P96 mode: 1024x768x32                                          
SDLGFX: Added P96 mode: 1024x768x8                                           
SDLGFX: Added P96 mode: 1152x864x32                                          
SDLGFX: Added P96 mode: 1152x864x8                                           
SDLGFX: Added P96 mode: 1280x1024x32                                         
SDLGFX: Added P96 mode: 1280x1024x8                                          
SDLGFX: Added P96 mode: 1680x1050x32                                         
SDLGFX: Added P96 mode: 1680x1050x8                                          
SDLGFX: Added P96 mode: 1600x1024x32                                         
SDLGFX: Added P96 mode: 1600x1024x8                                          
SDLGFX: Added P96 mode: 1440x900x32                                          
SDLGFX: Added P96 mode: 1440x900x8                                           
SDLGFX: Added P96 mode: 1400x1050x32                                         
SDLGFX: Added P96 mode: 1400x1050x8                                          
SDLGFX: Added P96 mode: 1360x768x32                                          
SDLGFX: Added P96 mode: 1360x768x8                                           
SDLGFX: Added P96 mode: 1280x960x32                                          
SDLGFX: Added P96 mode: 1280x960x8                                           
SDLGFX: Added P96 mode: 960x720x32                                           
SDLGFX: Added P96 mode: 960x720x8                                            
SDLGFX: Added P96 mode: 960x600x32                                           
SDLGFX: Added P96 mode: 960x600x8                                            
SDLGFX: Added P96 mode: 960x540x32                                           
SDLGFX: Added P96 mode: 960x540x8                                            
SDLGFX: Added P96 mode: 928x696x32                                           
SDLGFX: Added P96 mode: 928x696x8                                            
SDLGFX: Added P96 mode: 896x672x32                                           
SDLGFX: Added P96 mode: 896x672x8                                            
SDLGFX: Added P96 mode: 840x525x32                                           
SDLGFX: Added P96 mode: 840x525x8                                            
SDLGFX: Added P96 mode: 832x624x32                                           
SDLGFX: Added P96 mode: 832x624x8
SDLGFX: Added P96 mode: 800x512x32
SDLGFX: Added P96 mode: 800x512x8
SDLGFX: Added P96 mode: 720x450x32
SDLGFX: Added P96 mode: 720x450x8
SDLGFX: Added P96 mode: 720x400x32
SDLGFX: Added P96 mode: 720x400x8
SDLGFX: Added P96 mode: 700x525x32
SDLGFX: Added P96 mode: 700x525x8
SDLGFX: Added P96 mode: 680x384x32
SDLGFX: Added P96 mode: 680x384x8
SDLGFX: Added P96 mode: 640x400x32
SDLGFX: Added P96 mode: 640x400x8
SDLGFX: Added P96 mode: 576x432x32
SDLGFX: Added P96 mode: 576x432x8
SDLGFX: Added P96 mode: 512x384x32
SDLGFX: Added P96 mode: 512x384x8
No disk in drive 0.
CPU cycleunit: 256 (0,500)
Building CPU table for configuration: 68030
1876 CPU functions
Building CPU, 45975 opcodes (3 0 0)
CPU=68030, FPU=0, JIT=0.

Program received signal SIGSEGV, Segmentation fault.
0x0000000003bf1004 in ?? ()
(gdb) bt
#0  0x0000000003bf1004 in ?? ()
#1  0x0000000000000000 in ?? ()
(gdb) q
A debugging session is active.

        Inferior 1 [process 2229] will be killed.

Quit anyway? (y or n) y
foul@Foulnux:~$
Foul is offline  
Old 07 April 2010, 13:23   #98
GnoStiC
PUAE maintainer
 
GnoStiC's Avatar
 
Join Date: Feb 2010
Location: fort lauderdale
Posts: 195
1) march 24 and 2.1.0?

version should be 2.1.20 and
if you've compiled today, build date should be Apr 7?

2) you're in your home folder, is that the directory where uae resides?

Quote:
Originally Posted by Foul View Post
Code:
foul@Foulnux:~$ gdb uae
...
PUAE 2.1.0                                                                   
Build date: Mar 24 2010 23:24:13                                             
...
________
volcano digital vaporizer

Last edited by GnoStiC; 20 January 2011 at 11:14.
GnoStiC is offline  
Old 07 April 2010, 13:45   #99
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 49
Posts: 1,516
Send a message via ICQ to Foul Send a message via MSN to Foul
uhmmm weird .. i've got 3 uae bin ...

/usr/bin/uae : from ubuntu's package (e-uae 0.8.29) : Working
/usr/bin/local/uae : from old compilation puae 2.1.0
/usr/bin/local/i586-uae : puae 2.1.0

and nothing about 2.1.20 !!!

Code:
./configure --with-sdl-sound --with-sdl-gfx --with-sdl-gl --enable-gccopt
...
ok...

foul@Foulnux:~/Téléchargements/puaex$ make
Making all in src                         
make[1]: entrant dans le répertoire « /home/foul/Téléchargements/puaex/src »
make  all-recursive       
                                                  
...
                                                                
cpuemu_0.c: In function ‘op_d170_4_ff’:
cpuemu_0.c:38487: warning: comparison of promoted ~unsigned with unsigned
make[3]: *** [cpuemu_0.o] Erreur 1
make[3]: quittant le répertoire « /home/foul/Téléchargements/puaex/src »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/foul/Téléchargements/puaex/src »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /home/foul/Téléchargements/puaex/src »
make: *** [all-recursive] Erreur 1
Maybe something wrong on "make" command...
Foul is offline  
Old 07 April 2010, 14:01   #100
GnoStiC
PUAE maintainer
 
GnoStiC's Avatar
 
Join Date: Feb 2010
Location: fort lauderdale
Posts: 195
so it should be src/uae but you get "Erreur 1"..
i need to see the whole compilation output to comment :/

Quote:
Originally Posted by Foul View Post
...
foul@Foulnux:~/T?l?chargements/puaex$ make
Making all in src
...

make[3]: *** [cpuemu_0.o] Erreur 1
make[1]: *** [all] Erreur 2
________
vaporizers

Last edited by GnoStiC; 20 January 2011 at 11:14.
GnoStiC is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
E-UAE for Mac VerizonLover support.OtherUAE 1 20 August 2012 07:18
FS-UAE For Mac webneta support.FS-UAE 10 12 May 2012 16:10
Install Workbench3.1 E-UAE Mac OS popto support.OtherUAE 6 08 August 2011 14:06
What's needed to compiling PUAE on Mac OS X nexusle support.OtherUAE 0 28 July 2010 21:03
Any UAE for G3 Mac running Ubuntu? Fingerlickin_B support.OtherUAE 7 05 February 2008 11:34

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:07.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10230 seconds with 14 queries