Skip to content

Failed to build #3

@Andrew-He

Description

@Andrew-He

Hi, Nielklinnenbank,

 I fork this project, and trying to build it according to http://www.freenos.org/documentation/freenos-developers-handbook.html  

Here is the snapshot when running "scons" on the root directory, thank you

scons: Reading SConscript files ...
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1
Checking for -m32 ... (cached) yes
Checking for -Wall ... (cached) yes
Checking for -Wextra ... (cached) yes
Checking for -nostdinc ... (cached) yes
Checking for -fno-stack-protector ... (cached) yes
Checking for -fno-builtin ... (cached) yes
Checking for -Wno-write-strings ... (cached) yes
Checking for -Wno-unused-parameter ... (cached) yes
Checking for -Wno-ignored-qualifiers ... (cached) yes
Checking for -g3 ... (cached) yes
Checking for -O0 ... (cached) yes
Checking for -fno-rtti ... (cached) yes
Checking for -fno-exceptions ... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
CXX build/host/bin/img/Main.o
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:32:
In file included from kernel/intel/IntelKernel.h:122:
In file included from kernel/FreeNOS/Kernel.h:27:
In file included from kernel/Process.h:26:
lib/libstd/Index.h:116:18: warning: 'IndexProcessShares::MemoryShare::remove' hides overloaded virtual function [-Woverloaded-virtual]
virtual bool remove(Size position)
^
kernel/ProcessShares.h:170:24: note: in instantiation of template class 'IndexProcessShares::MemoryShare' requested here
Index m_shares;
^
lib/libstd/Sequence.h:76:17: note: hidden overloaded virtual function 'SequenceProcessShares::MemoryShare::remove' declared here: type
mismatch at 1st parameter ('ProcessShares::MemoryShare' vs 'Size' (aka 'unsigned int'))
virtual int remove(T value)
^
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:32:
In file included from kernel/intel/IntelKernel.h:122:
In file included from kernel/FreeNOS/Kernel.h:27:
In file included from kernel/Process.h:26:
lib/libstd/Index.h:159:18: warning: 'IndexProcessShares::MemoryShare::contains' hides overloaded virtual function [-Woverloaded-virtual]
virtual bool contains(T value)
^
lib/libstd/Sequence.h:124:18: note: hidden overloaded virtual function 'SequenceProcessShares::MemoryShare::contains' declared here:
different qualifiers (const vs none)
virtual bool contains(const T value) const
^
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:32:
In file included from kernel/intel/IntelKernel.h:122:
In file included from kernel/FreeNOS/Kernel.h:27:
In file included from kernel/Process.h:26:
lib/libstd/Index.h:171:17: warning: 'IndexProcessShares::MemoryShare::compareTo' hides overloaded virtual function [-Woverloaded-virtual]
virtual int compareTo(const Index &idx) const
^
lib/libstd/Sequence.h:138:17: note: hidden overloaded virtual function 'SequenceProcessShares::MemoryShare::compareTo' declared here: type
mismatch at 1st parameter ('const SequenceProcessShares::MemoryShare &' vs 'const IndexProcessShares::MemoryShare &')
virtual int compareTo(const Sequence &s) const
^
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:32:
In file included from kernel/intel/IntelKernel.h:125:
lib/libarch/intel/IntelAPIC.h:149:19: warning: 'IntelAPIC::start' hides overloaded virtual function [-Woverloaded-virtual]
Timer::Result start(IntelPIT pit);
^
lib/libarch/Timer.h:104:20: note: hidden overloaded virtual function 'Timer::start' declared here: different number of parameters (0 vs 1)
virtual Result start();
^
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:32:
In file included from kernel/intel/IntelKernel.h:125:
lib/libarch/intel/IntelAPIC.h:158:19: warning: 'IntelAPIC::start' hides overloaded virtual function [-Woverloaded-virtual]
Timer::Result start(uint initialCounter, uint hertz);
^
lib/libarch/Timer.h:104:20: note: hidden overloaded virtual function 'Timer::start' declared here: different number of parameters (0 vs 2)
virtual Result start();
^
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:34:
In file included from kernel/intel/IntelSerial.h:11:
In file included from lib/libstd/Log.h:13:
lib/libstd/String.h:197:17: warning: 'String::compareTo' hides overloaded virtual function [-Woverloaded-virtual]
virtual int compareTo(const String & str) const;
^
lib/libstd/Sequence.h:138:17: note: hidden overloaded virtual function 'Sequence::compareTo' declared here: type mismatch at 1st
parameter ('const Sequence &' vs 'const String &')
virtual int compareTo(const Sequence &s) const
^
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:34:
In file included from kernel/intel/IntelSerial.h:11:
In file included from lib/libstd/Log.h:13:
lib/libstd/String.h:207:17: warning: 'String::compareTo' hides overloaded virtual function [-Woverloaded-virtual]
virtual int compareTo(const String & str,
^
lib/libstd/Sequence.h:138:17: note: hidden overloaded virtual function 'Sequence::compareTo' declared here: different number of
parameters (1 vs 2)
virtual int compareTo(const Sequence &s) const
^
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:34:
In file included from kernel/intel/IntelSerial.h:11:
In file included from lib/libstd/Log.h:13:
lib/libstd/String.h:219:17: warning: 'String::compareTo' hides overloaded virtual function [-Woverloaded-virtual]
virtual int compareTo(const char *str,
^
lib/libstd/Sequence.h:138:17: note: hidden overloaded virtual function 'Sequence::compareTo' declared here: different number of
parameters (1 vs 3)
virtual int compareTo(const Sequence &s) const
^
In file included from bin/img/Main.cpp:18:
In file included from build/host/include/FreeNOS/System.h:34:
In file included from kernel/intel/IntelSerial.h:11:
In file included from lib/libstd/Log.h:13:
lib/libstd/String.h:226:18: warning: 'String::equals' hides overloaded virtual function [-Woverloaded-virtual]
virtual bool equals(const String &str) const;
^
lib/libstd/Comparable.h:41:18: note: hidden overloaded virtual function 'Comparable<Sequence >::equals' declared here: type mismatch at
1st parameter ('const Sequence &' vs 'const String &')
virtual bool equals(const T &t) const
^
bin/img/Main.cpp:44:29: error: use of undeclared identifier 'strerror'
prog, file, strerror(errno));
^
bin/img/Main.cpp:51:14: error: use of undeclared identifier 'strlen'
line[strlen(line) - 1] = 0;
^
bin/img/Main.cpp:55:9: error: use of undeclared identifier 'strncpy'
strncpy(entry->symbol.name, line, BOOTIMAGE_NAMELEN);
^
bin/img/Main.cpp:62:33: error: use of undeclared identifier 'strerror'
prog, line, strerror(errno));
^
bin/img/Main.cpp:73:33: error: use of undeclared identifier 'strerror'
prog, line, strerror(errno));
^
bin/img/Main.cpp:79:33: error: use of undeclared identifier 'strerror'
prog, line, strerror(errno));
^
bin/img/Main.cpp:91:41: error: use of undeclared identifier 'strerror'
prog, line, strerror(errno));
^
bin/img/Main.cpp:151:5: error: use of undeclared identifier 'memset'
memset(&image, 0, sizeof(image));
^
bin/img/Main.cpp:152:5: error: use of undeclared identifier 'memset'
memset(symbols, 0, sizeof(BootSymbol) * input.count());
^
bin/img/Main.cpp:166:9: error: use of undeclared identifier 'strncpy'
strncpy(symbols[i].name, input[i]->symbol.name, BOOTIMAGE_NAMELEN);
^
bin/img/Main.cpp:179:5: error: use of undeclared identifier 'memset'
memset(segments, 0, sizeof(BootSegment) * numSegments);
^
bin/img/Main.cpp:210:35: error: use of undeclared identifier 'strerror'
argv[0], argv[2], strerror(errno));
^
bin/img/Main.cpp:219:35: error: use of undeclared identifier 'strerror'
argv[0], argv[2], strerror(errno));
^
bin/img/Main.cpp:233:43: error: use of undeclared identifier 'strerror'
argv[0], argv[2], strerror(errno));
^
bin/img/Main.cpp:241:43: error: use of undeclared identifier 'strerror'
argv[0], argv[2], strerror(errno));
^
9 warnings and 15 errors generated.
scons: *
* [build/host/bin/img/Main.o] Error 1
scons: building terminated because of errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions