You are not logged in.
Pages: 1
I've been in the process of getting a friend to convert to ARCH. So far I believe he has been liking it, and has commented on the boot speed.
One thing he would like to implement is [b]cromfs[b] which is in the AUR - http://aur.archlinux.org/packages.php?ID=10516.
However, both of us have received a wonderfully descriptive error 1 on compile. I'm not all too familiar with debugging and come humbly before much better men than I to seek help.
here's the output:
==> Validating source files with md5sums...
cromfs-1.5.4.tar.bz2 ... Passed
==> Extracting Sources...
-> bsdtar -x -f cromfs-1.5.4.tar.bz2
==> Entering fakeroot environment...
==> Starting build()...
Determining compiler version to use... CXX=g++(4.3.2) CPP=cpp(4.3.2) CC=gcc(4.3.2)
Checking if the determined compiler works... Ok
Checking if your compiler supports -fopenmp... Yes
- Will use OpenMP, not checking for -pthread
Checking if your compiler supports hash_map... Yes
Checking for fuse... Yes
Checking if your compiler supports -ftree-vectorize... Yes
Updating Makefile.sets ...
perl -pe 's@([-+a-zA-Z0-9._/]+)@lib/$1@g' < "lib/.depend" > ".libdepend"
g++ -ffast-math -O1 -ftree-vectorize -Wall -Wundef -Wcast-qual -Wpointer-arith -Wconversion -Wwrite-strings -Wsign-compare -Wredundant-decls -Winit-self -Wextra -Wcast-align -Wformat -Woverloaded-virtual -fno-default-inline -O3 -fno-rtti -DVERSION=\"1.5.4\" -g -pipe -fopenmp -DUSE_PTHREADS=0 -DHASH_MAP=1 `pkg-config --cflags fuse` -c -o cromfs.o cromfs.cc
In file included from cromfs.cc:31:
lib/LzmaDecode.c: In function 'int LzmaDecodeProperties(CLzmaProperties*, const unsigned char*, int)':
lib/LzmaDecode.c:129: warning: conversion to 'unsigned char' from 'int' may alter its value
lib/LzmaDecode.c:129: warning: suggest a space before ';' or explicit braces around empty body in 'for' statement
lib/LzmaDecode.c:130: warning: conversion to 'unsigned char' from 'int' may alter its value
lib/LzmaDecode.c:130: warning: suggest a space before ';' or explicit braces around empty body in 'for' statement
lib/LzmaDecode.c: In function 'int LzmaDecode(CLzmaDecoderState*, const unsigned char*, SizeT, SizeT*, unsigned char*, SizeT, SizeT*)':
lib/LzmaDecode.c:289: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:317: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:317: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:324: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:324: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:343: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:347: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:356: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:360: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:367: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:398: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:404: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:408: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:413: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:417: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:422: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:439: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:446: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:450: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:457: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:463: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:463: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:474: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:474: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:509: warning: conversion to 'short unsigned int' from 'int' may alter its value
lib/LzmaDecode.c:509: warning: conversion to 'short unsigned int' from 'int' may alter its value
In file included from lib/longfileread.hh:1,
from cromfs.cc:32:
lib/endian.hh: In function 'void W16(void*, uint_fast16_t)':
lib/endian.hh:62: warning: conversion to 'uint_fast8_t' from 'uint_fast16_t' may alter its value
lib/endian.hh:63: warning: conversion to 'uint_fast8_t' from 'uint_fast16_t' may alter its value
lib/endian.hh: In function 'void W24(void*, uint_fast32_t)':
lib/endian.hh:69: warning: conversion to 'uint_fast8_t' from 'uint_fast32_t' may alter its value
lib/endian.hh: In function 'void W64(void*, uint_fast64_t)':
lib/endian.hh:80: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
lib/endian.hh:81: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
lib/endian.hh: In function 'void Wn(void*, uint_fast64_t, unsigned int)':
lib/endian.hh:88: warning: conversion to 'uint_fast8_t' from 'uint_fast64_t' may alter its value
lib/endian.hh:89: warning: conversion to 'uint_fast16_t' from 'uint_fast64_t' may alter its value
lib/endian.hh:90: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
lib/endian.hh:91: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
In file included from cromfs.cc:32:
lib/longfileread.hh: At global scope:
lib/longfileread.hh:11: warning: type qualifiers ignored on function return type
lib/longfileread.hh: In constructor 'LongFileRead::LongFileRead(int, uint_fast64_t, uint_fast64_t)':
lib/longfileread.hh:21: warning: conversion to 'unsigned int' from 'uint_fast64_t' may alter its value
lib/longfileread.hh:24: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
lib/longfileread.hh: In constructor 'LongFileRead::LongFileRead(int, uint_fast64_t, uint_fast64_t, unsigned char*)':
lib/longfileread.hh:34: warning: conversion to 'size_t' from 'uint_fast64_t' may alter its value
In file included from lib/cromfs-inodefun.hh:1,
from cromfs.cc:33:
lib/../cromfs-defs.hh: In member function 'void cromfs_superblock_internal::WriteToBuffer(unsigned char*)':
lib/../cromfs-defs.hh:161: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
In file included from cromfs.cc:33:
lib/cromfs-inodefun.hh: At global scope:
lib/cromfs-inodefun.hh:6: warning: type qualifiers ignored on function return type
lib/cromfs-inodefun.hh:8: warning: type qualifiers ignored on function return type
In file included from cromfs.cc:36:
cromfs.hh:106: warning: type qualifiers ignored on function return type
cromfs.cc: In function 'const std::vector<unsigned char, std::allocator<unsigned char> > LZMADeCompress(const unsigned char*, size_t)':
cromfs.cc:74: warning: conversion to 'unsigned int' from 'uint_least64_t' may alter its value
cromfs.cc: In function 'const std::vector<unsigned char, std::allocator<unsigned char> > DoLZMALoading(int, uint_fast64_t, uint_fast64_t)':
cromfs.cc:96: warning: conversion to 'size_t' from 'uint_fast64_t' may alter its value
cromfs.cc: In member function 'const std::string cromfs::DumpBlock(const cromfs_block_internal&) const':
cromfs.cc:132: warning: conversion to 'uint_fast32_t' from 'const uint_fast64_t' may alter its value
cromfs.cc:133: warning: conversion to 'uint_fast32_t' from 'const uint_fast64_t' may alter its value
cromfs.cc: In member function 'cromfs_inode_internal cromfs::read_special_inode(uint_fast64_t, uint_fast64_t, bool)':
cromfs.cc:444: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
cromfs.cc:453: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
cromfs.cc:464: warning: conversion to 'unsigned int' from 'uint_fast64_t' may alter its value
cromfs.cc: In member function 'const cromfs_inode_internal cromfs::read_inode(cromfs_inodenum_t)':
cromfs.cc:492: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
cromfs.cc: In member function 'const cromfs_inode_internal cromfs::read_inode_and_blocks(cromfs_inodenum_t)':
cromfs.cc:527: warning: conversion to 'unsigned int' from 'uint_fast64_t' may alter its value
cromfs.cc:532: warning: conversion to 'unsigned int' from 'long long unsigned int' may alter its value
cromfs.cc:539: warning: conversion to 'unsigned int' from 'uint_fast64_t' may alter its value
cromfs.cc: In member function 'void cromfs::read_block(cromfs_blocknum_t, uint_fast32_t, unsigned char*, uint_fast32_t)':
cromfs.cc:574: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
cromfs.cc:577: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
cromfs.cc: In member function 'int_fast64_t cromfs::read_file_data_from_one_fblock_only(const cromfs_inode_internal&, uint_fast64_t, unsigned char*, uint_fast64_t, cromfs_fblocknum_t)':
cromfs.cc:658: warning: conversion to 'uint_fast32_t' from 'long long unsigned int' may alter its value
cromfs.cc:665: warning: conversion to 'unsigned int' from 'const uint_fast64_t' may alter its value
cromfs.cc:667: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
cromfs.cc:695: warning: conversion to 'uint_fast32_t' from 'const uint_fast64_t' may alter its value
cromfs.cc: In member function 'int_fast64_t cromfs::read_file_data(const cromfs_inode_internal&, uint_fast64_t, unsigned char*, uint_fast64_t, const char*)':
cromfs.cc:765: warning: conversion to 'uint_fast32_t' from 'long long unsigned int' may alter its value
cromfs.cc:772: warning: conversion to 'unsigned int' from 'const uint_fast64_t' may alter its value
cromfs.cc:774: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
cromfs.cc: In member function 'const cromfs_dirinfo cromfs::read_dir(cromfs_inodenum_t, uint_fast32_t, uint_fast32_t)':
cromfs.cc:925: warning: conversion to 'unsigned int' from 'const uint_fast64_t' may alter its value
cromfs.cc: At global scope:
cromfs.cc:1005: warning: type qualifiers ignored on function return type
cromfs.cc: In member function 'const cromfs_inodenum_t cromfs::dir_lookup(cromfs_inodenum_t, const std::string&)':
cromfs.cc:1036: warning: conversion to 'unsigned int' from 'const uint_fast64_t' may alter its value
lib/mmapping.hh: In member function 'void MemMappingType<AutoUnmap>::SetMap(int, uint_fast64_t, uint_fast64_t) [with bool AutoUnmap = true]':
lib/longfileread.hh:19: instantiated from here
lib/mmapping.hh:37: warning: conversion to 'size_t' from 'long long unsigned int' may alter its value
lib/mmapping.hh:39: warning: conversion to 'size_t' from 'long long unsigned int' may alter its value
lib/datacache.hh: In member function 'void DataCache<KeyType, ValueType>::CheckAges(long int) [with KeyType = long long unsigned int, ValueType = std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long long unsigned int> > >]':
cromfs.cc:997: instantiated from here
lib/datacache.hh:34: warning: conversion to 'time_t' from 'const long long unsigned int' may alter its value
g++ -ffast-math -O1 -ftree-vectorize -Wall -Wundef -Wcast-qual -Wpointer-arith -Wconversion -Wwrite-strings -Wsign-compare -Wredundant-decls -Winit-self -Wextra -Wcast-align -Wformat -Woverloaded-virtual -fno-default-inline -O3 -fno-rtti -DVERSION=\"1.5.4\" -g -pipe -fopenmp -DUSE_PTHREADS=0 -DHASH_MAP=1 `pkg-config --cflags fuse` -c -o fuse-ops.o fuse-ops.cc
In file included from cromfs-defs.hh:15,
from cromfs.hh:1,
from fuse-ops.cc:14:
lib/endian.hh: In function 'void W16(void*, uint_fast16_t)':
lib/endian.hh:62: warning: conversion to 'uint_fast8_t' from 'uint_fast16_t' may alter its value
lib/endian.hh:63: warning: conversion to 'uint_fast8_t' from 'uint_fast16_t' may alter its value
lib/endian.hh: In function 'void W24(void*, uint_fast32_t)':
lib/endian.hh:69: warning: conversion to 'uint_fast8_t' from 'uint_fast32_t' may alter its value
lib/endian.hh: In function 'void W64(void*, uint_fast64_t)':
lib/endian.hh:80: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
lib/endian.hh:81: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
lib/endian.hh: In function 'void Wn(void*, uint_fast64_t, unsigned int)':
lib/endian.hh:88: warning: conversion to 'uint_fast8_t' from 'uint_fast64_t' may alter its value
lib/endian.hh:89: warning: conversion to 'uint_fast16_t' from 'uint_fast64_t' may alter its value
lib/endian.hh:90: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
lib/endian.hh:91: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
In file included from cromfs.hh:1,
from fuse-ops.cc:14:
cromfs-defs.hh: In member function 'void cromfs_superblock_internal::WriteToBuffer(unsigned char*)':
cromfs-defs.hh:161: warning: conversion to 'uint_fast32_t' from 'uint_fast64_t' may alter its value
In file included from fuse-ops.cc:14:
cromfs.hh: At global scope:
cromfs.hh:106: warning: type qualifiers ignored on function return type
fuse-ops.cc: In function 'void cromfs_statfs(fuse_req*, fuse_ino_t)':
fuse-ops.cc:93: warning: conversion to 'long unsigned int' from 'const uint_fast64_t' may alter its value
fuse-ops.cc:94: warning: conversion to 'long unsigned int' from 'const uint_fast64_t' may alter its value
fuse-ops.cc: In function 'void stat_inode(stat&, fuse_ino_t, const cromfs_inode_internal&)':
fuse-ops.cc:110: error: 'memset' was not declared in this scope
fuse-ops.cc: In function 'void cromfs_lookup(fuse_req*, fuse_ino_t, const char*)':
fuse-ops.cc:139: warning: conversion to 'fuse_ino_t' from 'cromfs_inodenum_t' may alter its value
fuse-ops.cc:140: warning: conversion to 'long unsigned int' from 'cromfs_inodenum_t' may alter its value
fuse-ops.cc:148: warning: conversion to 'fuse_ino_t' from 'cromfs_inodenum_t' may alter its value
fuse-ops.cc: In function 'void cromfs_readlink(fuse_req*, fuse_ino_t)':
fuse-ops.cc:187: warning: conversion to 'int' from 'int_fast64_t' may alter its value
fuse-ops.cc: In function 'void cromfs_read(fuse_req*, fuse_ino_t, size_t, off_t, fuse_file_info*)':
fuse-ops.cc:227: warning: conversion to 'size_t' from 'int_fast64_t' may alter its value
fuse-ops.cc: In function 'void cromfs_readdir(fuse_req*, fuse_ino_t, size_t, off_t, fuse_file_info*)':
fuse-ops.cc:283: warning: conversion to 'uint_fast32_t' from 'off_t' may alter its value
fuse-ops.cc:303: warning: conversion to 'fuse_ino_t' from 'const long long unsigned int' may alter its value
make: *** [fuse-ops.o] Error 1
==> ERROR: Build Failed.
Aborting...
Well I'm off ot stumble around the makefile Any input appreciated.
Offline
Here goes your error:
fuse-ops.cc:110: error: 'memset' was not declared in this scope
Add
#include <cstring>
to fuse-ops.cc
Offline
I did that.
Then I added an include to lzma.cc, boyermooreneedle.hh, and datasource.hh all in /src/lib/
each time I get a bit further... is this gcc-4.3 being uber pedantic about it's includes?I'm continuing on my journey...
Last edited by OrionFyre (2008-09-07 09:10:41)
Offline
No, it's not a problem with gcc-4.3 but with cromfs source code. If this version (1.5.4) doesn't compile then don't force it to. Just get another version of cromfs.
Offline
so far I have added includes and edited the following files
boyermoore.cc
datasource.hh
lzma.cc
boyermoore.hh
cromfs-directoryfun.cc
fuse-ops.cc
sparsewrite.cc
stringsearchutil.hh
boyermooreneedle.hh
cromfs-fblockfun.cc
superstringfinder.hh
This seems like WAY too much work.... Giving up for tonight.
../lib/stringsearchutil.hh:349: error: 'memchr' was not declared in this scope
is the latest error. However when that occured in sparsewrite.cc and I added an include for unistd.h it worked... this time it did not get rid of that error.
Offline
memchr is in cstring. A lot of things need patching like this to build with gcc-4.3
Offline
memchr is in cstring. A lot of things need patching like this to build with gcc-4.3
D'oh. see thats how fried my brain is right now.
The last time I played in C with any seriousness was my final for computer programming in highschool... a little space shooter game with ascii characters...
Ok i'm glad that I know it needs the patching because NO other version of cromfs is working. vaguely the same kind of errors. I'll be getting some sleep before continuing.
Offline
Pages: 1