LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-01-2005, 08:31 PM   #1
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Rep: Reputation: 30
Cross-Compilation Question


Hi there,
I tried to cross-compile an app from Fedora Core 4. But these error messages result. I have consulted the documents. But none of those address the issue I am after. So please help

Error Messages:
[root@dhcppc2 linux]# make
make: *** No targets specified and no makefile found. Stop.
[root@dhcppc2 linux]# cd /home/Jacky/Projects/RMVES/ver1_)
bash: syntax error near unexpected token `)'
[root@dhcppc2 linux]# cd /home/Jacky/Projects/RMVES/ver1_0
[root@dhcppc2 ver1_0]# make
if armbe-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"unittest\" -DVERSION=\"1.0\" -DYYTEXT_POINTER=1 -I. -I. -Iopt/arcom/arcom-linux/include -g -O2 -MT unittest.o -MD -MP -MF ".deps/unittest.Tpo" -c -o unittest.o unittest.cpp; \
then mv -f ".deps/unittest.Tpo" ".deps/unittest.Po"; else rm -f ".deps/unittest.Tpo"; exit 1; fi
In file included from unittest.cpp:12:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/config.h:1:2: #error "Compilation aborted. Please read the FAQ for linux-libc-headers package."
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/config.h:2:2: #error "(can be found at http://ep09.pld-linux.org/~mmazur/li...c-headers/doc/)"
In file included from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/sched.h:10,
from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/module.h:9,
from unittest.cpp:13:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/rbtree.h:128: error: expected `,' or `...' before "new"
In file included from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/sched.h:16,
from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/module.h:9,
from unittest.cpp:13:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/signal.h:1:2: warning: #warning "You should include <signal.h>. This time I will do it for you."
In file included from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/sched.h:80,
from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/module.h:9,
from unittest.cpp:13:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/resource.h:1:2: warning: #warning "You should include <sys/resource.h>. This time I will do it for you."
In file included from unittest.cpp:15:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:90: error: expected `,' or `...' before "new"
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:91: error: expected `,' or `...' before "new"
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:92: error: expected `,' or `...' before "new"
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:93: error: expected `,' or `...' before "new"
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:94: error: expected `,' or `...' before "new"
In file included from unittest.cpp:17:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/console.h:52: error: expected `;' before '(' token
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/console.h:53: error: `u16' has not been declared
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/console.h:54: error: expected `;' before '*' token
In file included from /opt/arcom/armbe-linux/include/c++/3.4.2/backward/iostream.h:31,
from baseobject.h:1,
from unittest.cpp:28:
/opt/arcom/armbe-linux/include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/sched.h:32,
from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/pthread.h:20,
from /opt/arcom/armbe-linux/include/c++/3.4.2/armbe-linux/bits/gthr-default.h:43,
from /opt/arcom/armbe-linux/include/c++/3.4.2/armbe-linux/bits/gthr.h:96,
from /opt/arcom/armbe-linux/include/c++/3.4.2/armbe-linux/bits/c++io.h:37,
from /opt/arcom/armbe-linux/include/c++/3.4.2/iosfwd:47,
from /opt/arcom/armbe-linux/include/c++/3.4.2/ios:44,
from /opt/arcom/armbe-linux/include/c++/3.4.2/ostream:45,
from /opt/arcom/armbe-linux/include/c++/3.4.2/iostream:45,
from /opt/arcom/armbe-linux/include/c++/3.4.2/backward/iostream.h:32,
from baseobject.h:1,
from unittest.cpp:28:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/bits/sched.h:63: error: redefinition of `struct sched_param'
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/sched.h:106: error: previous definition of `struct sched_param'
make: *** [unittest.o] Error 1
[root@dhcppc2 ver1_0]# clear
[root@dhcppc2 ver1_0]# make
if armbe-linux-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"unittest\" -DVERSION=\"1.0\" -DYYTEXT_POINTER=1 -I. -I. -Iopt/arcom/arcom-linux/include -g -O2 -MT unittest.o -MD -MP -MF ".deps/unittest.Tpo" -c -o unittest.o unittest.cpp; \
then mv -f ".deps/unittest.Tpo" ".deps/unittest.Po"; else rm -f ".deps/unittest.Tpo"; exit 1; fi
In file included from unittest.cpp:12:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/config.h:1:2: #error "Compilation aborted. Please read the FAQ for linux-libc-headers package."
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/config.h:2:2: #error "(can be found at http://ep09.pld-linux.org/~mmazur/li...c-headers/doc/)"
In file included from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/sched.h:10,
from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/module.h:9,
from unittest.cpp:13:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/rbtree.h:128: error: expected `,' or `...' before "new"
In file included from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/sched.h:16,
from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/module.h:9,
from unittest.cpp:13:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/signal.h:1:2: warning: #warning "You should include <signal.h>. This time I will do it for you."
In file included from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/sched.h:80,
from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/module.h:9,
from unittest.cpp:13:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/resource.h:1:2: warning: #warning "You should include <sys/resource.h>. This time I will do it for you."
In file included from unittest.cpp:15:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:90: error: expected `,' or `...' before "new"
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:91: error: expected `,' or `...' before "new"
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:92: error: expected `,' or `...' before "new"
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:93: error: expected `,' or `...' before "new"
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/ioport.h:94: error: expected `,' or `...' before "new"
In file included from unittest.cpp:17:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/console.h:52: error: expected `;' before '(' token
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/console.h:53: error: `u16' has not been declared
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/console.h:54: error: expected `;' before '*' token
In file included from /opt/arcom/armbe-linux/include/c++/3.4.2/backward/iostream.h:31,
from baseobject.h:1,
from unittest.cpp:28:
/opt/arcom/armbe-linux/include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/sched.h:32,
from /opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/pthread.h:20,
from /opt/arcom/armbe-linux/include/c++/3.4.2/armbe-linux/bits/gthr-default.h:43,
from /opt/arcom/armbe-linux/include/c++/3.4.2/armbe-linux/bits/gthr.h:96,
from /opt/arcom/armbe-linux/include/c++/3.4.2/armbe-linux/bits/c++io.h:37,
from /opt/arcom/armbe-linux/include/c++/3.4.2/iosfwd:47,
from /opt/arcom/armbe-linux/include/c++/3.4.2/ios:44,
from /opt/arcom/armbe-linux/include/c++/3.4.2/ostream:45,
from /opt/arcom/armbe-linux/include/c++/3.4.2/iostream:45,
from /opt/arcom/armbe-linux/include/c++/3.4.2/backward/iostream.h:32,
from baseobject.h:1,
from unittest.cpp:28:
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/bits/sched.h:63: error: redefinition of `struct sched_param'
/opt/arcom/lib/gcc/armbe-linux/3.4.2/../../../../armbe-linux/include/linux/sched.h:106: error: previous definition of `struct sched_param'

Thanks
Jack
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ARM-Linux Cross compilation Toolkits 2.95 hazzyb Programming 3 02-06-2009 11:21 AM
Kernel compilation error using cross compiler bond_7942 Linux - Software 0 02-02-2005 01:18 AM
Kernel cross compilation and install disks gargamel Slackware 0 12-18-2003 04:05 PM
cross compilation Kocil Slackware 6 12-18-2003 02:53 PM
Cross-compilation radhapriya Linux - Software 0 08-11-2003 08:24 AM


All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration