Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#4107 closed defect (fixed)

r10434 does not build on i486

Reported by: Deas Owned by:
Priority: blocker Component: General
Severity: high Keywords:
Cc: Sensitive: no

Description

./maketest.sh
U README.build
U Makefile
Updated to revision 10434.
Disable HAVE_DVBAPI
Disable CARDREADER_INTERNAL
Enable WEBIF
Enable WEBIF_LIVELOG
Enable WEBIF_JQUERY
RM build/i486-linux-gnu
+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 10434 target: i486-linux-gnu
| Tools:
| CROSS =
| CC = gcc
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -std=c99 -O2 -ggdb -pipe -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS =
| LDFLAGS = -Wl,--gc-sections
| LIBS = -lpthread -ldl -lrt
| UseFlags =
| Config:
| Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH WITH_DEBUG WITH_LB CLOCKFIX
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE SCAM CONSTCW PANDORA
| Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
| CardRdrs : PHOENIX SC8IN1 MP35 SMARGO STAPI
| Compiler : gcc (Debian 4.7.2-5) 4.7.2
| Config : build/i486-linux-gnu/config.mak
| Binary : Distribution/oscam-1.20-unstable_svn10434-i486-linux-gnu
+-------------------------------------------------------------------------------
GEN webif/pages.c
GEN Compressed 347092 template bytes into 146785 bytes. 200307 saved bytes (57.71%).
CC cscrypt/aes.c
CC cscrypt/bn_add.c
CC cscrypt/bn_asm.c
CC cscrypt/bn_ctx.c
CC cscrypt/bn_div.c
cscrypt/bn_div.c: In function ‘BN_div’:
cscrypt/bn_div.c:287:8: error: ‘asm’ undeclared (first use in this function)
cscrypt/bn_div.c:287:8: note: each undeclared identifier is reported only once for each function it appears in
cscrypt/bn_div.c:287:8: error: expected ‘;’ before ‘volatile’
cscrypt/bn_div.c:249:16: warning: variable ‘n1’ set but not used [-Wunused-but-set-variable]
make[1]: * [build/i486-linux-gnu/cscrypt/bn_div.o] Error 1
make:
* [all] Error 2

r10433 builds with no problem.

Change History (6)

comment:1 by Deas, 9 years ago

cross compile for SH4 and SH4-STAPI are working with the c99 compiler flag

comment:2 by dropsman, 9 years ago

Cross compile for mips, ppc also works with c99.
But you cannot compile a x86. I use Ubuntu 12.04 and the same error occurs.

Change this and it works:

Line 147 in bn_div.c

put 2 underscores infront of asm

Last edited 9 years ago by dropsman (previous) (diff)

comment:3 by gf, 9 years ago

Ugh, I need to find 32 bit machine to test. Thanks for the report. Remove -std=c99 for now as workaround.

comment:4 by AbrahaM, 9 years ago

cross-compile for:
sh4 receivers (on stlinux) is fine
mips (open-wrt based routers) is fine
mipsel (for dm800hd and similar) is fine

comment:5 by gf, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in r10437. I really need to add 32 bit x86 builds into my testing. It's all 64-bit x86 machines here (and a lot of cross compilers) so it's going to be a bit of a drag.

Last edited 9 years ago by gf (previous) (diff)

comment:6 by Deas, 9 years ago

no problem - thank´s for your quick support! :)

Note: See TracTickets for help on using tickets.