[AD] [ alleg-Bugs-1991680 ] Crosscompiling fails with error in src/i386/icsprite.c |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: noreply@xxxxxxxxxx
- Subject: [AD] [ alleg-Bugs-1991680 ] Crosscompiling fails with error in src/i386/icsprite.c
- From: "SourceForge.net" <noreply@xxxxxxxxxx>
- Date: Thu, 12 Jun 2008 04:14:31 -0700
Bugs item #1991680, was opened at 2008-06-12 10:37
Message generated for change (Comment added) made by mmimica
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1991680&group_id=5665
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: DOS
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andreas Romeyke (art1)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crosscompiling fails with error in src/i386/icsprite.c
Initial Comment:
Hi,
I want to crosscompile Allegro for using it with djgpp under Debian Gnu/Linux. I have a working crosscompiler
($ i386-pc-msdosdjgpp-gcc -v
Using built-in specs.
Target: i386-pc-msdosdjgpp
Configured with: ./configure -v --prefix=/usr --target=i386-pc-msdosdjgpp --disable-nls --host=i686-pc-linux-gnu --enable-languages=c,c++,fortran --enable-version-specific-runtime-libs --with-headers=/usr/i386-pc-msdosdjgpp/include
Thread model: single
gcc version 4.2.2
) and have executed "fix.sh djgpp", patched xmake.sh to use ff. values:
XC_PATH=/usr/local/i386-pc-msdosdjgpp/ XPREFIX=i386-pc-msdosdjgpp- INSTALL_BASE=/usr/local/i386-pc-msdosdjgpp
..
CPATH=$CPATH:$XC_PATH/include
export CROSSCOMPILE MINGDIR DJDIR NATIVEPATH PATH XPREFIX CPATH
Then the "xmake.sh depend" was processed successfully. But if I try to run "xmake.sh" or "xmake.sh all" there I got the errors:
...
src/i386/icsprite.c: In function 'compile_sprite':
src/i386/icsprite.c:71: warning: implicit declaration of function '_unix_get_page_size'
src/i386/icsprite.c:71: warning: implicit declaration of function 'mmap'
src/i386/icsprite.c:71: error: 'MAP_SHARED' undeclared (first use in this function)
src/i386/icsprite.c:71: error: (Each undeclared identifier is reported only oncesrc/i386/icsprite.c:71: error: for each function it appears in.)
src/i386/icsprite.c:71: warning: assignment makes pointer from integer without a cast
src/i386/icsprite.c:71: warning: assignment makes pointer from integer without a cast
src/i386/icsprite.c:71: warning: implicit declaration of function 'mremap'
src/i386/icsprite.c:71: error: 'MREMAP_MAYMOVE' undeclared (first use in this function)
src/i386/icsprite.c:71: warning: assignment makes pointer from integer without a cast
...
make: *** [obj/djgpp/alleg/icsprite.o] Error 1
I downloaded allegro as allegro-4.2.2.tar.gz from your Website.
Please could you help me to fix this possible bug?
My email-adress is: romeyke@xxxxxxxxxx
Thanks,
Bye Andreas
----------------------------------------------------------------------
>Comment By: Milan Mimica (mmimica)
Date: 2008-06-12 13:14
Message:
Logged In: YES
user_id=1171214
Originator: NO
Since the problem is in ASM blitter code you can try to disable ASM. I'm
not sure how is that done for crosscompiling. I guess you should pass
ALLEGRO_USE_C=1 (x)make.
The problem seem to be at the beginning of src/i386/opcodes.h. Apparently,
gcc #defines __linux__ even when crosscompiling for DOS. You can easily fix
that until a solution is found.
----------------------------------------------------------------------
Comment By: Milan Mimica (mmimica)
Date: 2008-06-12 13:14
Message:
Logged In: YES
user_id=1171214
Originator: NO
Since the problem is in ASM blitter code you can try to dissable ASM. I'm
not sure how is that done for crosscompiling. I guess you should pass
ALLEGRO_USE_C=1 (x)make.
The problem seem to be at the beginning of src/i386/opcodes.h. Apparently,
gcc #defines __linux__ even when crosscompiling for DOS. You can easily fix
that until a solution is found.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1991680&group_id=5665