build-script error


(Jeff Ramsey) #1

I followed directions here to clone the compiler source and build it on
Ubuntu 14.04:

https://github.com/apple/swift/blob/master/README.md

All required packages seem to haven been installed successfully per the
README. When I get to the build step, the following build-script command
generates the errors below it. Have I missed something simple? Thanks.

Jeff

~/swift$ utils/build-script -t
Traceback (most recent call last):
  File "utils/build-script", line 1848, in <module>
    sys.exit(main())
  File "utils/build-script", line 1844, in main
    return main_normal()
  File "utils/build-script", line 1053, in main_normal
    default=StdlibDeploymentTarget.host_target().name)
AttributeError: 'NoneType' object has no attribute 'name'


(Jordan Rose) #2

[+ a few people who have been changing this area lately]

···

On Jun 10, 2016, at 09:14, Jeff Ramsey via swift-users <swift-users@swift.org> wrote:

I followed directions here to clone the compiler source and build it on Ubuntu 14.04:

https://github.com/apple/swift/blob/master/README.md

All required packages seem to haven been installed successfully per the README. When I get to the build step, the following build-script command generates the errors below it. Have I missed something simple? Thanks.

Jeff

~/swift$ utils/build-script -t
Traceback (most recent call last):
  File "utils/build-script", line 1848, in <module>
    sys.exit(main())
  File "utils/build-script", line 1844, in main
    return main_normal()
  File "utils/build-script", line 1053, in main_normal
    default=StdlibDeploymentTarget.host_target().name)
AttributeError: 'NoneType' object has no attribute 'name'

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Dmitri Gribenko) #3

Hi Jeff,

Which architecture are you running on?

Could you run "python" in the terminal, type the following script, and
send me the output?

import platform
print(platform.system())
print(platform.machine())

Dmitri

···

On Fri, Jun 10, 2016 at 9:14 AM, Jeff Ramsey via swift-users <swift-users@swift.org> wrote:

I followed directions here to clone the compiler source and build it on
Ubuntu 14.04:

https://github.com/apple/swift/blob/master/README.md

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(Jeff Ramsey) #4

Here you go Dmitri. It's an older Dell 1501 that was given to me; I wiped
it and put Ubuntu on it. Thanks.

Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import platform
print(platform.system())

Linux

print(platform.machine())

i686

Here's some additional information if it's useful:

~/swift$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

~/swift$ uname -a
Linux Inspiron-1501 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:02
UTC 2015 i686 athlon i686 GNU/Linux

···

On Fri, Jun 10, 2016 at 12:31 PM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

On Fri, Jun 10, 2016 at 9:14 AM, Jeff Ramsey via swift-users > <swift-users@swift.org> wrote:
> I followed directions here to clone the compiler source and build it on
> Ubuntu 14.04:
>
> https://github.com/apple/swift/blob/master/README.md

Hi Jeff,

Which architecture are you running on?

Could you run "python" in the terminal, type the following script, and
send me the output?

import platform
print(platform.system())
print(platform.machine())

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(Karl) #5

i686 is a 32-bit system, right? We don’t support Intel 32-bit on Linux (yet?). The only Intel Linux target is x86_64.

···

On 10 Jun 2016, at 20:18, Jeff Ramsey via swift-users <swift-users@swift.org> wrote:

Here you go Dmitri. It's an older Dell 1501 that was given to me; I wiped it and put Ubuntu on it. Thanks.

Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> print(platform.system())
Linux
>>> print(platform.machine())
i686
>>>

Here's some additional information if it's useful:

~/swift$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

~/swift$ uname -a
Linux Inspiron-1501 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:02 UTC 2015 i686 athlon i686 GNU/Linux

On Fri, Jun 10, 2016 at 12:31 PM, Dmitri Gribenko <gribozavr@gmail.com <mailto:gribozavr@gmail.com>> wrote:
On Fri, Jun 10, 2016 at 9:14 AM, Jeff Ramsey via swift-users > <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:
> I followed directions here to clone the compiler source and build it on
> Ubuntu 14.04:
>
> https://github.com/apple/swift/blob/master/README.md

Hi Jeff,

Which architecture are you running on?

Could you run "python" in the terminal, type the following script, and
send me the output?

import platform
print(platform.system())
print(platform.machine())

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com <mailto:gribozavr@gmail.com>>*/

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Dmitri Gribenko) #6

Hi Jeff,

Karl is right. Swift is not ported to 32-bit Linux right now --
sorry! We would welcome contributions from the community to fill this
gap. I would be happy to review the patches and discuss any issues
that come up.

Dmitri

···

On Fri, Jun 10, 2016 at 8:06 PM, Karl <razielim@gmail.com> wrote:

i686 is a 32-bit system, right? We don’t support Intel 32-bit on Linux
(yet?). The only Intel Linux target is x86_64.

On 10 Jun 2016, at 20:18, Jeff Ramsey via swift-users > <swift-users@swift.org> wrote:

