LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-03-2013, 05:44 PM   #1
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 208

Rep: Reputation: 30
Slackwarearm 14.0 - Raspberry Pi - Compiling software/gcc missing?


Hi all,

I followed the guide listed at http://rpi.fatdog.eu/ to install Slackwarearm 14.0 on a RaspberryPi model B rev 2(512MB RAM). I'm pretty familiar with installing and building software however the ARM arch isn't something I have experience with. I noticed by default gcc isn't installed? When I call any type of configure script(granted it supports the arm arch) it bombs on trying to find /lib/cpp.

Code:
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/evan/ircd-hybrid-8.0.7':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
evan@SlackPi:~/ircd-hybrid-8.0.7$
I imagine I misread or didn't catch something? Sorry for the stupid question in advance. I did install GCC using slackpkg.

Last edited by sovietpower; 05-03-2013 at 06:01 PM. Reason: Clarification
 
Old 05-03-2013, 08:26 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,583

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
have you installed gcc-g++ ?
 
Old 05-04-2013, 12:00 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,316

Rep: Reputation: Disabled
Code:
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/evan/ircd-hybrid-8.0.7':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
Did you actually do as suggested, i.e. check the config.log? Usually that file will contain the real error.

Eric
 
Old 05-04-2013, 05:59 PM   #4
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 208

Original Poster
Rep: Reputation: 30
I did install GCC and I noticed that it was one of the only packages not installed. I don't recall seeing any error messages stating it had trouble installing that package. gcc-g++ is installed. When I do a "slackpkg search gcc" these are the results:

Code:
root@SlackPi:/home/evan# slackpkg search gcc

Looking for gcc in package list. Please wait... DONE

The list below shows all packages with name matching "gcc".

[ installed ] - gcc-4.7.1-arm-2
[ installed ] - gcc-g++-4.7.1-arm-2
[ installed ] - gcc-gfortran-4.7.1-arm-2
[ installed ] - gcc-gnat-4.7.1-arm-2
[ installed ] - gcc-java-4.7.1-arm-2
[ installed ] - gcc-objc-4.7.1-arm-2
[ installed ] - gccmakedep-1.0.2-noarch-1

You can search specific files using "slackpkg file-search file".


root@SlackPi:/home/evan#
Eric, I feel shamed posting here and getting a response from you as such. I have much respect for you. Here is what I think is the relevant parts of the config.log

Code:
configure:7810: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ircd-hybrid"
| #define PACKAGE_TARNAME "ircd-hybrid"
| #define PACKAGE_VERSION "8.0.7"
| #define PACKAGE_STRING "ircd-hybrid 8.0.7"
| #define PACKAGE_BUGREPORT "bugs@ircd-hybrid.org"
| #define PACKAGE_URL ""
| #define PACKAGE "ircd-hybrid"
| #define VERSION "8.0.7"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:7810: /lib/cpp  conftest.c
In file included from /usr/include/bits/posix1_lim.h:157:0,
                 from /usr/include/limits.h:145,
                 from /usr/lib/gcc/arm-slackware-linux-gnueabi/4.7.1/include-fixed/limits.h:169,
                 from /usr/lib/gcc/arm-slackware-linux-gnueabi/4.7.1/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/arm-slackware-linux-gnueabi/4.7.1/include-fixed/limits.h:34,
                 from conftest.c:12:
/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
configure:7810: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ircd-hybrid"
| #define PACKAGE_TARNAME "ircd-hybrid"
| #define PACKAGE_VERSION "8.0.7"
| #define PACKAGE_STRING "ircd-hybrid 8.0.7"
| #define PACKAGE_BUGREPORT "bugs@ircd-hybrid.org"
| #define PACKAGE_URL ""
| #define PACKAGE "ircd-hybrid"
| #define VERSION "8.0.7"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:7840: error: in `/home/evan/ircd-hybrid-8.0.7':
configure:7842: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
Thanks!
 
Old 05-06-2013, 07:18 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,316

Rep: Reputation: Disabled
Code:
/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
This usually means you forgot to install the kernel-headers package.

Eric
 
Old 05-06-2013, 01:42 PM   #6
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 208

Original Poster
Rep: Reputation: 30
Eric,

That worked perfectly. It makes complete sense. When one upgrades a normal Slackware installation (via slackpkg) the headers are installed by default no? I was under the assumption when working with the Raspberry Pi.
 
  


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
Slackwarearm on the Raspberry Pi onebuck Linux - Embedded & Single-board computer 0 02-24-2013 08:44 PM
Issues compiling GCC v4.7.1 while building LFS for ARM (Raspberry Pi) jvilla1983 Linux From Scratch 7 12-25-2012 02:03 PM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
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