svn commit: trunk/buildroot/toolchain/gcc
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237
Log:
Allow library copy to fail
Modified:
trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk
Changeset:
Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk
===================================================================
buildroot/toolchain/gcc/gcc-uclibc-3.x.mk +2 -2
@@ -332,13 +332,13 @@ ifeq ($(BR2_GCC_SHARED_LIBGCC),y) # These are in /lib, so... rm -rf $(TARGET_DIR)/usr/lib/libgcc_s*.so* - cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* \ + -cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* \ $(TARGET_DIR)/lib/ -strip --strip-unneeded $(TARGET_DIR)/lib/libgcc_s* endif ifeq ($(BR2_INSTALL_LIBSTDCPP),y) ifeq ($(BR2_GCC_SHARED_LIBGCC),y) - cp -dpf $(STAGING_DIR)/lib/libstdc++.so* $(TARGET_DIR)/usr/lib/ + -cp -dpf $(STAGING_DIR)/lib/libstdc++.so* $(TARGET_DIR)/usr/lib/ -strip --strip-unneeded $(TARGET_DIR)/usr/lib/libstdc++.so* endif endif
Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk
===================================================================
buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +2 -2
@@ -345,12 +345,12 @@ ifeq ($(BR2_GCC_SHARED_LIBGCC),y) # These are in /lib, so... rm -rf $(TARGET_DIR)/usr/lib/libgcc_s*.so* - cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* \ + -cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* \ $(TARGET_DIR)/lib/ endif ifeq ($(BR2_INSTALL_LIBSTDCPP),y) ifeq ($(BR2_GCC_SHARED_LIBGCC),y) - cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.so* \ + -cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.so* \ $(TARGET_DIR)/usr/lib/ endif endif
Quoted 6 lines · ulf at uclibc.org
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237Log:
Allow library copy to fail
As it's not obvious to me, may I ask why?
Why not making sure it doesn't fail, instead?
Cheers,
Signature · 1 line
Cristian
l?r 2007-10-13 klockan 10:49 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 11 lines · ulf at uclibc.org
Quoted 7 lines
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237Log:
Allow library copy to failAs it's not obvious to me, may I ask why?
Why not making sure it doesn't fail, instead?
That is the long term approach, but I have no control over that part.
If copying fails, then libgcc.a is available, and the end application can be linked with this instead It is better than aborting the build.
Quoted 3 lines
Cheers,
Signature · 2 lines
Best Regards Ulf Samuelsson
Quoted 7 lines · Ulf Samuelsson
l?r 2007-10-13 klockan 10:49 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 6 lines · ulf at uclibc.org
Quoted 5 lines
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Log:
Allow library copy to failAs it's not obvious to me, may I ask why?
Why not making sure it doesn't fail, instead?That is the long term approach, but I have no control over that part.
Who has the "control over that part"?
Quoted 1 line
If copying fails,
Why should it?
Have you seen it failing?
Can you reproduce that?
Is there a use case you can share with us?
Quoted 2 lines
then libgcc.a is available,
and the end application can be linked with this instead
I see.
Quoted 1 line
It is better than aborting the build.
But doesn't cure the disease :( In other words, you prefer aspirine :)
Cheers,
Signature · 1 line
Cristian
Quoted 17 lines · Cristian Ionescu-Idbohrn
Quoted 7 lines · Ulf Samuelsson
l?r 2007-10-13 klockan 10:49 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 6 lines · ulf at uclibc.org
Quoted 5 lines
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Log:
Allow library copy to failAs it's not obvious to me, may I ask why?
Why not making sure it doesn't fail, instead?That is the long term approach, but I have no control over that part.
Quoted 7 lines
Who has the "control over that part"?
Quoted 1 line
If copying fails,
Why should it?
Have you seen it failing?
Can you reproduce that?
It can be seen with x86_64 as target; see archives for my suggestion on how to fix this properly instead of once again papering over a bug in an inappropriate way.
Quoted 10 lines
Is there a use case you can share with us?
Quoted 2 lines
then libgcc.a is available,
and the end application can be linked with this insteadI see.
Quoted 1 line
It is better than aborting the build.
But doesn't cure the disease :(
It's plain wrong i would have said.
Quoted 1 line
In other words, you prefer aspirine :)
Quoted 10 lines · Ulf Samuelsson
l?r 2007-10-13 klockan 10:49 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 9 lines · ulf at uclibc.org
Quoted 7 lines
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237Log:
Allow library copy to fail
Quoted 6 lines
Quoted 2 lines
As it's not obvious to me, may I ask why?
Why not making sure it doesn't fail, instead?That is the long term approach, but I have no control over that part.
If copying fails, then libgcc.a is available,
No, that's wrong. See previous discussion in the archives.
Quoted 2 lines
and the end application can be linked with this instead It is better than aborting the build.
In my little world wrong behaviour is not a proper fix for a bug. YMMV
l?r 2007-10-13 klockan 12:19 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 12 lines · Ulf Samuelsson
Quoted 11 lines
l?r 2007-10-13 klockan 10:49 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 9 lines · ulf at uclibc.org
Quoted 7 lines
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237Log:
Allow library copy to fail
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
As it's not obvious to me, may I ask why?
Why not making sure it doesn't fail, instead?That is the long term approach, but I have no control over that part.
Who has the "control over that part"?
The guys at Atmel responsible for supporting the AVR32 gcc port... They have started to take an interest, but I have no clue when a fix will appear.
I do not have the bandwidth to dig into this.
Quoted 5 lines
Quoted 1 line
If copying fails,
Why should it?
Have you seen it failing?
Can you reproduce that?
Yes, this is the cause of the failure of the AVR32 tool build. It built during the summer, and then suddenly stopped building.
Quoted 2 lines
Is there a use case you can share with us?
Take an older snapshot and try to build AVR32 toolchain. The libgcc_s.so.1 does not get built.
Quoted 9 lines
Quoted 2 lines
then libgcc.a is available,
and the end application can be linked with this insteadI see.
Quoted 1 line
It is better than aborting the build.
But doesn't cure the disease :(
In other words, you prefer aspirine :)
If this ensures that I can run the code on the AVR32 then it is good enough for me at this point. Obviously it is better to ensure that the AVR32 toolchain build generates a shared library, and anyone complaining are open to develop a patch which fixes the real problem instead of the symptom.
Quoted 3 lines
Cheers,
Signature · 3 lines
Best Regards Ulf Samuelsson Atmel Nordic AB
Quoted 16 lines · Ulf Samuelsson
l?r 2007-10-13 klockan 12:19 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 15 lines · Ulf Samuelsson
Quoted 14 lines
l?r 2007-10-13 klockan 10:49 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 11 lines · ulf at uclibc.org
Quoted 7 lines
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237Log:
Allow library copy to failAs it's not obvious to me, may I ask why?
Why not making sure it doesn't fail, instead?
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
That is the long term approach, but I have no control over that part.
Who has the "control over that part"?
The guys at Atmel responsible for supporting the AVR32 gcc port... They have started to take an interest, but I have no clue when a fix will appear.
Sorry if I missed something, but what's the involvement the guys at Atmel have in this project? Do they have some sort of maintenance responsabilities in this project? Do they sponsor this project in some way? Are you working for the guys at Atmel?
Quoted 1 line
I do not have the bandwidth to dig into this.
I'm realy sorry for you (and for the rest of us using other archs), but the way you treat the buildroot project is not really acceptable. If you don't have the bandwidth to do things right, maybe the guys at Atmel can buy you some more bandwidth so you can do dig and make proper changes that don't break other archs.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
If copying fails,
Why should it?
Have you seen it failing?
Can you reproduce that?Yes, this is the cause of the failure of the AVR32 tool build.
But doesn't that mean that the AVR32 tool is broken? What am I missing here?
Quoted 1 line
It built during the summer, and then suddenly stopped building.
And that means that all other archs that _do build_ must be broken? Sorry, doesn't make much sense to me :(
Quoted 5 lines
Quoted 2 lines
Is there a use case you can share with us?
Take an older snapshot and try to build AVR32 toolchain. The libgcc_s.so.1 does not get built.
Not interested to build any AVR32 toolchain myself. I'm quite happy if the other toolchains do build.
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
then libgcc.a is available,
and the end application can be linked with this insteadI see.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
It is better than aborting the build.
But doesn't cure the disease :(
In other words, you prefer aspirine :)If this ensures that I can run the code on the AVR32 then it is good enough for me at this point.
What about the rest of us?
Quoted 2 lines
Obviously it is better to ensure that the AVR32 toolchain build generates a shared library,
Obviously it is better to ensure that _all_ toolchains build, I'd say.
Quoted 3 lines
and anyone complaining
are open to develop a patch which fixes the real problem instead of the symptom.
So, all other toolchains that occasionally build (until you you break them) must be broken, and that's not your problem?
All you talk about is AVR32.
You seem to only care about AVR32.
You couldn't care less if you break all other archs with your patches? Is this fare play?
Cheers,
Signature · 1 line
Cristian
l?r 2007-10-13 klockan 21:58 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 22 lines · Ulf Samuelsson
Quoted 21 lines
l?r 2007-10-13 klockan 12:19 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 19 lines · Ulf Samuelsson
Quoted 8 lines
l?r 2007-10-13 klockan 10:49 +0200 skrev Cristian Ionescu-Idbohrn:
Quoted 6 lines · ulf at uclibc.org
Quoted 5 lines
Author: ulf
Date: 2007-10-12 14:01:41 -0700 (Fri, 12 Oct 2007) New Revision: 20237Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Log:
Allow library copy to failAs it's not obvious to me, may I ask why?
Why not making sure it doesn't fail, instead?That is the long term approach, but I have no control over that part.
Who has the "control over that part"?
Quoted 8 lines
Quoted 3 lines
The guys at Atmel responsible for supporting the AVR32 gcc port... They have started to take an interest, but I have no clue when a fix will appear.
Sorry if I missed something, but what's the involvement the guys at Atmel have in this project? Do they have some sort of maintenance responsabilities in this project? Do they sponsor this project in some way? Are you working for the guys at Atmel?
The guys at Atmel do the gcc ports for AVR32.
I am trying to make it easier for other people to build it.
Quoted 8 lines
Quoted 1 line
I do not have the bandwidth to dig into this.
I'm realy sorry for you (and for the rest of us using other archs), but the way you treat the buildroot project is not really acceptable.
If you don't have the bandwidth to do things right, maybe the guys at Atmel can buy you some more bandwidth so you can do dig and make proper changes that don't break other archs.
This change does not break any other arch.
It used to be "-cp", and the change to "cp" broke the AVR32 arch.
Quoted 10 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
If copying fails,
Why should it?
Have you seen it failing?
Can you reproduce that?Yes, this is the cause of the failure of the AVR32 tool build.
But doesn't that mean that the AVR32 tool is broken? What am I missing here?
Yes and No.
By reverting the patch, which broke the AVR32 build, it is possible to create an AVR32 gcc compiler which uses an non-shared libgcc.a to create a uClibc based root gfs.
Quoted 5 lines
Quoted 1 line
It built during the summer, and then suddenly stopped building.
And that means that all other archs that
_dobuild_must be broken? Sorry, doesn't make much sense to me :(
Can you explain why all other archs are broken?
If the build works for all other archs, then the cp will work.
Quoted 17 lines
Quoted 5 lines
Quoted 2 lines
Is there a use case you can share with us?
Take an older snapshot and try to build AVR32 toolchain. The libgcc_s.so.1 does not get built.
Not interested to build any AVR32 toolchain myself. I'm quite happy if the other toolchains do build.
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
then libgcc.a is available,
and the end application can be linked with this insteadI see.
Quoted 1 line
It is better than aborting the build.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
But doesn't cure the disease :(
In other words, you prefer aspirine :)If this ensures that I can run the code on the AVR32 then it is good enough for me at this point.
What about the rest of us?
You have not explained in what way you suffer.
Quoted 9 lines
Quoted 2 lines
Obviously it is better to ensure that the AVR32 toolchain build generates a shared library,
Obviously it is better to ensure that _all_ toolchains build, I'd say.
Quoted 3 lines
and anyone complaining
are open to develop a patch which fixes the real problem instead of the symptom.
Quoted 7 lines
So, all other toolchains that occasionally build (until you you break them) must be broken, and that's not your problem?
All you talk about is AVR32.
You seem to only care about AVR32.
You couldn't care less if you break all other archs with your patches? Is this fare play?
No, I care about other archs as well, but I do not belive that they are broken by the patch.
I regularily build ARM and i386 as well.
Can you show why this breaks anything?
Remember: It used to be this way until this summer.
Quoted 3 lines
Cheers,
Signature · 2 lines
Best Regards Ulf Samuelsson
Quoted 1 line · Ulf Samuelsson
The guys at Atmel do the gcc ports for AVR32.
I see.
Quoted 1 line
I am trying to make it easier for other people to build it.
That's nice of you.
Quoted 1 line
This change does not break any other arch.
Fair enough. You may be right.
Quoted 1 line
It used to be "-cp", and the change to "cp" broke the AVR32 arch.
Alright. Why don't you then make that '-cp' conditional on AVR32 and leave it 'cp' for all other? In a way that would help identify oddities with AVR32 everywhere. One size fits all is quite hard to find.
Quoted 4 lines
Quoted 2 lines
But doesn't that mean that the AVR32 tool is broken? What am I missing here?
Yes and No.
I was expecting that ;)
Quoted 3 lines
By reverting the patch, which broke the AVR32 build, it is possible to create an AVR32 gcc compiler which uses an non-shared libgcc.a to create a uClibc based root gfs.
Thanks for the explanation.
Quoted 1 line
Can you explain why all other archs are broken?
I'm afraid I can't. And I won't bother trying to. It may be unfair to blame all buildroot brokenness on you. Still, buildroot is broken in various places. One thing gets fixed and two other break. That's my experience of the passed weeks :(
Quoted 1 line
If the build works for all other archs, then the cp will work.
Yes, I agree. 'cp' shouldn't be a problem in this context. Still, if for some misterious reason it doesn't get built, '-cp' doesn't break the build making us aware of that and things break later in other places? Trouble shooting that scenario will be more painful, IMO.
Quoted 1 line
You have not explained in what way you suffer.
Thanks, I got better after getting out the previous post ;)
I'll try to explain. Every time I check out a new tree, it takes one or several days to get it to build. And when I think I'm done (save some patches not yet accepted upstream), check out a new tree, apply my patches, I start seeing things breaking again in various ways and I have to start all over again. And that's _very_ frustrating!
Happened again today :(
Quoted 2 lines
No, I care about other archs as well, but I do not belive that they are broken by the patch.
Good to know.
Quoted 1 line
I regularily build ARM and i386 as well.
Care to share your i386 .config with the rest of us?
Quoted 2 lines
Can you show why this breaks anything?
Remember: It used to be this way until this summer.
You mean the 'cp' thing? See above.
Can we try getting some stability in this project? Can we get a 'make allconfig' that just builds? Sooner rather than later?
ATM, I see lockfile-progs (patch available in bugtrack) and microperl won't build.
Please find attached some patches (various fixes).
Cheers,
Signature · 8 lines
Cristian -------------- next part -------------- A non-text attachment was scrubbed... Name: br-2007-10-14.submit.patch Type: text/x-diff Size: 13136 bytes Desc: Url : http://busybox.net/lists/buildroot/attachments/20071014/a3b62cd5/attachment.bin
Quoted 5 lines
Can we try getting some stability in this project? Can we get a 'make allconfig' that just builds? Sooner rather than later?
[Buildroot] Some devices are not created in the ext2 filesystem.
Hi:
I need some device nodes for my proprietary driver and I have added appropriate lines to the end of target/device/Atmel/root/device_table.txt table I'm using:
# AKA driver/dev/mcfp-0 c 640 0 0 254 0 0 0
-/dev/mcfp-1 c 640 0 0 254 1 0 0
-
I see that correspondent files are indeed created in the root filesystem tree:
[leonid at jaipur buildroot]$ ls -al root/dev/mc* -rw-r----- 1 root root 0 2007-10-13 21:56 root/dev/mcfp-0 -rw-r----- 1 root root 0 2007-10-13 21:56 root/dev/mcfp-1
However when I load my ext2 root filesystem, I don't see these device nodes in /dev directory. What is wrong?
Thanks,
Leonid.
[Buildroot] Some devices are not created in the ext2 filesystem.
In reply to Ivan Kuten----- Original Message -----
From: "Ivan Kuten" <[email protected]>
To: "Leonid" <[email protected]>
Cc: <[email protected]>
Sent: Sunday, October 14, 2007 3:43 PM
Subject: Re: [Buildroot] Some devices are not created in the ext2 filesystem.
Quoted 7 lines
Quoted 7 lines
I see that correspondent files are indeed created in the root filesystem tree:
[leonid at jaipur buildroot]$ ls -al root/dev/mc*
(quoted diff) +0
-2-rw-r----- 1 root root 0 2007-10-13 21:56 root/dev/mcfp-0 -rw-r----- 1 root root 0 2007-10-13 21:56 root/dev/mcfp-1
Quoted 6 lines
Quoted 3 lines
However when I load my ext2 root filesystem, I don't see these device nodes in /dev directory. What is wrong?
Check that you are not using udev, because udev is mounted over /dev thus hiding your entries.
Listed files are regular files, not device nodes! Use devicetable.txt for creating device nodes.
BR
Assen
Quoted 13 lines
BR,
Ivan--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
[Buildroot] Some devices are not created in the ext2 filesystem.
In reply to LeonidQuoted 10 lines
I see that correspondent files are indeed created in the root filesystem tree:
[leonid at jaipur buildroot]$ ls -al root/dev/mc*
(quoted diff) +0
-2-rw-r----- 1 root root 0 2007-10-13 21:56 root/dev/mcfp-0 -rw-r----- 1 root root 0 2007-10-13 21:56 root/dev/mcfp-1However when I load my ext2 root filesystem, I don't see these device nodes in /dev directory. What is wrong?
Check that you are not using udev, because udev is mounted over /dev thus hiding your entries.
BR,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
[Buildroot] Some devices are not created in the ext2 filesystem.
In reply to Ivan Kuten----- Original Message -----
From: "Ivan Kuten" <[email protected]>
To: <[email protected]>
Cc: "Leonid" <[email protected]>; <[email protected]>
Sent: Sunday, October 14, 2007 7:59 PM
Subject: Re: [Buildroot] Some devices are not created in the ext2 filesystem.
Quoted 9 lines
Quoted 7 lines
Listed files are regular files, not device nodes! Use devicetable.txt for creating device nodes.
BR
AssenAssen, but Leonid did use device_table.txt , see his previous post:
OK, sorry, my mistake.
Quoted 13 lines
Quoted 4 lines
I need some device nodes for my proprietary driver and I have added appropriate lines to the end of
target/device/Atmel/root/device_table.txttable I'm using:BR,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
[Buildroot] Some devices are not created in the ext2 filesystem.
In reply to softa at ttechgroup.comQuoted 7 lines
Listed files are regular files, not device nodes! Use devicetable.txt for creating device nodes.
BR
Assen
Assen, but Leonid did use device_table.txt , see his previous post:
Quoted 3 lines
I need some device nodes for my proprietary driver and I have added appropriate lines to the end of
target/device/Atmel/root/device_table.txttable I'm using:
BR,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
[Buildroot] Some devices are not created in the ext2 filesystem.
In reply to Ivan KutenHi, Ivan:
Your guess was right: I have learnt that udev is used in my build indeed and my (proprietary) driver doesn't bother to register its nodes with sysfs filesystem. Now everything is clear thank you.
For the time being (I didn't want to change code just yet) I added mknod commands to rcS file, so necessary nodes are created upon restart.
I also see some error from udev:
Populating /dev using udev: cannot open /dev/null
done
/dev/null is certainly present:
# ls -al /dev/null crw-rw---- 1 root root 1, 3 Dec 31 17:00 /dev/null
What this error is about?
Thanks,
Leonid.
-----Original Message-----
From: [email protected] [mailto:buildroot-bounces at uclibc.org] On Behalf Of Ivan Kuten
Sent: Sunday, October 14, 2007 5:43 AM
To: Leonid
Cc: buildroot at uclibc.org
Subject: Re: [Buildroot] Some devices are not created in the ext2 filesystem.
Quoted 1 line
I see that correspondent files are indeed created in the root
filesystem
Quoted 9 lines
tree:
[leonid at jaipur buildroot]$ ls -al root/dev/mc*
(quoted diff) +0
-2-rw-r----- 1 root root 0 2007-10-13 21:56 root/dev/mcfp-0 -rw-r----- 1 root root 0 2007-10-13 21:56 root/dev/mcfp-1However when I load my ext2 root filesystem, I don't see these device nodes in /dev directory. What is wrong?
Check that you are not using udev, because udev is mounted over /dev thus hiding your entries.
BR,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
[Buildroot] Some devices are not created in the ext2 filesystem.
Quoted 5 lines
I also see some error from udev:
Populating /dev using udev: cannot open
/dev/null
done
Quoted 7 lines
/dev/nullis certainly present:# ls -al /dev/null crw-rw---- 1 root root 1, 3 Dec 31 17:00 /dev/nullWhat this error is about?
I think it can not just open /dev/null. If udev is run as udev user,
crw-rw---- 1 root root 1, 3 Dec 31 17:00 /dev/null
/dev/null could not be opened because rw-rw--- but not rw-rw-rw
BR,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
Quoted 6 lines
Quoted 1 line
The guys at Atmel do the gcc ports for AVR32.
I see.
Quoted 1 line
I am trying to make it easier for other people to build it.
That's nice of you.
Quoted 9 lines
Quoted 1 line
This change does not break any other arch.
Fair enough. You may be right.
Quoted 1 line
It used to be "-cp", and the change to "cp" broke the AVR32 arch.
Alright. Why don't you then make that '-cp' conditional on AVR32 and leave it 'cp' for all other? In a way that would help identify oddities with AVR32 everywhere. One size fits all is quite hard to find.
Some people are against having architecture specific extensions in the common files. I believe it is better to continue the build, and then do a verify afterwards. If you read archives, a lot of people consider the libgcc_s to be a PITA.
Quoted 7 lines
Quoted 1 line
Can you explain why all other archs are broken?
I'm afraid I can't. And I won't bother trying to. It may be unfair to blame all buildroot brokenness on you. Still, buildroot is broken in various places. One thing gets fixed and two other break. That's my experience of the passed weeks :(
The "-cp" -> "cp" patch has caused me several hundred hours of extra work, and this can all be blamed on Bernhard. Any problems caused by patches trying to fix the broken AVR32 can therefore indirectly be blamed on Bernhard as well.
In practice, I do *not* want to blame Bernhard for *that* patch, since it very difficult to do a full test of buildroot using all parameters.
However, Bernhard has a policy which is to always use the latest stuff, which makes IMHO Buildroot, nothing more than a (nice) toy.
You reported a build problem with JPEG and think that creating a directory in $(STAGING_DIR) during the jpeg build
was the problem which caused the toolchain build to fail. You probably only need to reflect on this for a millisecond or so to realize how absurd that is...
I rather think this is a result of Bernhards patch to deprecate older versions of Binutils, automatically changing an existing *working* ".config" into something which might, or might not work after a "make menuconfig".
Quoted 11 lines
Quoted 1 line
If the build works for all other archs, then the cp will work.
Yes, I agree. 'cp' shouldn't be a problem in this context. Still, if for some misterious reason it doesn't get built, '-cp' doesn't break the build making us aware of that and things break later in other places? Trouble shooting that scenario will be more painful, IMO.
Quoted 1 line
You have not explained in what way you suffer.
Thanks, I got better after getting out the previous post ;)
Quoted 8 lines
I'll try to explain. Every time I check out a new tree, it takes one or several days to get it to build. And when I think I'm done (save some patches not yet accepted upstream), check out a new tree, apply my patches, I start seeing things breaking again in various ways and I have to start all over again. And that's _very_ frustrating!
Happened again today :(
Build a toolchain that works, then use an external toolchain. Saves you a lot of time...
Best Regards
Ulf Samuelsson
[Buildroot] Some devices are not created in the ext2 filesystem.
In reply to Ivan KutenHi, Ivan:
As I see also on other systems, /dev/null is normally created with 660 permission like many other devices (/dev/console for example). I thought that buildroot runs udev with correct user to be able to rewrite all devices in /dev without trouble.
So, I suppose, my question is this: is it some intrinsic buildroot udev-related bug or something wrong in my own system which results in such error? What would you recommend to do?
Thanks,
Leonid.
-----Original Message-----
From: [email protected] [mailto:buildroot-bounces at uclibc.org] On Behalf Of Ivan Kuten
Sent: Sunday, October 14, 2007 2:33 PM
To: Leonid
Cc: buildroot at uclibc.org
Subject: Re: [Buildroot] Some devices are not created in the ext2 filesystem.
Quoted 5 lines
I also see some error from udev:
Populating /dev using udev: cannot open
/dev/null
done
Quoted 7 lines
/dev/nullis certainly present:# ls -al /dev/null crw-rw---- 1 root root 1, 3 Dec 31 17:00 /dev/nullWhat this error is about?
I think it can not just open /dev/null. If udev is run as udev user,
crw-rw---- 1 root root 1, 3 Dec 31 17:00 /dev/null
/dev/null could not be opened because rw-rw--- but not rw-rw-rw
BR,
Ivan
--------------------------------
Embedded Linux engineer,
Promwad Company: http://www.promwad.com/
Homepage : http://www.ivankuten.com/
--------------------------------
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
Quoted 2 lines · Ulf Samuelsson
Some people are against having architecture specific extensions in the common files.
Alright. I see a point in that. But I still think, as I said before:
"one size doesn't fit everybody". If incompatibilities arise, one good thing is to pin them down, and make them visible. Is there another way?
Quoted 2 lines
I believe it is better to continue the build, and then do a verify afterwards.
I don't. Side effects can lead one on to treacherous side tracks and troubleshooting would be more painful.
Quoted 2 lines
If you read archives, a lot of people consider the
libgcc_sto be a PITA.
But of course. Anything that is not dead simple is PITA.
Quoted 2 lines
The "-cp" -> "cp" patch has caused me several hundred hours of extra work,
Really? I'm not arguing, but I find it difficult to believe.
Quoted 3 lines
and this can all be blamed on Bernhard.
Any problems caused by patches trying to fix the broken AVR32 can therefore indirectly be blamed on Bernhard as well.
Cool down now. I do believe that one of the reasons why this project is not moving at faster pace is that the magic between you and Bernhard is just not working. And that's really sad. That said, things won't get better if the only noticable thing is you two disagreeing.
Quoted 2 lines
In practice, I do *not* want to blame Bernhard for *that* patch, since it very difficult to do a full test of buildroot using all parameters.
True.
Quoted 2 lines
However, Bernhard has a policy which is to always use the latest stuff, which makes IMHO Buildroot, nothing more than a (nice) toy.
I don't see very much wrong with that, as long as you keep things tight. Branching was suggested more than once. What do you say? More work? Yes. More satisfied "customers"? Oh, yes. Me for one. I would rather use something that is controllable (mind you, not top of the notch) than something that is constantly broken.
Quoted 3 lines
You reported a build problem with JPEG and think that creating a directory in $(STAGING_DIR) during the jpeg build was the problem which caused the toolchain build to fail.
Your words, not mine. I'm just an occasional visitor ;)
Quoted 2 lines
You probably only need to reflect on this for a millisecond or so to realize how absurd that is...
I have to admit, I'm not that sharp ;)
Quoted 4 lines
I rather think this is a result of Bernhards patch to deprecate older versions of Binutils, automatically changing an existing *working* ".config" into something which might, or might not work after a "make menuconfig".
There you go again. Don't waste your time throwing dirt on one another! Work together instead! Learn from eachother. Everyone will benefit. Life is short and then you die, both of you and your "customers".
Quoted 2 lines
Build a toolchain that works, then use an external toolchain. Saves you a lot of time...
Yes. Any FAQ on that?
But still aspirine, workaround, substitute for the real thing :( Thanks for the advice, anyway.
You two you kan keep disagreing in the back stage. But don't do it up front. Work together instead. It's much better for the "business".
Cheers,
Signature · 1 line
Cristian
Quoted 10 lines
Quoted 5 lines
I rather think this is a result of Bernhards patch to deprecate older versions of Binutils, automatically changing an existing *working* ".config" into something which might, or might not work after a "make menuconfig".
There you go again. Don't waste your time throwing dirt on one another! Work together instead! Learn from eachother. Everyone will benefit. Life is short and then you die, both of you and your "customers".
It is not "throwing dirt", it is advice on where to look for your JPEG build problems.
I.E: Try an older version of binutils...
Quoted 5 lines
Quoted 2 lines
Build a toolchain that works, then use an external toolchain. Saves you a lot of time...
Yes. Any FAQ on that?
But still aspirine, workaround, substitute for the real thing :(
It takes 1-2 hours to build a toolchain.
It is not neccessary to repeat the process everytime you want to rebuild buildroot.
Look in the docs directory..
Best Regards
Ulf Samuelsson
Quoted 8 lines · Cristian Ionescu-Idbohrn
Quoted 2 lines
However, Bernhard has a policy which is to always use the latest stuff, which makes IMHO Buildroot, nothing more than a (nice) toy.
I don't see very much wrong with that, as long as you keep things tight. Branching was suggested more than once. What do you say? More work? Yes. More satisfied "customers"? Oh, yes. Me for one. I would rather use something that is controllable (mind you, not top of the notch) than something that is constantly broken.
Well top notch would be always pulling the upstream repos. I don't remember to have done this even a single time in buildroot. There is a subtile difference between these three:
- top notch
- current, stable release, usually containing the best-fit bugfixes
- outdated packages with known bugs (sometimes all over the place).
I'm sure there is endless discussion archived out there about the pros and cons of each of them, so i'll spare my keyboard interrupts and your time.
link: www.avrfreaks.net
----- Original Message -----
From: "Bernhard Fischer" <[email protected]>
To: <[email protected]>
Sent: Monday, October 15, 2007 8:55 PM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/toolchain/gcc
Quoted 18 lines · Cristian Ionescu-Idbohrn
Quoted 9 lines
Quoted 3 lines
However, Bernhard has a policy which is to always use the latest stuff, which makes IMHO Buildroot, nothing more than a (nice) toy.
I don't see very much wrong with that, as long as you keep things tight. Branching was suggested more than once. What do you say? More work? Yes. More satisfied "customers"? Oh, yes. Me for one. I would rather use something that is controllable (mind you, not top of the notch) than something that is constantly broken.
Well top notch would be always pulling the upstream repos. I don't remember to have done this even a single time in buildroot. There is a subtile difference between these three:
- top notch
- current, stable release, usually containing the best-fit bugfixes
- outdated packages with known bugs (sometimes all over the place).
Quoted 3 lines
I'm sure there is endless discussion archived out there about the pros and cons of each of them, so i'll spare my keyboard interrupts and your time.
I think the most important thing is to allow the user of buildroot to make his/her own decision on strategy.
It should be possible to use a specific version of a package but also to use the latests experimental version for other packages possbily with own developed patches. (which hopefully are submitted later)
For this to work, there is a need for a stable source tarball server which can be used, if the main location disappears.
I rather see multiple makefile fragments, than multiple trunks.
instead of
include package/*/*.mk
we could have
include project/.distribution # Override release versions
include package/*/*.mk
<package>.mk could contain
+++++++++++++++++++++
ifneq ($(<PACKAGE>_RELEASE),)
include <package>/$(<PACKAGE>_RELEASE)/<package>.mk
else
include <package>/$(RELEASE)/<package>.mk
endif
--------------------------------
or similar.
This would allow some people to keep an old release and others to work on new stuff.
It may be a good idea to allow patches to be applied based on a list instead its name.
Best Regards
Ulf Samuelsson?
[Buildroot] Some devices are not created in the ext2 filesystem.
In reply to LeonidQuoted 11 lines · Leonid
Hi, Ivan:
As I see also on other systems,
/dev/nullis normally created with 660 permission like many other devices (/dev/consolefor example). I thought that buildroot runs udev with correct user to be able to rewrite all devices in /dev without trouble.So, I suppose, my question is this: is it some intrinsic buildroot udev-related bug or something wrong in my own system which results in such error? What would you recommend to do?
I'd suggest just turn udev off.
Best regards,
Ivan