Error trying to compile in DSL-N
Topic: Error trying to compile in DSL-N
started by: Juanito
Posted by Juanito on Mar. 13 2007,14:18I have been trying to set things up in DSL-N to compile binaries rather than load Debian packages.
I unpacked the 2.6.12 kernel sources, loaded the DSL-N version of gnu-utils.dsl, and installed the Debian gcc-2.95 and make packages, but:
According to Google, the binutils & libgcc1 packages are also required, but the error remains, even with these loaded.
I'm sure I'm missing something simple - but what?
Posted by ^thehatsrule^ on Mar. 13 2007,20:30Is there anything else relevant in the configure output?
You could always open up the script, search for that exact error message, then see what causes the script to fail.
Posted by Juanito on Mar. 15 2007,10:50Thanks for the hint - I'd been looking at the config.log file - it seems the relevent error was the following:
configure:3068: checking for C compiler default output file name
configure:3095: /usr/bin/gcc-2.95 conftest.c >&5
ld: crt1.o: No such file: No such file or directory
After some searching, I found the file crt1.o in the package libc6-dev which is dependent on the linux-kernel-headers package. The following script (using Debian stable) seems to set up an environment that has allowed me to compile from some binaries:
While trying to compile cpufrequtils, I get an error that sysfs/libsysfs.h cannot be found - the makefile has an option "Use the sysfs-based interface which is included in all 2.6 kernels" - kind of odd that it is not in linux-kernel-headers, the Knoppix 4.0.2 CD or the full kernel sources but I guess that's another story (later tracked to libsysfs-dev)