pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48681: dosbox build fails with gcc48 on i386-6.99.38



>Number:         48681
>Category:       pkg
>Synopsis:       dosbox build fails with gcc48 on i386-6.99.38
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 25 23:05:00 +0000 2014
>Originator:     John D. Baker
>Release:        NetBSD/i386-6.99.38(gcc48), pkgsrc-HEAD (pre-pkgsrc-2014Q1)
>Organization:
>Environment:
NetBSD gx260a 6.99.38 NetBSD 6.99.38 (GENERIC) #11: Mon Mar 24 22:17:52 CDT 
2014  
sysop%verthandi.technoskunk.fur@localhost:/d0/build/current/obj/i386/sys/arch/i386/compile/GENERIC
 i386

>Description:
On i386-current built with HAVE_GCC=48 and thus using gcc 4.8.3, building
emulators/dosbox fails as follows:

[...]
Making all in core_dynrec
c++ -DHAVE_CONFIG_H -I. -I../..   -I../../include -I/usr/pkg/include 
-I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm 
-I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE  -O2 
-I/usr/pkg/include -I/usr/X11R7/include -I/usr/include 
-I/usr/X11R7/include/libdrm -MT callback.o -MD -MP -MF .deps/callback.Tpo -c -o 
callback.o callback.cpp
mv -f .deps/callback.Tpo .deps/callback.Po
c++ -DHAVE_CONFIG_H -I. -I../..   -I../../include -I/usr/pkg/include 
-I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm 
-I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE  -O2 
-I/usr/pkg/include -I/usr/X11R7/include -I/usr/include 
-I/usr/X11R7/include/libdrm -MT cpu.o -MD -MP -MF .deps/cpu.Tpo -c -o cpu.o 
cpu.cpp
In file included from ../../include/programs.h:28:0,
                 from cpu.cpp:29:
../../include/dos_inc.h: In member function 'void DOS_MCB::SetFileName(const 
char*)':
../../include/dos_inc.h:543:78: error: expected primary-expression before ',' 
token
  void SetFileName(char const * const _name) { 
MEM_BlockWrite(pt+offsetof(sMCB,filename),_name,8); }
                                                                              ^
../../include/dos_inc.h:543:79: error: 'filename' was not declared in this scope
  void SetFileName(char const * const _name) { 
MEM_BlockWrite(pt+offsetof(sMCB,filename),_name,8); }
                                                                               ^
../../include/dos_inc.h:543:87: error: 'offsetof' was not declared in this scope
  void SetFileName(char const * const _name) { 
MEM_BlockWrite(pt+offsetof(sMCB,filename),_name,8); }
                                                                                
       ^
../../include/dos_inc.h: In member function 'void DOS_MCB::GetFileName(char*)':
../../include/dos_inc.h:544:71: error: expected primary-expression before ',' 
token
  void GetFileName(char * const _name) { 
MEM_BlockRead(pt+offsetof(sMCB,filename),_name,8);_name[8]=0;}
                                                                       ^
../../include/dos_inc.h:544:72: error: 'filename' was not declared in this scope
  void GetFileName(char * const _name) { 
MEM_BlockRead(pt+offsetof(sMCB,filename),_name,8);_name[8]=0;}
                                                                        ^
../../include/dos_inc.h:544:80: error: 'offsetof' was not declared in this scope
  void GetFileName(char * const _name) { 
MEM_BlockRead(pt+offsetof(sMCB,filename),_name,8);_name[8]=0;}
                                                                                
^
cpu.cpp: In member function 'void TaskStateSegment::Get_SSx_ESPx(Bitu, Bitu&, 
Bitu&)':
cpu.cpp:294:37: error: expected primary-expression before ',' token
    PhysPt where=base+offsetof(TSS_32,esp0)+level*8;
                                     ^
cpu.cpp:294:38: error: 'esp0' was not declared in this scope
    PhysPt where=base+offsetof(TSS_32,esp0)+level*8;
                                      ^
cpu.cpp:294:42: error: 'offsetof' was not declared in this scope
    PhysPt where=base+offsetof(TSS_32,esp0)+level*8;
                                          ^
cpu.cpp:298:37: error: expected primary-expression before ',' token
    PhysPt where=base+offsetof(TSS_16,sp0)+level*4;
                                     ^
cpu.cpp:298:38: error: 'sp0' was not declared in this scope
    PhysPt where=base+offsetof(TSS_16,sp0)+level*4;
                                      ^
cpu.cpp:298:41: error: 'offsetof' was not declared in this scope
    PhysPt where=base+offsetof(TSS_16,sp0)+level*4;
                                         ^
