wrc1944 Posted April 8, 2003 Author Report Share Posted April 8, 2003 aru, I just downloaded all the rpm packages from a 9.1 mirror, and notice there are two more that I don't have listed in my MCC from the 3 cd set, therefore not installed. (I did have rpm-python installed, but I didn't put it on that list I first posted). Could this be the problem? :? They are: rpm-4.0.4-28mdk.i586.rpm rpm-helper.0.9-1mdk.noarch.rpm wrc1944 Quote Link to comment Share on other sites More sharing options...
aru Posted April 8, 2003 Report Share Posted April 8, 2003 rpm-4.0.4-28mdk.i586.rpmrpm-helper.0.9-1mdk.noarch.rpm Install them all, including those two. I wonder why wasnt already installed that rpm-4.0.4-28mdk.i586.rpm package, because that is THE package :shock: Quote Link to comment Share on other sites More sharing options...
wrc1944 Posted April 8, 2003 Author Report Share Posted April 8, 2003 OK- I'll install them all. I too wondered how rpm was working at all without that main package. I guess MCC could have a problem, and isn't reporting all the packages. Hmmm. just did a locate for rpm-4.0.4, and got the following- also rpm-helper is there in the output too, when I do a locate for it, so I guess MCC just is not showing them as installed. The mystery deepens. I looked at the macros file listed below, but I would need to realy study it to make sense out of it. [wrc1944@localhost wrc1944]$ locate rpm-4.0.4 /usr/lib/librpm-4.0.4.so /usr/share/doc/rpm-4.0.4 /usr/share/doc/rpm-4.0.4/spec /usr/share/doc/rpm-4.0.4/GROUPS /usr/share/doc/rpm-4.0.4/triggers /usr/share/doc/rpm-4.0.4/tsort /usr/share/doc/rpm-4.0.4/relocatable /usr/share/doc/rpm-4.0.4/dependencies /usr/share/doc/rpm-4.0.4/format /usr/share/doc/rpm-4.0.4/macros /usr/share/doc/rpm-4.0.4/rollbacks /usr/share/doc/rpm-4.0.4/buildroot /usr/share/doc/rpm-4.0.4/multiplebuilds /usr/share/doc/rpm-4.0.4/conditionalbuilds /usr/share/doc/rpm-4.0.4/RPM-GPG-KEY /usr/share/doc/rpm-4.0.4/hregions /usr/share/doc/rpm-4.0.4/CHANGES /usr/share/doc/rpm-4.0.4/builddependencies /usr/share/doc/rpm-4.0.4/queryformat /usr/share/doc/rpm-4.0.4/signatures /usr/share/doc/rpm-4.0.4/RPM-PGP-KEY [wrc1944@localhost wrc1944]$ Quote Link to comment Share on other sites More sharing options...
wrc1944 Posted April 9, 2003 Author Report Share Posted April 9, 2003 Well, I reinstalled all the rpm packages (the command didn't work, so I had to use --force) [wrc1944@localhost wrc1944]$ su Password: [root@localhost wrc1944]# cd /home/wrc1944/rpms/newrpm [root@localhost newrpm]# rpm -Uvh --upgradepkgs --upgradefiles *.rpm --upgradepkgs: unknown option [root@localhost newrpm]# rpm -Uvh --force *.rpm Preparing... ########################################### [100%] 1:rpm-helper ########################################### [ 10%] 2:rpm ########################################### [ 20%] 3:rpm-build ########################################### [ 30%] 4:rpm-devel ########################################### [ 40%] 5:rpm-python ########################################### [ 50%] 6:rpmlint ########################################### [ 60%] 7:rpm-rebuilder ########################################### [ 70%] 8:rpmstats ########################################### [ 80%] 9:rpmtools ########################################### [ 90%] 10:rpmdrake ########################################### [100%] [root@localhost newrpm]# Here are the same errors When I tried rpm rebuild as user (original, and new user) [wrc1944@localhost wrc1944]$ cd /home/wrc1944/srpms [wrc1944@localhost srpms]$ rpm --rebuild --target athlon gcc-3.2.2-3mdk.src.rpm Installing gcc-3.2.2-3mdk.src.rpm error: cannot write to %sourcedir /usr/src/RPM/SOURCES error: gcc-3.2.2-3mdk.src.rpm cannot be installed [wrc1944@localhost srpms]$ [rob44@localhost rob44]$ cd /home/rob44/srpms [rob44@localhost srpms]$ rpm --rebuild --target athlon gcc-3.2.2-3mdk.src.rpm Installing gcc-3.2.2-3mdk.src.rpm error: cannot create %sourcedir / /home/rob44/RPM/SOURCES error: gcc-3.2.2-3mdk.src.rpm cannot be installed [rob44@localhost srpms]$ ------------------------------------------------------------------- TAR COMPILING TESTS: I tried the cflags location in the created /etc/profile.d/cflags.sh file like you said, but it didn't work. I then put my cflags (same short format you said) at the end of my /etc/bashrc, and /etc/profile files, and at least it then picked up the flags, user or root, but the c compiler wouldn't work. The host and target still reverts to i686. Here's the error as root- the same error happens as user: [wrc1944@localhost wrc1944]$ su Password: [root@localhost wrc1944]# cd /home/wrc1944/tar/kaspaliste-0.93 [root@localhost kaspaliste-0.93]# ./configure creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for a BSD compatible install... /usr/bin/install -c checking for -p flag to install... yes checking whether build environment is sane... yes checking for mawk... mawk checking whether make sets ${MAKE}... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler (gcc athlon -O3 -march=athlon-xp -mcpu=athlon-xp -mmmx -msse -m3dnow -funroll-loops -fomit-frame-pointer -pipe -ffast-math -fforce-addr -fno-strength-reduce ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. [root@localhost kaspaliste-0.93]# I am using the multimedia kernel recompiled for athlon-xp, but since I can rebuild sprms as root fine I assume gcc 3.2.2 is OK, and I haven't suspected that could be a problem- am I wrong about that? Everything else in 9.1 works fone with that kernel. I really like Mandrake 9.1, but if I can't recompile tar source as root or user, or srpms as user with my optflags for athlon-xp, maybe I need to think about another distro. Nothing many experts have suggested has ever worked out for 8 months. My only success has been rebuilding srpms as root. wrc1944 Quote Link to comment Share on other sites More sharing options...
aru Posted April 9, 2003 Report Share Posted April 9, 2003 [rob44@localhost rob44]$ cd /home/rob44/srpms[rob44@localhost srpms]$ rpm --rebuild --target athlon gcc-3.2.2-3mdk.src.rpm Installing gcc-3.2.2-3mdk.src.rpm error: cannot create %sourcedir / /home/rob44/RPM/SOURCES error: gcc-3.2.2-3mdk.src.rpm cannot be installed [rob44@localhost srpms]$ Reinstall them all again with the right command (sorry for my above command, but I wrote it from memory and obviously I was wrong. It is replace and not upgrade) The way you ended up installing it is making rpm to read the old macros file because old config files aren't rewritten on upgrades (sorry, it was my fault). The right command is with replacefiles and replacepkgs: rpm -Uvh --replacepkgs --replacefiles *.rpm TAR COMPILING TESTS:I tried the cflags location in the created /etc/profile.d/cflags.sh file like you said, but it didn't work. You have to log out and login back (or source that file) in order to load the new setting into your system profile. ... but the c compiler wouldn't work. The host and target still reverts to i686. Here's the error as root- the same error happens as user: [wrc1944@localhost wrc1944]$ su Password: [root@localhost wrc1944]# cd /home/wrc1944/tar/kaspaliste-0.93 [root@localhost kaspaliste-0.93]# ./configure creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for a BSD compatible install... /usr/bin/install -c checking for -p flag to install... yes checking whether build environment is sane... yes checking for mawk... mawk checking whether make sets ${MAKE}... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler (gcc athlon -O3 -march=athlon-xp -mcpu=athlon-xp -mmmx -msse -m3dnow -funroll-loops -fomit-frame-pointer -pipe -ffast-math -fforce-addr -fno-strength-reduce ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. [root@localhost kaspaliste-0.93]# That could be for a trivial reason, no related to our current topic, you need to check the config.log file for real info about that error. I am using the multimedia kernel recompiled for athlon-xp, but since I can rebuild sprms as root fine I assume gcc 3.2.2 is OK, and I haven't suspected that could be a problem- am I wrong about that? Everything else in 9.1 works fone with that kernel. I really like Mandrake 9.1, but if I can't recompile tar source as root or user, or srpms as user with my optflags for athlon-xp, maybe I need to think about another distro. Nothing many experts have suggested has ever worked out for 8 months. My only success has been rebuilding srpms as root. wrc1944 hehehe :) Have a litte more of patience. You'll soon see the results of your efforts Quote Link to comment Share on other sites More sharing options...
wrc1944 Posted April 9, 2003 Author Report Share Posted April 9, 2003 :D aru, I've apparently stumbled on the rebuilding srpms as user solution! (You were correct about the macros being messed up) In the ~./.rpmrc file CyberCFO sent me for athlon optimized rebuilds (I think I posted it earlier), which is essentially the regular rpmrc file from /usr/lib/rpm/rpmrc with all the irrelevant stuff removed, at the very bottom is a section for macros. (I COMMENTED OUT that section, saved, and the result speaks for itself. I got some warnings about not finding the global config files during various test suite runs while rebuilding, but it didn't seem to affect the result). Now to solve the cflags and tar source build mystery. My thinking is that rpm --rebuild as user first checks the .rpmrc file, and finding a macros section there (apparently the same as in the /usr/lib/rpm/rpmrc file), doesn't check the .rpmmacros file in /home/wrc1944, and thus doesn't use the home tree top directory for rebuilding. When I comment out those macros, it then uses the little .rpmmacros file I created in /home/ wrc1944. Is that correct? If so, I have really learned a lot from all this! Thanks for hanging in there with me! :wink: Here are the results (top and bottom of the build output): -------------------------------------------------------- [wrc1944@localhost wrc1944]$ cd /home/wrc1944/srpms [wrc1944@localhost srpms]$ rpm --rebuild --target athlon gcc-3.2.2-3mdk.src.rpm Installing gcc-3.2.2-3mdk.src.rpm Building target platforms: athlon Building for target athlon Executing(%prep): /bin/sh -e /home/wrc1944/RPM/tmp/rpm-tmp.48654 + umask 022 + cd /home/wrc1944/RPM/BUILD + cd /home/wrc1944/RPM/BUILD THEN: ------------------------ Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libgcc1-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-c++-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libstdc++5-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libstdc++5-devel-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libstdc++5-static-devel-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-objc-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libobjc1-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-g77-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libf2c0-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-gnat-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libgnat1-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-java-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcj-tools-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libgcj3-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libgcj3-devel-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/libgcj3-static-devel-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-cpp-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-colorgcc-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-doc-3.2.2-3mdk.athlon.rpm Wrote: /home/wrc1944/RPM/RPMS/athlon/gcc-doc-pdf-3.2.2-3mdk.athlon.rpm Executing(%clean): /bin/sh -e /home/wrc1944/RPM/tmp/rpm-tmp.61185 + umask 022 + cd /home/wrc1944/RPM/BUILD + cd gcc-3.2.2 + exit 0 Executing(--clean): /bin/sh -e /home/wrc1944/RPM/tmp/rpm-tmp.61185 + umask 022 + cd /home/wrc1944/RPM/BUILD + rm -rf gcc-3.2.2 + exit 0 [wrc1944@localhost srpms]$ wrc1944 Quote Link to comment Share on other sites More sharing options...
aru Posted April 9, 2003 Report Share Posted April 9, 2003 Congratulations! and yes, we both have learn a lot :D That is the best reason for not having an user's .rpmrc file. Thus, the only values overriden in the proccess are just those written the user's .rpmmacros, and the rest, as the process uses the standard rpmrc and macros files, follows the standard, allowing me to use my environment CFLAGS stuff w/o any problems. Quote Link to comment Share on other sites More sharing options...
DragonMage Posted April 10, 2003 Report Share Posted April 10, 2003 Let me hijack this thread a bit just to ask a question (don't worry it's still about the kernel-mutlimedia). Since kernel-multimedia is originally in the contrib section instead of main section, do you think it still have the ptrace bug that plagued all kernel 2.4.x? I know the official 9.1 kernel does have the fix, but does the kernel-multimedia have it? Quote Link to comment Share on other sites More sharing options...
aru Posted April 10, 2003 Report Share Posted April 10, 2003 You can check both its date and its changelog to see if it has been fixed. I'm almost sure it is fixed, since the problem is widely known and the patch can be easily applied. Quote Link to comment Share on other sites More sharing options...
tvlad Posted April 19, 2003 Report Share Posted April 19, 2003 Could someone post the conclusions of this lengthy topic ???? Because it is interesting, but in the end it gets somewhat confusing. Quote Link to comment Share on other sites More sharing options...
aru Posted April 21, 2003 Report Share Posted April 21, 2003 Could someone post the conclusions of this lengthy topic ????Because it is interesting, but in the end it gets somewhat confusing. Conclusions about which part of it? because this thread covers a broad set of topics, and most of its last part is about solving a problem with a buggy config file. If you mean about the CFLAGS stuff, I'm thinking in writting an article about it for the FAQ forum. Quote Link to comment Share on other sites More sharing options...
DragonMage Posted April 21, 2003 Report Share Posted April 21, 2003 How about making a tutorial version of how to recompile multimedia-kernel to your athlon or something.. Making it a more easy to follow version and put it in tips/tricks.. Quote Link to comment Share on other sites More sharing options...
aru Posted April 21, 2003 Report Share Posted April 21, 2003 Well that would be a job for someone that has an athlon, wouldn't be? Quote Link to comment Share on other sites More sharing options...
DragonMage Posted April 21, 2003 Report Share Posted April 21, 2003 Well that would be a job for someone that has an athlon, wouldn't be? Touche.. :) My problem is that I cannot follow the discussion in this thread, so I cannot write down the tutorial.. Anyone else? Quote Link to comment Share on other sites More sharing options...
wrc1944 Posted April 22, 2003 Author Report Share Posted April 22, 2003 As requested by DragonMage, I put a brief summary in the tips forum. Hope it helps. http://www.mandrakeusers.org/viewtopic.php?t=4655 Again, thanks to aru for hanging in there with me and helping me figure out how to rebuild as user. wrc1944 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.