LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackwarearm 14.0 - Raspberry Pi - Compiling software/gcc missing? (http://www.linuxquestions.org/questions/slackware-14/slackwarearm-14-0-raspberry-pi-compiling-software-gcc-missing-4175460624/)

sovietpower 05-03-2013 06:44 PM

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.

willysr 05-03-2013 09:26 PM

have you installed gcc-g++ ?

Alien Bob 05-04-2013 01:00 PM

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

sovietpower 05-04-2013 06:59 PM

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!

Alien Bob 05-06-2013 08:18 AM

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

sovietpower 05-06-2013 02:42 PM

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.


All times are GMT -5. The time now is 04:13 AM.