cpu.cpp: In function 'bool CPU_SwitchTask(Bitu, TSwitchType, Bitu)':
cpu.cpp:362:49: error: expected primary-expression before ',' token
   new_cr3=mem_readd(new_tss.base+offsetof(TSS_32,cr3));
                                                 ^
cpu.cpp:362:50: error: 'cr3' was not declared in this scope
   new_cr3=mem_readd(new_tss.base+offsetof(TSS_32,cr3));
                                                  ^
cpu.cpp:362:53: error: 'offsetof' was not declared in this scope
   new_cr3=mem_readd(new_tss.base+offsetof(TSS_32,cr3));
                                                     ^
cpu.cpp:363:49: error: expected primary-expression before ',' token
   new_eip=mem_readd(new_tss.base+offsetof(TSS_32,eip));
                                                 ^
cpu.cpp:363:50: error: 'eip' was not declared in this scope
   new_eip=mem_readd(new_tss.base+offsetof(TSS_32,eip));
                                                  ^
cpu.cpp:364:52: error: expected primary-expression before ',' token
   new_eflags=mem_readd(new_tss.base+offsetof(TSS_32,eflags));
                                                    ^
cpu.cpp:364:53: error: 'eflags' was not declared in this scope
   new_eflags=mem_readd(new_tss.base+offsetof(TSS_32,eflags));
                                                     ^
cpu.cpp:365:49: error: expected primary-expression before ',' token
   new_eax=mem_readd(new_tss.base+offsetof(TSS_32,eax));
                                                 ^
cpu.cpp:365:50: error: 'eax' was not declared in this scope
   new_eax=mem_readd(new_tss.base+offsetof(TSS_32,eax));
                                                  ^
cpu.cpp:366:49: error: expected primary-expression before ',' token
   new_ecx=mem_readd(new_tss.base+offsetof(TSS_32,ecx));
                                                 ^
cpu.cpp:366:50: error: 'ecx' was not declared in this scope
   new_ecx=mem_readd(new_tss.base+offsetof(TSS_32,ecx));
                                                  ^
cpu.cpp:367:49: error: expected primary-expression before ',' token
   new_edx=mem_readd(new_tss.base+offsetof(TSS_32,edx));
                                                 ^
cpu.cpp:367:50: error: 'edx' was not declared in this scope
   new_edx=mem_readd(new_tss.base+offsetof(TSS_32,edx));
                                                  ^
cpu.cpp:368:49: error: expected primary-expression before ',' token
   new_ebx=mem_readd(new_tss.base+offsetof(TSS_32,ebx));
                                                 ^
cpu.cpp:368:50: error: 'ebx' was not declared in this scope
   new_ebx=mem_readd(new_tss.base+offsetof(TSS_32,ebx));
                                                  ^
cpu.cpp:369:49: error: expected primary-expression before ',' token
   new_esp=mem_readd(new_tss.base+offsetof(TSS_32,esp));
                                                 ^
cpu.cpp:369:50: error: 'esp' was not declared in this scope
   new_esp=mem_readd(new_tss.base+offsetof(TSS_32,esp));
                                                  ^
cpu.cpp:370:49: error: expected primary-expression before ',' token
   new_ebp=mem_readd(new_tss.base+offsetof(TSS_32,ebp));
                                                 ^
cpu.cpp:370:50: error: 'ebp' was not declared in this scope
   new_ebp=mem_readd(new_tss.base+offsetof(TSS_32,ebp));
                                                  ^
cpu.cpp:371:49: error: expected primary-expression before ',' token
   new_edi=mem_readd(new_tss.base+offsetof(TSS_32,edi));
                                                 ^
cpu.cpp:371:50: error: 'edi' was not declared in this scope
   new_edi=mem_readd(new_tss.base+offsetof(TSS_32,edi));
                                                  ^
cpu.cpp:372:49: error: expected primary-expression before ',' token
   new_esi=mem_readd(new_tss.base+offsetof(TSS_32,esi));
                                                 ^
cpu.cpp:372:50: error: 'esi' was not declared in this scope
   new_esi=mem_readd(new_tss.base+offsetof(TSS_32,esi));
                                                  ^
cpu.cpp:374:48: error: expected primary-expression before ',' token
   new_es=mem_readw(new_tss.base+offsetof(TSS_32,es));
                                                ^
cpu.cpp:375:48: error: expected primary-expression before ',' token
   new_cs=mem_readw(new_tss.base+offsetof(TSS_32,cs));
                                                ^
cpu.cpp:376:48: error: expected primary-expression before ',' token
   new_ss=mem_readw(new_tss.base+offsetof(TSS_32,ss));
                                                ^