Here you go Dmitri. It's an older Dell 1501 that was given to me; I wiped
it and put Ubuntu on it. Thanks.

Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import platform
print(platform.system())

Linux

print(platform.machine())

i686

Here's some additional information if it's useful:

~/swift$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

~/swift$ uname -a
Linux Inspiron-1501 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:02
UTC 2015 i686 athlon i686 GNU/Linux

On Fri, Jun 10, 2016 at 12:31 PM, Dmitri Gribenko <gribozavr@gmail.com> > wrote:

On Fri, Jun 10, 2016 at 9:14 AM, Jeff Ramsey via swift-users >> <swift-users@swift.org> wrote:
> I followed directions here to clone the compiler source and build it on
> Ubuntu 14.04:
>
> https://github.com/apple/swift/blob/master/README.md

Hi Jeff,

Which architecture are you running on?

Could you run "python" in the terminal, type the following script, and
send me the output?

import platform
print(platform.system())
print(platform.machine())

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(Jeff Ramsey) #7

Dmitri,

Can you point me to the general areas that would need changes for 32-bit and I'll look to see what would be needed? Thanks.

Jeff

···

On Jun 11, 2016, at 12:31 AM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

Hi Jeff,

Karl is right. Swift is not ported to 32-bit Linux right now --
sorry! We would welcome contributions from the community to fill this
gap. I would be happy to review the patches and discuss any issues
that come up.

Dmitri

On Fri, Jun 10, 2016 at 8:06 PM, Karl <razielim@gmail.com> wrote:
i686 is a 32-bit system, right? We don’t support Intel 32-bit on Linux
(yet?). The only Intel Linux target is x86_64.

On 10 Jun 2016, at 20:18, Jeff Ramsey via swift-users >> <swift-users@swift.org> wrote:

Here you go Dmitri. It's an older Dell 1501 that was given to me; I wiped
it and put Ubuntu on it. Thanks.

Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import platform
print(platform.system())

Linux

print(platform.machine())

i686

Here's some additional information if it's useful:

~/swift$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

~/swift$ uname -a
Linux Inspiron-1501 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:02
UTC 2015 i686 athlon i686 GNU/Linux

On Fri, Jun 10, 2016 at 12:31 PM, Dmitri Gribenko <gribozavr@gmail.com> >> wrote:

On Fri, Jun 10, 2016 at 9:14 AM, Jeff Ramsey via swift-users >>> <swift-users@swift.org> wrote:

I followed directions here to clone the compiler source and build it on
Ubuntu 14.04:

https://github.com/apple/swift/blob/master/README.md

Hi Jeff,

Which architecture are you running on?

Could you run "python" in the terminal, type the following script, and
send me the output?

import platform
print(platform.system())
print(platform.machine())

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(Dmitri Gribenko) #8

Hi Jeff,

Please take a look at these pull requests and commits to get a general
idea of what it takes to port Swift to a new platform:

https://github.com/apple/swift/pull/2541
https://github.com/apple/swift/pull/979
https://github.com/apple/swift/commit/83751888c73de2504cbfa87906adf7c526d6fc65

Dmitri

···

On Sat, Jun 11, 2016 at 4:36 AM, Jeff Ramsey <jramsey123@gmail.com> wrote:

Dmitri,

Can you point me to the general areas that would need changes for 32-bit and I'll look to see what would be needed? Thanks.

Jeff

On Jun 11, 2016, at 12:31 AM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

Hi Jeff,

Karl is right. Swift is not ported to 32-bit Linux right now --
sorry! We would welcome contributions from the community to fill this
gap. I would be happy to review the patches and discuss any issues
that come up.

Dmitri

On Fri, Jun 10, 2016 at 8:06 PM, Karl <razielim@gmail.com> wrote:
i686 is a 32-bit system, right? We don’t support Intel 32-bit on Linux
(yet?). The only Intel Linux target is x86_64.

On 10 Jun 2016, at 20:18, Jeff Ramsey via swift-users >>> <swift-users@swift.org> wrote:

Here you go Dmitri. It's an older Dell 1501 that was given to me; I wiped
it and put Ubuntu on it. Thanks.

Python 2.7.6 (default, Jun 22 2015, 18:00:18)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import platform
print(platform.system())

Linux

print(platform.machine())

i686

Here's some additional information if it's useful:

~/swift$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

~/swift$ uname -a
Linux Inspiron-1501 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:02
UTC 2015 i686 athlon i686 GNU/Linux

On Fri, Jun 10, 2016 at 12:31 PM, Dmitri Gribenko <gribozavr@gmail.com> >>> wrote:

On Fri, Jun 10, 2016 at 9:14 AM, Jeff Ramsey via swift-users >>>> <swift-users@swift.org> wrote:

I followed directions here to clone the compiler source and build it on
Ubuntu 14.04:

https://github.com/apple/swift/blob/master/README.md

Hi Jeff,

Which architecture are you running on?

Could you run "python" in the terminal, type the following script, and
send me the output?

import platform
print(platform.system())
print(platform.machine())

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/