Opened 11 years ago

Closed 11 years ago

#2488 closed defect (fixed)

Error cross-compiling ppc

Reported by: dax Owned by:
Priority: critical Component: General
Severity: high Keywords:
Cc: Sensitive: no

Description

Revision

from 6609

Issue Description

Error cross-compiling ppc

When the issue occurs

When cross-compiling for ppc

How the issue is reproducable

When cross-compiling for ppc with a trac toolchain
http://www.www.streamboard.tv/wbb2/tut-pics/toolchains/Toolchain_powerpc-tuxbox-linux_DreamboxPPC.tar.bz2

[ 53%] Building C object csctapi/CMakeFiles/csctapi.dir/io_serial.o
[ 54%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o
In file included from /home/davide/sources/oscam-svn/csctapi/ifd_sc8in1.c:23:
/home/davide/sources/oscam-svn/csctapi/ifd_sc8in1.h:26:115: no newline at end of file
make[2]: * [csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o] Error 1
make[1]:
* [csctapi/CMakeFiles/csctapi.dir/all] Error 2
make: * [all] Error 2

With the attached patch cross-compiling ppc works

Attachments (1)

mod.diff (674 bytes ) - added by dax 11 years ago.

Download all attachments as: .zip

Change History (15)

by dax, 11 years ago

Attachment: mod.diff added

comment:1 by staripper, 11 years ago

Same issue on mips wrt54g

comment:2 by bitdevil, 11 years ago

broken since 6609 changeset

tnx @dax for fix

/csctapi/ifd_sc8in1.h (add CR LF @ end of line 26)

comment:3 by Deas, 11 years ago

Resolution: fixed
Status: newclosed

comment:4 by staripper, 11 years ago

Still not working in r6612 on mips wrt54g.

Last edited 11 years ago by staripper (previous) (diff)

comment:5 by staripper, 11 years ago

Resolution: fixed
Status: closedreopened

[ 48%] Building C object CMakeFiles/csreaders.dir/reader-common.o
In file included from /home/abcd/oscam-svn/reader-common.c:13:
/home/abcd/oscam-svn/csctapi/ifd_sc8in1.h:27:2: warning: no newline at end of file
[ 49%] Building C object CMakeFiles/csreaders.dir/reader-conax.o
[ 50%] Building C object CMakeFiles/csreaders.dir/reader-cryptoworks.o
Linking C static library libcsreaders.a
[ 50%] Built target csreaders
Scanning dependencies of target svnversion
[ 50%] Built target svnversion
Scanning dependencies of target csctapi
[ 51%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o
In file included from /home/roni/oscam-svn/csctapi/ifd_sc8in1.c:23:
/home/abcd/oscam-svn/csctapi/ifd_sc8in1.h:27:2: error: no newline at end of file
make[2]: * [csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o] Error 1
make[1]:
* [csctapi/CMakeFiles/csctapi.dir/all] Error 2
make: * [all] Error 2

Last edited 11 years ago by staripper (previous) (diff)

comment:6 by dax, 11 years ago

Also ppc
[ 85%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o
In file included from /home/davide/sources/oscam-svn/csctapi/ifd_sc8in1.c:23:
/home/davide/sources/oscam-svn/csctapi/ifd_sc8in1.h:27:2: no newline at end of file
make[2]: * [csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o] Error 1
make[1]:
* [csctapi/CMakeFiles/csctapi.dir/all] Error 2
make: * [all] Error 2

comment:7 by bitdevil, 11 years ago

This may be dependent on libusb...

-> On another system I had no error messages with existing libusb.

comment:8 by dax, 11 years ago

the new patch

Index: csctapi/ifd_sc8in1.h
===================================================================
--- csctapi/ifd_sc8in1.h	(revisione 6613)
+++ csctapi/ifd_sc8in1.h	(copia locale)
@@ -24,4 +24,5 @@
 int32_t Sc8in1_InitLocks(struct s_reader * reader);
 int32_t MCR_DisplayText(struct s_reader *reader, char* text, uint16_t text_len, uint16_t time, uint8_t blocking);
 int32_t Sc8in1_SetBaudrate (struct s_reader * reader, uint32_t baudrate, struct termios *termio, uint8_t cmdMode);
- 
\ No newline at end of file
+
+ 

comment:9 by dax, 11 years ago

Also with changeset 6615 doesn't work. With this patch croos-compiling ppc is ok.

Index: csctapi/ifd_sc8in1.h
===================================================================
--- csctapi/ifd_sc8in1.h	(revisione 6615)
+++ csctapi/ifd_sc8in1.h	(copia locale)
@@ -23,4 +23,5 @@
 int32_t Sc8in1_Close(struct s_reader *reader);
 int32_t Sc8in1_InitLocks(struct s_reader * reader);
 int32_t MCR_DisplayText(struct s_reader *reader, char* text, uint16_t text_len, uint16_t time, uint8_t blocking);
-int32_t Sc8in1_SetBaudrate (struct s_reader * reader, uint32_t baudrate, struct termios *termio, uint8_t cmdMode);
\ No newline at end of file
+int32_t Sc8in1_SetBaudrate (struct s_reader * reader, uint32_t baudrate, struct termios *termio, uint8_t cmdMode);
+

comment:10 by theparasol, 11 years ago

patch is not applyable...

6615 compiles fine for ppc on my system...

Tried something else:6616 works fine here but maybe it works now also for other compilers?!

comment:11 by dax, 11 years ago

The revisons from 6609 to 6616 works fine with the mips and x86. Doesn' t work on ppc.
The revision 6616 for ppc on my system (debian with a trac ppc toolchain)
[ 54%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o
In file included from /home/davide/sources/oscam-svn/csctapi/ifd_sc8in1.c:23:
/home/davide/sources/oscam-svn/csctapi/ifd_sc8in1.h:26:113: no newline at end of file
make[2]: * [csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o] Error 1
make[1]:
* [csctapi/CMakeFiles/csctapi.dir/all] Error 2
make: * [all] Error 2
With my previous patch working well for mips, ppc, ppc old, x86 and x86_64
Thanks

Last edited 11 years ago by dax (previous) (diff)

comment:12 by theparasol, 11 years ago

Take look at 6618... told you: can't commit your patch, Deas tried it also. Doesn't work.

WTF: download.oscam.to works again from 6618? Hard to believe an empty patch does the trick.
I presume someone patched the buildserver ;)

Last edited 11 years ago by theparasol (previous) (diff)

comment:13 by staripper, 11 years ago

in r6618 compiling complete but with warnings:

[ 32%] Building C object CMakeFiles/csoscam.dir/oscam-log.o
make[2]: Warning: File `../csctapi/ifd_sc8in1.h' has modification time 1.2e+02 s in the future
[ 33%] Building C object CMakeFiles/csoscam.dir/oscam-reader.o
Linking C static library libcsoscam.a
make[2]: warning: Clock skew detected. Your build may be incomplete.
[ 33%] Built target csoscam

comment:14 by staripper, 11 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.