cpu.cpp:377:48: error: expected primary-expression before ',' token
   new_ds=mem_readw(new_tss.base+offsetof(TSS_32,ds));
                                                ^
cpu.cpp:378:48: error: expected primary-expression before ',' token
   new_fs=mem_readw(new_tss.base+offsetof(TSS_32,fs));
                                                ^
cpu.cpp:379:48: error: expected primary-expression before ',' token
   new_gs=mem_readw(new_tss.base+offsetof(TSS_32,gs));
                                                ^
cpu.cpp:380:49: error: expected primary-expression before ',' token
   new_ldt=mem_readw(new_tss.base+offsetof(TSS_32,ldt));
                                                 ^
cpu.cpp:380:50: error: 'ldt' was not declared in this scope
   new_ldt=mem_readw(new_tss.base+offsetof(TSS_32,ldt));
                                                  ^
cpu.cpp:403:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,eflags),old_flags);
                                          ^
cpu.cpp:403:43: error: 'eflags' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,eflags),old_flags);
                                           ^
cpu.cpp:403:49: error: 'offsetof' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,eflags),old_flags);
                                                 ^
cpu.cpp:404:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,eip),old_eip);
                                          ^
cpu.cpp:404:43: error: 'eip' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,eip),old_eip);
                                           ^
cpu.cpp:406:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,eax),reg_eax);
                                          ^
cpu.cpp:406:43: error: 'eax' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,eax),reg_eax);
                                           ^
cpu.cpp:407:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,ecx),reg_ecx);
                                          ^
cpu.cpp:407:43: error: 'ecx' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,ecx),reg_ecx);
                                           ^
cpu.cpp:408:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,edx),reg_edx);
                                          ^
cpu.cpp:408:43: error: 'edx' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,edx),reg_edx);
                                           ^
cpu.cpp:409:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,ebx),reg_ebx);
                                          ^
cpu.cpp:409:43: error: 'ebx' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,ebx),reg_ebx);
                                           ^
cpu.cpp:410:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,esp),reg_esp);
                                          ^
cpu.cpp:410:43: error: 'esp' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,esp),reg_esp);
                                           ^
cpu.cpp:411:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,ebp),reg_ebp);
                                          ^
cpu.cpp:411:43: error: 'ebp' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,ebp),reg_ebp);
                                           ^
cpu.cpp:412:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,esi),reg_esi);
                                          ^
cpu.cpp:412:43: error: 'esi' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,esi),reg_esi);
                                           ^
cpu.cpp:413:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,edi),reg_edi);
                                          ^
cpu.cpp:413:43: error: 'edi' was not declared in this scope
   mem_writed(cpu_tss.base+offsetof(TSS_32,edi),reg_edi);
                                           ^
cpu.cpp:415:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,es),SegValue(es));
                                          ^
cpu.cpp:416:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,cs),SegValue(cs));
                                          ^
cpu.cpp:417:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,ss),SegValue(ss));
                                          ^
cpu.cpp:418:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,ds),SegValue(ds));
                                          ^
cpu.cpp:419:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,fs),SegValue(fs));
                                          ^
cpu.cpp:420:42: error: expected primary-expression before ',' token
   mem_writed(cpu_tss.base+offsetof(TSS_32,gs),SegValue(gs));
                                          ^
cpu.cpp:428:43: error: expected primary-expression before ',' token
    mem_writed(new_tss.base+offsetof(TSS_32,back),cpu_tss.selector);
                                           ^
cpu.cpp:428:44: error: 'back' was not declared in this scope
    mem_writed(new_tss.base+offsetof(TSS_32,back),cpu_tss.selector);
                                            ^
cpu.cpp:428:48: error: 'offsetof' was not declared in this scope
    mem_writed(new_tss.base+offsetof(TSS_32,back),cpu_tss.selector);
                                                ^
cpu.cpp:430:43: error: expected primary-expression before ',' token
    mem_writew(new_tss.base+offsetof(TSS_16,back),cpu_tss.selector);
                                           ^
cpu.cpp:430:44: error: 'back' was not declared in this scope
    mem_writew(new_tss.base+offsetof(TSS_16,back),cpu_tss.selector);
                                            ^
cpu.cpp:430:48: error: 'offsetof' was not declared in this scope
    mem_writew(new_tss.base+offsetof(TSS_16,back),cpu_tss.selector);
                                                ^
*** Error code 1

Stop.
make[4]: stopped in /var/tmp/pkgsrc/emulators/dosbox/work/dosbox-0.74/src/cpu
[...]
>How-To-Repeat:
On a NetBSD/i386-current system built with/using gcc48 (amd64?  other arches?),
attempt to build emulators/dosbox.
>Fix:



Home | Main Index | Thread Index | Old Index