View previous topic :: View next topic |
Author |
Message |
szachy n00b
Joined: 14 Feb 2005 Posts: 31 Location: Tarnów, Poland
|
Posted: Fri Feb 27, 2009 10:01 pm Post subject: |
|
|
u mnie to samo z palca idzie bez patcha razem z modułami ale przez emerge zamiast warningów są błędy |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Fri Feb 27, 2009 10:07 pm Post subject: |
|
|
działa.
Teraz sypie się kadu-history. _________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Fri Feb 27, 2009 10:13 pm Post subject: |
|
|
acei wrote: | działa.
Teraz sypie się kadu-history. |
To akurat do przewidzenia. W każdym razie, sytuacja wygląda tak: cmake-utils.eclass robi coś brzydkiego. Jakimś sposobem błąd nie ujawnia się u wszystkich osób z GCC 4.3.3 i Qt 4.5_rc1. Łatka poprawiająca const swoją drogą by nie zaszkodziła, ale chciałbym też zbadać co broi cmake-utils. Mógłbym ewentualnie przestać używać cmake-utils, ale jest to nieeleganckie rozwiązanie.
EDIT:
Kolejny eksperyment:
1) Po nieudanej kompilacji wrzucić /var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/temp/gentoo_common_config.cmake do katalogu z rozpakowanymi źródłami kadu.
2) Wykonać w katalogu ze źródłami:
Code: | cmake -C gentoo_common_config.cmake . && make |
3) Jeśli się wyłoży, próbować usuwać kolejne linie z gentoo_common_config.cmake _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Sat Feb 28, 2009 3:03 pm Post subject: |
|
|
mziab wrote: |
Kolejny eksperyment:
1) Po nieudanej kompilacji wrzucić /var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/temp/gentoo_common_config.cmake do katalogu z rozpakowanymi źródłami kadu.
2) Wykonać w katalogu ze źródłami:
Code: | cmake -C gentoo_common_config.cmake . && make |
3) Jeśli się wyłoży, próbować usuwać kolejne linie z gentoo_common_config.cmake |
gentoo_common_config.cmake :
Code: | SET(CMAKE_C_COMPILER /usr/bin/x86_64-pc-linux-gnu-gcc CACHE STRING "package building C compiler")
SET(CMAKE_CXX_COMPILER /usr/bin/x86_64-pc-linux-gnu-g++ CACHE STRING "package building C++ compiler")
SET(CMAKE_C_CREATE_SHARED_LIBRARY
"<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
"<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_C_COMPILE_OBJECT
"<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "")
SET(CMAKE_CXX_COMPILE_OBJECT
"<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "")
SET(CMAKE_C_LINK_EXECUTABLE
"<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -Wl,-O1 <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_CXX_LINK_EXECUTABLE
"<CMAKE_CXX_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> -Wl,-O1 <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_INSTALL_PREFIX /usr CACHE FILEPATH "install path prefix")
SET(LIB_SUFFIX 64 CACHE FILEPATH "library path suffix")
SET(LIB_INSTALL_DIR /usr/lib64 CACHE FILEPATH "library install directory")
# honour gentoo c and cxx flags settings instead of using system ones.
#SET(CMAKE_BUILD_TYPE gentoo CACHE STRING "determines build settings")
SET(CMAKE_CXX_FLAGS_GENTOO "")
SET(CMAKE_C_FLAGS_GENTOO "")
|
Trzecia linijka od dołu i się kompiluje. _________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Sat Feb 28, 2009 3:11 pm Post subject: |
|
|
A pokaż:
Code: | grep -A 30 "common_configure_code()" /usr/portage/eclass/cmake-utils.eclass |
_________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Sat Feb 28, 2009 3:16 pm Post subject: |
|
|
grep -A 30 "common_configure_code()" /usr/portage/eclass/cmake-utils.eclass
Code: | _common_configure_code() {
local tmp_libdir=$(get_libdir)
# here we set the compiler explicitly, set install directories prefixes, and
# make sure that the gentoo user compiler flags trump those set in the
# program
local modules_dir=/usr/share/cmake/Modules
local cxx_create_shared_library=$(sed -n -e 's/)/ CACHE STRING "")/' -e "s/<TARGET_SONAME>/<TARGET_SONAME> ${CXXFLAGS}/" -e '/SET(CMAKE_CXX_CREATE_SHARED_LIBRARY/,/)/p' "${modules_dir}/CMakeCXXInformation.cmake")
local c_create_shared_library=$(sed -n -e 's/)/ CACHE STRING "")/' -e "s/<TARGET_SONAME>/<TARGET_SONAME> ${CFLAGS}/" -e '/SET(CMAKE_C_CREATE_SHARED_LIBRARY/,/)/p' "${modules_dir}/CMakeCInformation.cmake")
local c_compile_object=$(sed -n -e 's/)/ CACHE STRING "")/' -e "s/<FLAGS>/<FLAGS> ${CFLAGS}/" -e '/SET(CMAKE_C_COMPILE_OBJECT/,/)/p' "${modules_dir}/CMakeCInformation.cmake")
local cxx_compile_object=$(sed -n -e 's/)/ CACHE STRING "")/' -e "s/<FLAGS>/<FLAGS> ${CXXFLAGS}/" -e '/SET(CMAKE_CXX_COMPILE_OBJECT/,/)/p' "${modules_dir}/CMakeCXXInformation.cmake")
local c_link_executable=$(sed -n -e 's/)/ CACHE STRING "")/' -e "s/<FLAGS>/<FLAGS> ${CFLAGS}/" -e "s/<LINK_FLAGS>/<LINK_FLAGS> ${LDFLAGS}/" -e '/SET(CMAKE_C_LINK_EXECUTABLE/,/)/p' "${modules_dir}/CMakeCInformation.cmake")
local cxx_link_executable=$(sed -n -e 's/)/ CACHE STRING "")/' -e "s/<FLAGS>/<FLAGS> ${CXXFLAGS}/" -e "s/<LINK_FLAGS>/<LINK_FLAGS> ${LDFLAGS}/" -e '/SET(CMAKE_CXX_LINK_EXECUTABLE/,/)/p' "${modules_dir}/CMakeCXXInformation.cmake")
cat > "${TMPDIR}/gentoo_common_config.cmake" <<_EOF_
SET(CMAKE_C_COMPILER $(type -P $(tc-getCC)) CACHE STRING "package building C compiler")
SET(CMAKE_CXX_COMPILER $(type -P $(tc-getCXX)) CACHE STRING "package building C++ compiler")
${c_create_shared_library}
${cxx_create_shared_library}
${c_compile_object}
${cxx_compile_object}
${c_link_executable}
${cxx_link_executable}
SET(CMAKE_INSTALL_PREFIX ${PREFIX:-/usr} CACHE FILEPATH "install path prefix")
SET(LIB_SUFFIX ${tmp_libdir/lib} CACHE FILEPATH "library path suffix")
SET(LIB_INSTALL_DIR ${PREFIX:-/usr}/${tmp_libdir} CACHE FILEPATH "library install directory")
_EOF_
[[ -n ${CMAKE_NO_COLOR} ]] && echo 'SET(CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make")' >> "${TMPDIR}/gentoo_common_config.cmake"
if has debug ${IUSE//+} && use debug ; then
echo 'SET(CMAKE_BUILD_TYPE Debug CACHE STRING "determines build settings")' >> "${TMPDIR}/gentoo_common_config.cmake" |
_________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Sat Feb 28, 2009 3:21 pm Post subject: |
|
|
Spróbuj usunąć z roslinowego kadu-base.eclass linijkę z BUILD_DESCRIPTION. To mój najlepszy trop. Gdyby to nie pomogło, spróbuj usunąć całe kadu-base_src_configure(). _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Sat Feb 28, 2009 3:34 pm Post subject: |
|
|
Ani usunięcie BUILD_DESCRIPTION, ani całego src_configure nie pomogło. Sypie się na kadu_sound.
Code: | Scanning dependencies of target sound
[ 61%] [ 69%] Building CXX object modules/sound/CMakeFiles/sound.dir/sound.cpp.o
Building CXX object modules/sound/CMakeFiles/sound.dir/sound_file.cpp.o
[ 76%] Building CXX object modules/sound/CMakeFiles/sound.dir/sound_slots.cpp.o
[ 84%] Building CXX object modules/sound/CMakeFiles/sound.dir/moc_sound.cxx.o
In file included from /var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu/modules/sound/sound_slots.h:8,
from /var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu/modules/sound/sound_slots.cpp:23:
/var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu/modules/sound/sound.h:40: warning: ‘typedef’ was ignored in this declaration
/var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu/modules/sound/sound_slots.cpp: In constructor ‘SoundSlots::SoundSlots(bool, QObject*)’:
/var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu/modules/sound/sound_slots.cpp:106: error: invalid conversion from ‘const char*’ to ‘char*’
/var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu/modules/sound/sound_slots.cpp:106: error: initializing argument 4 of ‘ActionDescription::ActionDescription(ActionDescription::ActionType, const QString&, QObject*, char*, const QString&, const QString&, bool, const QString&, void (*)(KaduAction*))’
In file included from /var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu-sound_build/modules/sound/moc_sound.cxx:10:
/var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu-sound_build/modules/sound/../../../kadu/modules/sound/sound.h:40: warning: ‘typedef’ was ignored in this declaration
make[2]: *** [modules/sound/CMakeFiles/sound.dir/sound_slots.cpp.o] Błąd 1
make[2]: *** Oczekiwanie na niezakończone zadania....
In file included from /var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu/modules/sound/sound.cpp:18:
/var/tmp/portage/net-im/kadu-sound-0.6.5.1/work/kadu/modules/sound/sound.h:40: warning: ‘typedef’ was ignored in this declaration
make[1]: *** [modules/sound/CMakeFiles/sound.dir/all] Błąd 2
make: *** [all] Błąd 2
*
* ERROR: net-im/kadu-sound-0.6.5.1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2688: Called kadu-base_src_compile
* environment, line 1993: Called cmake-utils_src_compile
* environment, line 614: Called cmake-utils_src_make
* environment, line 657: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
* The die message:
* Make failed!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/net-im/kadu-sound-0.6.5.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-im/kadu-sound-0.6.5.1/temp/environment'.
* This ebuild used the following eclasses from overlays:
* /usr/local/portage/layman/roslin/eclass/kadu-base.eclass
* /usr/local/portage/layman/roslin/eclass/kadu-mod.eclass
* This ebuild is from an overlay named 'roslin': '/usr/local/portage/layman/roslin/'
*
>>> Failed to emerge net-im/kadu-sound-0.6.5.1, Log file:
>>> '/var/tmp/portage/net-im/kadu-sound-0.6.5.1/temp/build.log'
* Messages for package net-im/kadu-sound-0.6.5.1:
*
* ERROR: net-im/kadu-sound-0.6.5.1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2688: Called kadu-base_src_compile
* environment, line 1993: Called cmake-utils_src_compile
* environment, line 614: Called cmake-utils_src_make
* environment, line 657: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
* The die message:
* Make failed!
|
_________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Sat Feb 28, 2009 3:35 pm Post subject: |
|
|
Ale kadu-core-0.6.5.1-r1 się buduje? _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Sat Feb 28, 2009 3:44 pm Post subject: |
|
|
Nie, nie buduje się, mam po prostu od wczoraj wersję -r2
Code: | >>> Emerging (1 of 1) net-im/kadu-core-0.6.5.1-r1 from roslin
* kadu-0.6.5.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking kadu-0.6.5.1.tar.bz2 to /var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/work
>>> Source unpacked in /var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/work
* Applying kadu-core-qt45-fix.patch ... [ ok ]
>>> Configuring source in /var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/work/kadu ...
/var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/temp/environment: line 2682: kadu-base_src_configure: command not found
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/work/kadu ...
/var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/temp/environment: line 662: pushd: /var/tmp/portage/net-im/kadu-core-0.6.5.1-r1/work/kadu-core_build: Nie ma takiego pliku ani katalogu
make -j3
make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
*
* ERROR: net-im/kadu-core-0.6.5.1-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2678: Called kadu-base_src_compile
* environment, line 2002: Called cmake-utils_src_compile
* environment, line 623: Called cmake-utils_src_make
* environment, line 666: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
* The die message:
* Make failed! |
_________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Sat Feb 28, 2009 3:50 pm Post subject: |
|
|
Za dużo wywaliłeś z kadu-base.eclass i stąd się bierze ten konkretny błąd. Na razie nie mam pojęcia skąd bierze się ta felerna linijka, choć mam pewne przypuszczenia. Kadu-core-0.6.5.1-r2 lepiej usuń gdzieś na bok, bo na razie będzie zawadzać. Prawdziwy problem tkwi na linii ebuildy do Kadu | cmake-utils. BUILD_TYPE nie powinien być ustawiony na Gentoo. Zgaduję, że powoduje to dodanie do flag -Werror. _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Sat Feb 28, 2009 4:06 pm Post subject: |
|
|
Wywaliłem -r2, z kadu-base.eclass była wywalona sekcja src_configure() stąd ten dziwny bład. Przy zahaszowanym BUILD_DESCRIPTION też się sypie ale błąd taki jak wczoraj. _________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Sat Feb 28, 2009 4:13 pm Post subject: |
|
|
Dla porównania moje gentoo_common_config.cmake:
Code: | SET(CMAKE_C_COMPILER /usr/bin/i686-pc-linux-gnu-gcc CACHE STRING "package building C compiler")
SET(CMAKE_CXX_COMPILER /usr/bin/i686-pc-linux-gnu-g++ CACHE STRING "package building C++ compiler")
SET(CMAKE_C_CREATE_SHARED_LIBRARY
"<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> -O2 -march=prescott -fomit-frame-pointer -pipe -o <TARGET> <OBJECTS> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
"<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -O2 -march=prescott -fomit-frame-pointer -pipe -o <TARGET> <OBJECTS> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_C_COMPILE_OBJECT
"<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -O2 -march=prescott -fomit-frame-pointer -pipe -o <OBJECT> -c <SOURCE>" CACHE STRING "")
SET(CMAKE_CXX_COMPILE_OBJECT
"<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -O2 -march=prescott -fomit-frame-pointer -pipe -o <OBJECT> -c <SOURCE>" CACHE STRING "")
SET(CMAKE_C_LINK_EXECUTABLE
"<CMAKE_C_COMPILER> <FLAGS> -O2 -march=prescott -fomit-frame-pointer -pipe <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -Wl,-O1 <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_CXX_LINK_EXECUTABLE
"<CMAKE_CXX_COMPILER> <FLAGS> -O2 -march=prescott -fomit-frame-pointer -pipe <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> -Wl,-O1 <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_INSTALL_PREFIX /usr CACHE FILEPATH "install path prefix")
SET(LIB_SUFFIX CACHE FILEPATH "library path suffix")
SET(LIB_INSTALL_DIR /usr/lib CACHE FILEPATH "library install directory")
SET(CMAKE_BUILD_TYPE Release CACHE STRING "determines build settings") |
Jak widać, u mnie CMAKE_BUILD_TYPE jest ustawiony jak należy i nie ma komentarza "honour gentoo c and cxx flags settings instead of using system ones." Nurtuje mnie to.
Edit: No tak, to dlatego, że kompilowałeś z ręcznie ustawionymi CFLAGS i CXXFLAGS. Mógłbyś spróbować jeszcze raz i wkleić mi gentoo_common_config.cmake? _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Sat Feb 28, 2009 5:06 pm Post subject: |
|
|
gentoo_common_config.cmake
Code: | SET(CMAKE_C_COMPILER /usr/bin/x86_64-pc-linux-gnu-gcc CACHE STRING "package building C compiler")
SET(CMAKE_CXX_COMPILER /usr/bin/x86_64-pc-linux-gnu-g++ CACHE STRING "package building C++ compiler")
SET(CMAKE_C_CREATE_SHARED_LIBRARY
"<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> -march=core2 -O2 -pipe -o <TARGET> <OBJECTS> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
"<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -march=core2 -O2 -pipe -o <TARGET> <OBJECTS> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_C_COMPILE_OBJECT
"<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -march=core2 -O2 -pipe -o <OBJECT> -c <SOURCE>" CACHE STRING "")
SET(CMAKE_CXX_COMPILE_OBJECT
"<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -march=core2 -O2 -pipe -o <OBJECT> -c <SOURCE>" CACHE STRING "")
SET(CMAKE_C_LINK_EXECUTABLE
"<CMAKE_C_COMPILER> <FLAGS> -march=core2 -O2 -pipe <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -Wl,-O1 <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_CXX_LINK_EXECUTABLE
"<CMAKE_CXX_COMPILER> <FLAGS> -march=core2 -O2 -pipe <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> -Wl,-O1 <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" CACHE STRING "")
SET(CMAKE_INSTALL_PREFIX /usr CACHE FILEPATH "install path prefix")
SET(LIB_SUFFIX 64 CACHE FILEPATH "library path suffix")
SET(LIB_INSTALL_DIR /usr/lib64 CACHE FILEPATH "library install directory")
SET(CMAKE_BUILD_TYPE Release CACHE STRING "determines build settings") |
a po: Code: | cmake -C gentoo_common_config.cmake . && make | kadu buduje się normalnie. _________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Sat Feb 28, 2009 5:29 pm Post subject: |
|
|
Czyli kadu-core nadal się wykłada kompilowane z emerge, mimo wszystkich zabiegów? _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Sat Feb 28, 2009 5:35 pm Post subject: |
|
|
Z emerge sypie się tak jak poprzednio. _________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Sat Feb 28, 2009 8:10 pm Post subject: |
|
|
Wrzuciłem do overlaya odpowiednie poprawki. Zsynchronizuj repo i sprawdź czy działa _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Sat Feb 28, 2009 9:17 pm Post subject: |
|
|
Zmielone z roslina.
Dzięki. _________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Sun Mar 01, 2009 12:01 pm Post subject: |
|
|
Apel do upgrade'ujących z poprzedniego kadu-core:
Koniecznie przebudujcie moduły:
Code: | emerge portage-utils (jeśli nie jest zainstalowane)
emerge -1av $(qlist -I -C net-im/kadu) |
_________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
reavertm Developer
Joined: 05 Feb 2004 Posts: 265 Location: Wrocław
|
Posted: Mon Mar 02, 2009 2:19 am Post subject: |
|
|
Odnośnie cmake-utils - te zmiany (z ustawianiem CMAKE_BUILD_TYPE na gentoo) to tymczasowy workaround na sytuację, w której wbudowane cmake CXXFLAGS są dodawane do efektywnych CXXFLAGS używanych przy kompilacji - co nie jest wskazane - polityka Gentoo mówi, by tu wygrywały flagi z make.conf. Ale podsumujmy - która wersja cmake-utils (ta z portage czy ta kde-testing overlay) powoduje u Was problemy z kompilacją kadu, na jakich platformach (amd64, czy ~amd64, jakie gcc, które Qt4 etc) i z jakimi efektywnymi CFLAGS/CXXFLAGS?
Błędy i ewentualne łatki preferowane by zgłaszać tu. (shameless plug)
edit: poprawiony ebuild
dla zainteresowanych - http://www.kadu.net/forum/viewtopic.php?f=2&t=9673&p=90075#p90075 _________________ Maciek
Last edited by reavertm on Thu Mar 05, 2009 2:56 pm; edited 2 times in total |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Mon Mar 02, 2009 2:46 pm Post subject: |
|
|
acei: Mógłbyś sprawdzić czy to rzeczywiście wina cmake-utils.eclass z kde-testing?
Zakomentuj łatkę w kadu-core-0.6.5.1-r2.ebuild. Zmień tymczasowo nazwę cmake-utils.eclass z kde-testing (powinno siedzieć w /usr/portage/local/layman/kde-testing/eclass/cmake-utils.eclass) na coś innego. I spróbuj zbudować kadu-core. Jeśli przejdzie, a wcześniej nie działało, mamy winowajcę. _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
acei Tux's lil' helper
Joined: 16 Sep 2007 Posts: 90
|
Posted: Mon Mar 02, 2009 6:17 pm Post subject: |
|
|
@reavertm po wywaleniu kde-testing twój ebuild działa.
Brak w nim jedynie łatki na polskie ogonki.
@mziab zaraz sprawdzę ebuild z roslina.
EDIT:
Zmielone z roslina bez problemów. _________________ GA965P+E6320+Geil 2*1GB CL4+ATI HD6570 ~amd64 |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Fri Mar 06, 2009 2:16 pm Post subject: |
|
|
Zrobiłem małe dochodzenie w tej sprawie i zauważyłem, że główną różnicą między CMAKE_BUILD_TYPE=Release a CMAKE_BUILD_TYPE=Gentoo jest flaga "-DQT_NO_DEBUG".
Zdaje się, że przy Release pojawia się, a przy czymkolwiek innym nie. Dzieje się to tylko z cmake-utils.eclass z kde-testing. A sama flaga jest chyba dodawana przez FindQt4.cmake. Jak rozumiem, ten sam problem może pojawić się w każdym pakiecie używającym cmake-utils i FindQt4. Krótko mówiąc, manipulowanie CMAKE_BUILD_TYPE nie jest najlepszym pomysłem.
Dość oczywistym obejściem jest dodanie do ebuilda "append-flags -DQT_NO_DEBUG" i tak właśnie zrobię przy następnym commicie. Łatka zamieniająca w deklaracjach char* na const char* też swoją drogą nie szkodzi, ale trochę bruździ przy modularnych ebuildach, więc chyba wyleci
Edit: Widzę, że reavertm odkrył to samo co ja . Nie zauważyłem jego edita _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
Mroofka Guru
Joined: 25 Jan 2005 Posts: 369 Location: Poland
|
Posted: Fri Mar 06, 2009 11:01 pm Post subject: |
|
|
po ostatniej aktualizacji straciłem historie w kadu. Spotkał się ktoś z tym ?? Nie ma ani ikonek w kadu do podlgądu ani nie zapisuje do plików rozmów. Dodam że mówie aktualizacji kilku paczek z systemu, oczywiśćie przebudowałem wszystko odnośnie kadu, ale to nie pomogło.
Pozdrawiam
Mroofka _________________ "Make install not love"
registred linux User # 379143
"Ready for Anything; Prepared for everything; Surprised by Nothing !" |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Fri Mar 06, 2009 11:05 pm Post subject: |
|
|
Sprawdź czy masz załadowany moduł history. _________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
|